Traceback (most recent call last):
File "/home/informer-master1/app/bot.py", line 42, in <module>
informer = TGInformer(
File "/home/informer-master1/app/informer.py", line 145, in __init__
self.loop.run_until_complete(self.bot_interval())
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/home/informer-master1/app/informer.py", line 643, in bot_interval
self.client = TelegramClient(session_file, self.account.account_api_id, self.account.account_api_hash)
File "/usr/local/lib/python3.10/dist-packages/telethon/client/telegrambaseclient.py", line 262, in __init__
session = SQLiteSession(session)
File "/usr/local/lib/python3.10/dist-packages/telethon/sessions/sqlite.py", line 47, in __init__
c = self._cursor()
File "/usr/local/lib/python3.10/dist-packages/telethon/sessions/sqlite.py", line 228, in _cursor
self._conn = sqlite3.connect(self.filename,
sqlite3.OperationalError: unable to open database file
i do not know how to solve this.i just print the session :
The printout looks like this:
session/my phone number
2
Answers
I created the session folder, using
mkdir session
, but a new problem appearedThe link problem above is due to a network problem, which I solved with this solution
Because I am running in ubuntu virtual machine, and the network card is my vmnet8 nat, and I have a firewall, so I configured a manual proxy inside the ubuntu virtual machine to link to my host’s v2rayn proxy. The ip of my proxy is my vmnet8 host address, and the port is the new v2rayn socks proxy port, which is 10808.
my vmnet8 ip
my v2rayn socks port
if no module name socks