anasty17 / mirror-leech-telegram-bot

Official Repository: Telegram bot which can download direct links, torrents, nzb, google drive, telegram document, any file/folder from rclone supported clouds, all yt-dlp supported sites and jdownloader supported sites, then upload them to google drive, telegram cloud or to one of rclone supported clouds
https://t.me/mltb_official_channel
GNU General Public License v3.0
3.47k stars 4.78k forks source link

ModuleNotFoundError: No module named 'bencoding' #384

Closed FilmBee closed 2 years ago

FilmBee commented 2 years ago

Application Logs 2022-02-09T04:33:44.845701+00:00 app[web.1]: File "/usr/src/app/bot/main.py", line 22, in 2022-02-09T04:33:44.845702+00:00 app[web.1]: from .modules import authorize, list, cancel_mirror, mirror_status, mirror, clone, watch, shell, eval, delete, speedtest, count, leech_settings, search, rss 2022-02-09T04:33:44.845702+00:00 app[web.1]: File "/usr/src/app/bot/modules/mirror.py", line 24, in 2022-02-09T04:33:44.845704+00:00 app[web.1]: from bot.helper.mirror_utils.download_utils.qbit_downloader import add_qb_torrent 2022-02-09T04:33:44.845704+00:00 app[web.1]: File "/usr/src/app/bot/helper/mirror_utils/download_utils/qbit_downloader.py", line 2, in 2022-02-09T04:33:44.845705+00:00 app[web.1]: from bencoding import bencode, bdecode 2022-02-09T04:33:44.845705+00:00 app[web.1]: ModuleNotFoundError: No module named 'bencoding' 2022-02-09T04:33:45.098656+00:00 app[web.1]: [2022-02-09 04:33:45 +0000] [31] [ERROR] Connection in use: ('0.0.0.0', 51062) 2022-02-09T04:33:45.098690+00:00 app[web.1]: [2022-02-09 04:33:45 +0000] [31] [ERROR] Retrying in 1 second. 2022-02-09T04:33:46.099961+00:00 app[web.1]: [2022-02-09 04:33:46 +0000] [31] [ERROR] Can't connect to ('0.0.0.0', 51062) 2022-02-09T04:34:36.854811+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2022-02-09T04:34:36.886478+00:00 heroku[web.1]: Stopping process with SIGKILL 2022-02-09T04:34:37.139753+00:00 heroku[web.1]: State changed from starting to crashed 2022-02-09T04:34:37.151106+00:00 heroku[web.1]: State changed from crashed to starting 2022-02-09T04:34:37.024436+00:00 heroku[web.1]: Process exited with status 137 2022-02-09T04:34:55.866760+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=bdmovie6999.herokuapp.com request_id=2b45336b-8dbf-4b4e-a088-cafcd4a8ec04 fwd="52.31.47.33" dyno= connect= service= status=503 bytes= protocol=https 2022-02-09T04:35:06.475222+00:00 app[web.1]: warning: no common commits 2022-02-09T04:35:05.207904+00:00 heroku[web.1]: Starting process with command bash start.sh 2022-02-09T04:35:08.102584+00:00 heroku[web.1]: State changed from starting to up 2022-02-09T04:35:07.934577+00:00 app[web.1]: [2022-02-09 04:35:07 +0000] [31] [INFO] Starting gunicorn 20.1.0 2022-02-09T04:35:07.934943+00:00 app[web.1]: [2022-02-09 04:35:07 +0000] [31] [INFO] Listening at: http://0.0.0.0:8847 (31) 2022-02-09T04:35:07.934995+00:00 app[web.1]: [2022-02-09 04:35:07 +0000] [31] [INFO] Using worker: aiohttp.GunicornWebWorker 2022-02-09T04:35:07.939214+00:00 app[web.1]: [2022-02-09 04:35:07 +0000] [60] [INFO] Booting worker with pid: 60 2022-02-09T04:35:08.798447+00:00 app[web.1]: 2022-02-09 04:35:08,798 - bot - INFO - Generating BOT_STRING_SESSION 2022-02-09T04:35:09.800422+00:00 app[web.1]: 2022-02-09 04:35:09,800 - root - INFO - Initializing Aria2c 2022-02-09T04:35:09.792679+00:00 heroku[router]: at=info method=GET path="/" host=bdmovie6999.herokuapp.com request_id=fe2dd82a-7fbc-461d-8a7c-0b9468d3afe2 fwd="3.250.45.0" dyno=web.1 connect=0ms service=1ms status=200 bytes=338 protocol=https 2022-02-09T04:35:11.671586+00:00 app[web.1]: 2022-02-09 04:35:11,671 - bot - INFO - Creating TELEGRAPH Account using 'Lmqtxepe' name 2022-02-09T04:35:11.881312+00:00 app[web.1]: Traceback (most recent call last): 2022-02-09T04:35:11.881316+00:00 app[web.1]: File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main 2022-02-09T04:35:11.881316+00:00 app[web.1]: return _run_code(code, main_globals, None, 2022-02-09T04:35:11.881316+00:00 app[web.1]: File "/usr/lib/python3.8/runpy.py", line 87, in _run_code 2022-02-09T04:35:11.881317+00:00 app[web.1]: exec(code, run_globals) 2022-02-09T04:35:11.881317+00:00 app[web.1]: File "/usr/src/app/bot/main.py", line 22, in 2022-02-09T04:35:11.881331+00:00 app[web.1]: from .modules import authorize, list, cancel_mirror, mirror_status, mirror, clone, watch, shell, eval, delete, speedtest, count, leech_settings, search, rss 2022-02-09T04:35:11.881331+00:00 app[web.1]: File "/usr/src/app/bot/modules/mirror.py", line 24, in 2022-02-09T04:35:11.881331+00:00 app[web.1]: from bot.helper.mirror_utils.download_utils.qbit_downloader import add_qb_torrent 2022-02-09T04:35:11.881332+00:00 app[web.1]: File "/usr/src/app/bot/helper/mirror_utils/download_utils/qbit_downloader.py", line 2, in 2022-02-09T04:35:11.881333+00:00 app[web.1]: from bencoding import bencode, bdecode 2022-02-09T04:35:11.881333+00:00 app[web.1]: ModuleNotFoundError: No module named 'bencoding'

traviss64 commented 2 years ago

solved

Not working :(

FilmBee commented 2 years ago

Thank you problem solved

traviss64 commented 2 years ago

Thank you problem solved

what exactly you did?I did the same procedure thrice now and I am getting the same error

Strangelets commented 2 years ago

delete forked repo & fork again create new secrets

and deploy

David-Shadow commented 2 years ago

This is because you're not updating the heroku branch...and you're all deploying with heroku branch...so..try fetch-n-merge heroku branch then redeploy πŸ§‘β€πŸ¦―

lckeong commented 2 years ago

not to ask any more questions about the new update here is the solution Captura de pantalla (27) Captura de pantalla (28)

and then deploy again and problem solved.

still not work

traviss64 commented 2 years ago

This is because you're not updating the heroku branch...and you're all deploying with heroku branch...so..try fetch-n-merge heroku branch then redeploy πŸ§‘β€πŸ¦―

How to do that?

lckeong commented 2 years ago

This is because you're not updating the heroku branch...and you're all deploying with heroku branch...so..try fetch-n-merge heroku branch then redeploy πŸ§‘β€πŸ¦―

eleborate please

David-Shadow commented 2 years ago

This is because you're not updating the heroku branch...and you're all deploying with heroku branch...so..try fetch-n-merge heroku branch then redeploy πŸ§‘β€πŸ¦―

How to do that?

First click here to change the branch to heroku IMG_20220209_115736_867

Then click here to fetch n merge IMG_20220209_120031_909

Then run Workflow on heroku branch

David-Shadow commented 2 years ago

This is because you're not updating the heroku branch...and you're all deploying with heroku branch...so..try fetch-n-merge heroku branch then redeploy πŸ§‘β€πŸ¦―

eleborate please Answered here https://github.com/anasty17/mirror-leech-telegram-bot/issues/384#issuecomment-1033399084

David-Shadow commented 2 years ago

This is because you're not updating the heroku branch...and you're all deploying with heroku branch...so..try fetch-n-merge heroku branch then redeploy πŸ§‘β€πŸ¦―

eleborate please Answered here https://github.com/anasty17/mirror-leech-telegram-bot/issues/384#issuecomment-1033399084

This is because you're not updating the heroku branch...and you're all deploying with heroku branch...so..try fetch-n-merge heroku branch then redeploy πŸ§‘β€πŸ¦―

eleborate please Answered here #384 (comment)

that for fork repo right?what about import repo

Why importπŸ™„πŸ™„... (For imported repo you can just copy the requirements.txt of official repo and edit in heroku branch of your own repo...rest idkπŸ₯± why even import it πŸ€·β€β™‚ you won't recieve regular updatesπŸ€·β€β™‚)

seman01 commented 2 years ago

This is because you're not updating the heroku branch...and you're all deploying with heroku branch...so..try fetch-n-merge heroku branch then redeploy πŸ§‘β€πŸ¦―

eleborate please Answered here #384 (comment)

This is because you're not updating the heroku branch...and you're all deploying with heroku branch...so..try fetch-n-merge heroku branch then redeploy πŸ§‘β€πŸ¦―

eleborate please Answered here #384 (comment)

that for fork repo right?what about import repo

Why importπŸ™„πŸ™„... (For imported repo you can just copy the requirements.txt of official repo and edit in heroku branch of your own repo...rest idkπŸ₯± why even import it πŸ€·β€β™‚ you won't recieve regular updatesπŸ€·β€β™‚)

most people follow youtube,if i dont receive regular update,why my bot still got problem after main repo changes?it suppose to work if i dont touch it

0ibaba commented 2 years ago

@seman01 If you imported it, and you have the upstream repo var set to the main repo, it'll obviously cause problems. Change it to your imported repo's url if you don't update regularly.

seman01 commented 2 years ago

@seman01 If you imported it, and you have the upstream repo var set to the main repo, it'll obviously cause problems. Change it to your imported repo's url if you don't update regularly.

thank for the tip,no wonder got problem. so how i can manually update if i want it?just redeploy?

anasty17 commented 2 years ago

Before deploying u need to fetch and merge... and don't rerun old workflow