Open haboustak opened 3 months ago
As I tried to fix this, I found that pyinstaller@6.9.0 --onefile
has the same underlying issue.
$ sudo ./dist/script.onefile
Traceback (most recent call last):
File "script.py", line 17, in <module>
main()
File "script.py", line 12, in main
import yaml
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
...
PermissionError: [Errno 13] Permission denied: '/tmp/_MEI2AXyUm/base_library.zip'
[310666] Failed to execute script 'script' due to unhandled exception!
$ ls -ald /tmp/_MEIhNeHmN/
drwx------ 3 root root 4096 Aug 3 12:32 /tmp/_MEIhNeHmN/
As I tried to fix this, I found that
pyinstaller@6.9.0 --onefile
has the same underlying issue.
Upstream issue has been reported to PyInstaller. There's some discussion by the maintainer's on the best ways to fix it properly and safely (including how to avoid naming things too POSIX-ly, in consideration of Windows):
I will probably prefer to go with whatever solution PyInstaller lands on.
So colo
I am trying to use
staticx@0.14.1
with apyinstaller@6.9.0 --onefile
binary on Debian 12.5 and I'm receiving the following error:My script does a few unusual things that trigger this error.
root
onefile
package, such that the module is imported after the user switch.The permissions on the temporary directory created by
staticx
are700
, but they should be755
.Minimal reproducing script is below.
I'm running
staticx
this way: