mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 23:24:50 +00:00
Add FAQ about PyInstaller FileNotFoundError
This commit is contained in:
parent
01ec5d7f1d
commit
d86d8530ce
1 changed files with 11 additions and 0 deletions
|
|
@ -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…
Reference in a new issue