Error while trying to import BaseEventEmitter from pyee

Đang mở
#109 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
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.

Ngôn ngữ chính
Python
Star
340
Fork
112
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của slackapi/python-slack-events-api

Tất cả issue của slackapi/python-slack-events-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.