Hello there.
I'm a full beginner at Python. I have a small script that successfully runs on my own PC but when I try to run in on pythonanywhere.com I have these errors:
P.S. I already installed the required pip module pyrogram
. Also don't pay attention at the first line it isn't necessary: "TgCrypto is missing! Pyrogram will work the same, but at a much slower speed. More info"
TgCrypto is missing! Pyrogram will work the same, but at a much slower speed. More info: https://docs.pyrogram.org/topics/tgcrypto
Traceback (most recent call last):
File "/home/SomeUsernameXD/forward.py", line 22, in <module>
app.run()
File "/home/SomeUsernameXD/.local/lib/python3.9/site-packages/pyrogram/methods/utilities/run.py", line 61, in run
self.start()
File "/home/SomeUsernameXD/.local/lib/python3.9/site-packages/pyrogram/sync.py", line 56, in async_to_sync_wrap
return loop.run_until_complete(coroutine)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/SomeUsernameXD/.local/lib/python3.9/site-packages/pyrogram/methods/utilities/start.py", line 53, in start
is_authorized = await self.connect()
File "/home/SomeUsernameXD/.local/lib/python3.9/site-packages/pyrogram/methods/auth/connect.py", line 39, in connect
await self.load_session()
File "/home/SomeUsernameXD/.local/lib/python3.9/site-packages/pyrogram/client.py", line 669, in load_session
await self.storage.open()
File "/home/SomeUsernameXD/.local/lib/python3.9/site-packages/pyrogram/storage/file_storage.py", line 107, in open
self.conn = sqlite3.connect(str(path), timeout=1, check_same_thread=False)
sqlite3.OperationalError: unable to open database file```
[Edit by admin: formatting]