Pyinstaller unable to build with jsons not working properly #8879
Unanswered
DasWildeMaus
asked this question in
Help
Replies: 1 comment 11 replies
-
What exactly does "nothing works" mean - that you cannot see the .json files in |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, i have a problem, that I can't build a working .exe by using pyinstaller and none of the other problems got me close to a solution with my issue
the cmd command was:
pyinstaller --onedir --windowed --icon=Roulette-Bot.ico --add-data "src/*.json;." --add-data "src/assets;assets" --add-data "src/data;data" --add-data "src/tesseract;tesseract" src\gui.py
but it seems to be unable to work with the jsons properly. If I open the .exe the jsons can't be found
Structure:
Roulette-Bot-Code/
├── .idea/
├── .venv/
├── build/
├── config/
├── dist/
├── logs/
│ └── app.log
├── src/
│ ├── assets/
│ ├── data/
│ ├── tesseract/
│ ├── betting_logic.py
│ ├── calibration.json
│ ├── calibration.py
│ ├── capture.py
│ ├── chip_calibration.json
│ ├── gui.py
│ ├── number_recognition_calibration.json
│ ├── progression_table.py
│ ├── recognition.py
│ ├── series_calibration.json
│ └── settings.json
├── Tesseract OCR/
├── tests/ │
├── test_calibration.py │
├── test_capture.py
│ └── test_recognition.py
├── .gitignore
├── gui.spec
├── README.md
├── README - Kopie.md
└── Roulette-Bot.ico
I tried different --add-data commands but nothing works. Always [name].json can't be found for any of the jsons in the src folder
And there are two other jsons in the config folder, which are working fine. But they are rather unimportant for quick changes so I'd like to have the other jsons directly in the source folder as they are atm.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions