#My Bot Keeps Crashing

18 messages · Page 1 of 1 (latest)

neat pelican
#

File "/app/HourlyBot.py", line 2, in <module>
from telegram.ext.Application import run_async
ModuleNotFoundError: No module named 'telegram.ext.Application'

slim aspenBOT
#

Project ID: N/A

#

No search results found.

neat pelican
#

N/A

#

my bot keep crashing: File "/app/HourlyBot.py", line 2, in <module>
from telegram.ext.Application import run_async
ModuleNotFoundError: No module named 'telegram.ext.Application'

sly herald
#

Sounds like you’re missing a package from your requirements.txt

neat pelican
#

do you know what i could be missing?

sly herald
#

Google says that's a common issue with python-telegram-bot. Try defining a specific version, the same that you have in your dev env

neat pelican
sly herald
#

It’s an issue with the package, not with Railway. I won’t be able to help

#

I will note that pip installing telegram as well as python-telegram-bot is not the answer because they use the same namespace apparently

neat pelican
#

anyone help?

copper sequoia
#

Did you try what A Dumb said?

neat pelican
#

im not sure what's missing tho.

#

what to try?