Issue307

Title Import Error: No module named os
Priority bug Status resolved
Superseder Nosy List djpugh
Assigned To Keywords

Created on 2016-05-19.15:35:47 by djpugh, last changed by kayhayen.

Messages
msg2368 (view) Author: kayhayen Date: 2018-04-01.09:48:16
Lack of feedback
msg2325 (view) Author: kayhayen Date: 2018-03-14.13:38:44
What kind of Python installation was this. Normal CPython ones should work.
msg1929 (view) Author: djpugh Date: 2016-05-19.16:34:06
This does seem to be a python2/3 error as running it using nuitka installed 
against python 3 works ok. Still not sure why it is giving this error with 
python 2 though.
msg1928 (view) Author: djpugh Date: 2016-05-19.15:43:32
This does work on a different machine with a similar setup but running windows 
10.

I'm not sure why there is a difference in behaviour
msg1927 (view) Author: djpugh Date: 2016-05-19.15:35:47
On making a simple hello world code:

#!/usr/bin/env python

print "hello world"

and running nuitka --recurse-all test.py

When running ./test.exe I get:
  File "C:\src\nuitka.test\test.py", line 1, in <module>
    #!/usr/bin/env python
ImportError: No module named os

Windows 7, nuitka version 0.5.20 python 2.7.11 and python 3.5.1 installed 
(but nuitka installed using python 2.7.11 pip)

Nuitka installed from pip
History
Date User Action Args
2018-04-01 09:48:16kayhayensetstatus: chatting -> resolved
messages: + msg2368
2018-03-14 13:38:44kayhayensetmessages: + msg2325
2016-05-19 16:34:06djpughsetmessages: + msg1929
2016-05-19 15:43:33djpughsetstatus: unread -> chatting
messages: + msg1928
2016-05-19 15:35:47djpughcreate