PSU-ICDS / iaskutils

A collection of various python scripts and tools used by the Penn State ICDS i-ASK helpdesk to help the users of the Roar supercomputer.
https://www.icds.psu.edu/
MIT License
1 stars 1 forks source link

Use Nuitka instead of PyInstaller to build executables #9

Closed NucciTheBoss closed 3 years ago

NucciTheBoss commented 3 years ago

So I have narrowed down the cause of why my click program is having encoding errors if the locale is set to C on a system. For some reason, this is an issue being continuously created by PyInstaller. For example, python collector -V works, but when compiled with PyInstaller, the encoding errors are still being generated. Therefore, I have decided to swap PyInstaller out with Nuitka after some preliminary testing.

Should not take me long to set up a new installation procedure.

https://pypi.org/project/Nuitka/

NucciTheBoss commented 3 years ago

Nuitka I've discovered is the nicer compiler compared to pyinstaller, but it still can't address the locale issues that I've been seeing. Guess it looks like I need to use argparse after all

NucciTheBoss commented 3 years ago

Discovered that you cannot use gathero with the gcc module loaded. Will probably need to address this bug in my script. Other than that everything is working beautifully. Could probably stand to add multiprocessing back in too!