Nuitka looses sys.prefix and sys.exec_prefix after build
See original GitHub issueLinux version:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
Python version:
$ python -V
Python 3.5.2
Both version lates from pypi and from developer branch has errors:
0.6.2rc3
Python: 3.5.2 (default, Nov 23 2017, 16:37:01)
Executable: /home/vg/tmp/.venv/bin/python
OS: Linux
Arch: x86_64
Test code
$ cat test.py
import setproctitle
setproctitle('test')
Run builded app:
$ ./test.bin
Traceback (most recent call last):
File "/home/vg/tmp/test.py", line 1, in <module>
import setproctitle
ImportError: No module named 'setproctitle'
MacOS works fine same code.
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
python - Why is my sys.prefix being set to '/usr'? - Stack Overflow
where $INSTALL_DIR is where I want my install to go. The configure and build ran without error, however, when I run the built...
Read more >https://bugs.python.org/file41709/0d413f60cc23.diff
+ This function normally prints a warning message to *sys.stderr*; however, ... uses for :file:`{prefix}` and +:file:`{exec-prefix}` by running Python in ...
Read more >Use some magic that looks like static files as template · 4c391e4acc ...
but also in a compiled version with files all over the system, following the ... pass the option `--exec-prefix=PREFIX' to `configure', the package...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have pushed a fix to factory branch, you can try it if you want to:
http://nuitka.net/doc/factory.html
Released as 0.6.2