mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Add FAQ about PyInstaller FileNotFoundError
This commit is contained in:
parent
01ec5d7f1d
commit
d86d8530ce
@ -342,6 +342,17 @@ sqlite3.OperationalError: unable to open database file
|
|||||||
|
|
||||||
Stackoverflow to the rescue: https://stackoverflow.com/questions/4636970
|
Stackoverflow to the rescue: https://stackoverflow.com/questions/4636970
|
||||||
|
|
||||||
|
FileNotFoundError when using PyInstaller
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
Pyrogram uses two files that are not Python files, which are not included automatically in the PyInstaller bundle:
|
||||||
|
|
||||||
|
- ``pyrogram/mime.types``
|
||||||
|
- ``pyrogram/storage/schema.sql``
|
||||||
|
|
||||||
|
To fix the issue, you have to locate your local Pyrogram installation and pass those files to PyInstaller. More info in
|
||||||
|
their docs https://pyinstaller.readthedocs.io/en/stable/spec-files.html#adding-files-to-the-bundle.
|
||||||
|
|
||||||
My verification code expires immediately!
|
My verification code expires immediately!
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user