ImportError: cannot import name 'sre_parse'
erickyun opened this issue · 4 comments
erickyun commented
Bot won't start after latest repo update? commit 9ab9e81
Would appreciate your help sir?
rcmltb | Traceback (most recent call last):
rcmltb | File "<frozen runpy>", line 198, in _run_module_as_main
rcmltb | File "<frozen runpy>", line 88, in _run_code
rcmltb | File "/usr/src/app/bot/__main__.py", line 16, in <module>
rcmltb | from .modules import batch, cancel, botfiles, copy, leech, mirror_leech, myfilesset, owner_settings, cloudselect, search, myfiles, stats, status, clone, storage, cleanup, user_settings, ytdlp, shell, exec, bt_select, rss, serve, sync
rcmltb | File "/usr/src/app/bot/modules/batch.py", line 16, in <module>
rcmltb | from bot.modules.mirror_leech import mirror_leech
rcmltb | File "/usr/src/app/bot/modules/mirror_leech.py", line 13, in <module>
rcmltb | from bot.helper.ext_utils.direct_link_generator import direct_link_generator
rcmltb | File "/usr/src/app/bot/helper/ext_utils/direct_link_generator.py", line 21, in <module>
rcmltb | from lk21 import Bypass
rcmltb | File "/usr/lib/python3.11/site-packages/lk21/__init__.py", line 11, in <module>
rcmltb | from .cli import main
rcmltb | File "/usr/lib/python3.11/site-packages/lk21/cli.py", line 2, in <module>
rcmltb | from .thirdparty.exrex import generate as generate_strings
rcmltb | File "/usr/lib/python3.11/site-packages/lk21/thirdparty/exrex.py", line 25, in <module>
rcmltb | from re import sre_parse, U
rcmltb | ImportError: cannot import name 'sre_parse' from 're' (/usr/lib/python3.11/re/__init__.py)
Sam-Max commented
Bot won't start after latest repo update?
commit 9ab9e81
Would appreciate your help sir?rcmltb | Traceback (most recent call last): rcmltb | File "<frozen runpy>", line 198, in _run_module_as_main rcmltb | File "<frozen runpy>", line 88, in _run_code rcmltb | File "/usr/src/app/bot/__main__.py", line 16, in <module> rcmltb | from .modules import batch, cancel, botfiles, copy, leech, mirror_leech, myfilesset, owner_settings, cloudselect, search, myfiles, stats, status, clone, storage, cleanup, user_settings, ytdlp, shell, exec, bt_select, rss, serve, sync rcmltb | File "/usr/src/app/bot/modules/batch.py", line 16, in <module> rcmltb | from bot.modules.mirror_leech import mirror_leech rcmltb | File "/usr/src/app/bot/modules/mirror_leech.py", line 13, in <module> rcmltb | from bot.helper.ext_utils.direct_link_generator import direct_link_generator rcmltb | File "/usr/src/app/bot/helper/ext_utils/direct_link_generator.py", line 21, in <module> rcmltb | from lk21 import Bypass rcmltb | File "/usr/lib/python3.11/site-packages/lk21/__init__.py", line 11, in <module> rcmltb | from .cli import main rcmltb | File "/usr/lib/python3.11/site-packages/lk21/cli.py", line 2, in <module> rcmltb | from .thirdparty.exrex import generate as generate_strings rcmltb | File "/usr/lib/python3.11/site-packages/lk21/thirdparty/exrex.py", line 25, in <module> rcmltb | from re import sre_parse, U rcmltb | ImportError: cannot import name 'sre_parse' from 're' (/usr/lib/python3.11/re/__init__.py)
After last update, you need to git clone repo again and deploy
erickyun commented
I did just git clone repo again and deploy
But I'm still receiving this error?
Should I also terminate mongo and generate new one?
Sam-Max commented
I did just git clone repo again and deploy But I'm still receiving this error?
Should I also terminate mongo and generate new one?
You need to redeploy bot from scratch, as it is using now a different docker base image
erickyun commented
İt seems to work now but before it didn't know why? But thank you formyour help sir. I appreciate your work btw 👍