Closed peza8 closed 1 year ago
Hi @peza8 ,
I know I reply really late! I never used pyinstaller, but I think you cannot make a "packaged app without installing a Python interpreter". When jetson_stats is installed, add a new ubuntu service and other files to be able to read the hardware configuration.
I temporary close this issue, but feel free to reopen if I misunderstood
Summary
I had an issue trying to create a python executable of a program that uses jetson-stats (jtop). Using pyinstaller it's possible to create the executable/bin file without any errors, but when running the program, there's a
FileNotFounfError: [Errno 2] ...
The issue comes from this method:
The issue, to my eye, is that the use of the absolute path breaks when running the executable. I would have tried to open a PR to fix this, but I wasn't sure how to test this. (As an asside, this method doesn't do what the docstring says, it returns the authors name). In testing I simply hard coded a string to return and it was all good.
Related question: Is the requirement for the link to service going to be an issue if trying to distribute an executable? I imagine the target jetson will have to have the service running.
To Reproduce
$ pyinstaller main.py
$ ./dist/main/main
Expected behavior
Nominal program start
Additional info
Board
Jetson-Stats