Skip to content

Commit d86d853

Browse files
committed
Add FAQ about PyInstaller FileNotFoundError
1 parent 01ec5d7 commit d86d853

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/source/faq.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,17 @@ sqlite3.OperationalError: unable to open database file
342342

343343
Stackoverflow to the rescue: https://stackoverflow.com/questions/4636970
344344

345+
FileNotFoundError when using PyInstaller
346+
----------------------------------------
347+
348+
Pyrogram uses two files that are not Python files, which are not included automatically in the PyInstaller bundle:
349+
350+
- ``pyrogram/mime.types``
351+
- ``pyrogram/storage/schema.sql``
352+
353+
To fix the issue, you have to locate your local Pyrogram installation and pass those files to PyInstaller. More info in
354+
their docs https://pyinstaller.readthedocs.io/en/stable/spec-files.html#adding-files-to-the-bundle.
355+
345356
My verification code expires immediately!
346357
-----------------------------------------
347358

0 commit comments

Comments
 (0)