Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python-telegram-bot wasn't properly installed #27

Open
dangehub opened this issue Nov 7, 2023 · 0 comments
Open

python-telegram-bot wasn't properly installed #27

dangehub opened this issue Nov 7, 2023 · 0 comments

Comments

@dangehub
Copy link

dangehub commented Nov 7, 2023

启动slave端后报错

comwechat-slave  | /app/venv/lib/python3.12/site-packages/telegram/utils/request.py:54: UserWarning: python-telegram-bot wasn't properly installed. Please refer to README.rst on how to properly install.
comwechat-slave  |   warnings.warn(
comwechat-slave  | Traceback (most recent call last):
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/utils/request.py", line 36, in <module>
comwechat-slave  |     import telegram.vendor.ptb_urllib3.urllib3 as urllib3
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/vendor/ptb_urllib3/urllib3/__init__.py", line 7, in <module>
comwechat-slave  |     from .connectionpool import (
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 11, in <module>
comwechat-slave  |     from .exceptions import (
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/vendor/ptb_urllib3/urllib3/exceptions.py", line 2, in <module>
comwechat-slave  |     from .packages.six.moves.http_client import (
comwechat-slave  | ModuleNotFoundError: No module named 'telegram.vendor.ptb_urllib3.urllib3.packages.six.moves'
comwechat-slave  | 
comwechat-slave  | During handling of the above exception, another exception occurred:
comwechat-slave  | 
comwechat-slave  | Traceback (most recent call last):
comwechat-slave  |   File "/app/venv/bin/ehforwarderbot", line 8, in <module>
comwechat-slave  |     sys.exit(main())
comwechat-slave  |              ^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/ehforwarderbot/__main__.py", line 330, in main
comwechat-slave  |     conf = config.load_config()
comwechat-slave  |            ^^^^^^^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/ehforwarderbot/config.py", line 45, in load_config
comwechat-slave  |     channel = utils.locate_module(data['master_channel'], 'master')
comwechat-slave  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/ehforwarderbot/utils.py", line 145, in locate_module
comwechat-slave  |     return i.load()
comwechat-slave  |            ^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2518, in load
comwechat-slave  |     return self.resolve()
comwechat-slave  |            ^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2524, in resolve
comwechat-slave  |     module = __import__(self.module_name, fromlist=['__name__'], level=0)
comwechat-slave  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/efb_telegram_master/__init__.py", line 11, in <module>
comwechat-slave  |     import telegram  # lgtm [py/import-and-import-from]
comwechat-slave  |     ^^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/__init__.py", line 187, in <module>
comwechat-slave  |     from .bot import Bot
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/bot.py", line 107, in <module>
comwechat-slave  |     from telegram.utils.request import Request
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/utils/request.py", line 44, in <module>
comwechat-slave  |     import urllib3.contrib.appengine as appengine  # type: ignore[no-redef]
comwechat-slave  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
comwechat-slave  | ModuleNotFoundError: No module named 'urllib3.contrib.appengine'
comwechat-slave exited with code 1

我尝试替换了python-telegram-bot的版本,发现又指定了要用13.11,我看docekr镜象最近还有更新过,请问你有遇见同样的问题吗

retX0 added a commit to retX0/efb-wechat-comwechat-slave that referenced this issue Apr 6, 2024
Fixing docker init error. ehForwarderBot#27
@retX0 retX0 mentioned this issue Apr 6, 2024
0honus0 pushed a commit that referenced this issue Apr 6, 2024
Fixing docker init error. #27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant