Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session SqlLite bug #51

Open
LebidDenys opened this issue Apr 24, 2023 · 4 comments
Open

Session SqlLite bug #51

LebidDenys opened this issue Apr 24, 2023 · 4 comments

Comments

@LebidDenys
Copy link

Hi! I have problems running telepathy. After the session object is created (I have entered credentials) I get an error on each of the next runs, error is:
Traceback (most recent call last): File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\user\PycharmProjects\pythonProject\venv\Scripts\telepathy.exe\__main__.py", line 7, in <module> File "c:\users\user\pycharmprojects\pythonproject\venv\lib\site-packages\click\core.py", line 829, in __call__ return self.main(*args, **kwargs) File "c:\users\user\pycharmprojects\pythonproject\venv\lib\site-packages\click\core.py", line 782, in main rv = self.invoke(ctx) File "c:\users\user\pycharmprojects\pythonproject\venv\lib\site-packages\click\core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "c:\users\user\pycharmprojects\pythonproject\venv\lib\site-packages\click\core.py", line 610, in invoke return callback(*args, **kwargs) File "c:\users\user\pycharmprojects\pythonproject\venv\lib\site-packages\telepathy\telepathy.py", line 226, in cli client = TelegramClient(phone_number, api_id, api_hash) File "c:\users\user\pycharmprojects\pythonproject\venv\lib\site-packages\telethon\client\telegrambaseclient.py", line 275, in __init__ session = SQLiteSession(session) File "c:\users\user\pycharmprojects\pythonproject\venv\lib\site-packages\telethon\sessions\sqlite.py", line 47, in __init__ c = self._cursor() File "c:\users\user\pycharmprojects\pythonproject\venv\lib\site-packages\telethon\sessions\sqlite.py", line 242, in _cursor self._conn = sqlite3.connect(self.filename, sqlite3.OperationalError: unable to open database file .
Would be grateful for any advice.

@maximus-net
Copy link

I get this exact issue, did you get any response or fix it?

@acasserole
Copy link

I have the same issue. Any ideas how to fix this?

@annawarden
Copy link

sqlite3.OperationalError: unable to open database file same problem

@SjPn
Copy link

SjPn commented Oct 3, 2024

HAve the same problem. Do anyone have some fixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants