question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nuitka looses sys.prefix and sys.exec_prefix after build

See original GitHub issue

Linux 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:closed
  • Created 5 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Feb 1, 2019

I have pushed a fix to factory branch, you can try it if you want to:

http://nuitka.net/doc/factory.html

0reactions
kayhayencommented, Feb 25, 2019

Released as 0.6.2

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found