Kitware / trame-cookiecutter

Cookie Cutter template for creating trame application/module
16 stars 8 forks source link

Error in Packaging Desktop Files #8

Closed 13917904019 closed 2 years ago

13917904019 commented 2 years ago

After running pyinstaller, I got the desktop file. When running the desktop file in ubuntu, I got the FileNotFoundError. image

When running the desktop file in windows, I got the System.NullReferenceException. image

How to solve the problems. Thanks.

psavery commented 2 years ago

For any dependencies that include json/javascript files such as trame-client, you will need to add a line like --collect-data trame-client to the pyinstaller command. That should fix the Linux issue. I'm not sure about the Windows issue.

13917904019 commented 2 years ago

@psavery Thanks. You are right.