Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Creating an exe with pyinstaller issue #157

@AKABigDinner

Description

@AKABigDinner

I'm currently trying to make an exe of the program but I'm running into errors with the data file that has all of the json files.
here is the current pyinstaller command " pyinstaller main.py --clean -F --icon=pokemon.ico --add-data "data;data" ".
it creates the game with no problem but after the title screen loads the error

      • INTERNAL ERROR - - -

ERROR MESSAGE: Failed to load dex.json!

If you have not edited any files, feel free to create an issue on the repository by going to the link below.

Note: your save file will be preserved in the program folder. Any unsaved progress will be lost (sorry).

[https://github.com/Pokemon-PythonRed/Pokemon-PythonRed/issues/new/choose]

Press Enter to exit.

I have a feeling that the way the main code imports the json files cant after combining the jsons with the main.py in an exe.
Any input would be apricated.

Respectfully,
AKABigDinner

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions