Error while trying to import BaseEventEmitter from pyee
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
調査の方向性
Start in slackeventsapi/init.py at the import linked in the report, then compare it with the installed pyee API and reproduce the import using Python 3.12 and slackeventsapi 3.0.3. Done means the package imports without the reported ImportError and the existing Slack Events API app can start as expected.
索引モデルが issue の本文から書いたものです。
説明
Description
I tried to run an app based on slackeventsapi locally and got the below error:
ImportError: cannot import name 'BaseEventEmitter' from 'pyee' (/home/main-user/work/py-virtual-envs/venv-slackbot/lib64/python3.12/site-packages/pyee/__init__.py). Did you mean: 'EventEmitter'?
Above line indicates to the call here
And when I checked in pyee documentation regarding BaseEventEmitter, it seems it has been deprecated as per this link
If I change the definition to below line in init.py to:
from pyee import EventEmitter as BaseEventEmitter
it works as expected.
What type of issue is this? (place an x in one of the [ ])
- bug
- enhancement (feature request)
- question
- documentation related
- testing related
- discussion
Requirements
- I've read and understood the Contributing guidelines and have done my best effort to follow them.
- I've read and agree to the Code of Conduct.
- I've searched for any related issues and avoided creating a duplicate issue.
Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slackeventsapi version: 3.0.3
python version: 3.12
OS version(s): Fedora 40
Steps to reproduce:
Expected result:
What you expected to happen
No error
Actual result:
What actually happened
ImportError: cannot import name 'BaseEventEmitter' from 'pyee' (/home/main-user/work/py-virtual-envs/venv-slackbot/lib64/python3.12/site-packages/pyee/__init__.py). Did you mean: 'EventEmitter'?
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.
- 主要言語
- Python
- スター
- 340
- フォーク
- 112
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
slackapi/python-slack-events-api のほかの issue
-
docs
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
slackapi/python-slack-events-api#103 · コメント 1 件 ·
slackapi/python-slack-events-api の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/clickhouse-connect#1057 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
open-telemetry/sig-end-user#406 ·
-
bug ci good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100