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

Package doesn't work when it's compiled with pyinstaller #1

Closed
Thoosje opened this issue Jan 3, 2020 · 2 comments
Closed

Package doesn't work when it's compiled with pyinstaller #1

Thoosje opened this issue Jan 3, 2020 · 2 comments

Comments

@Thoosje
Copy link

Thoosje commented Jan 3, 2020

My script works perfect when it isn't compiled. But once I compile it into an exe with pyinstaller and pyarmour I always get this error:

Exception in thread Thread-1:
Traceback (most recent call last):
File "site-packages\pycards\cards\card.py", line 42, in _load_data_file
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\test\AppData\Local\Temp\_MEI20282\pycards/data.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "threading.py", line 917, in _bootstrap_inner
File "threading.py", line 865, in run
File "", line 540, in main
File "", line 403, in postPayment
File "site-packages\pycards\cards\card.py", line 126, in brand
File "site-packages\pycards\cards\card.py", line 140, in data
File "site-packages\pycards\cards\card.py", line 50, in _load_data
File "site-packages\pycards\cards\card.py", line 45, in _load_data_file
pycards.cards.card.NoDatabaseExist: File data.json in incorrect format.

Is it possible to fix this?

@mrlucascardoso
Copy link
Owner

Yes

@Thoosje
Copy link
Author

Thoosje commented Feb 3, 2020

Yes

Already fixed it, thx!

@Thoosje Thoosje closed this as completed Feb 3, 2020
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

2 participants