Issue266

Title Installing Nuitka using Python 3.4 in a virtualenv on Windows failed
Priority bug Status testing
Superseder Nosy List cryzed, kayhayen
Assigned To kayhayen Keywords windows

Created on 2015-11-20.19:02:52 by cryzed, last changed by kayhayen.

Messages
msg1700 (view) Author: kayhayen Date: 2015-11-21.09:29:38
I am convinced that MinGW installed or not, makes no difference at this point, 
but this may make all the difference:

        patch_bats = os.path.exists(
            os.path.join(self.install_dir, "Python.exe")
        )

Anyway, the finding is surely valid, and I will update this right now to factory 
git branch as it's clearly an error.

The above code is supposed to trigger for virtualenv vs. no virtualenv. But this 
was surely done for Python2, very possible that the installation layout is also 
version dependent. See the other issue then.

Yours,
Kay
msg1699 (view) Author: cryzed Date: 2015-11-20.19:02:52
This error is a bit strange. When I was using a virtualenv I created before
having added the MinGW binaries to my path, the installation of Nuitka failed,
complaining about this line:
https://github.com/kayhayen/Nuitka/blob/08a896cb63b2ce6464029e88983f6862f15a1994/setup.py#L135
with the error:

TypeError: 'str' does not support the buffer interface

Which makes sense for Python 3.x+ since there's no implicit encoding and
decoding of strings anymore. Prefixing it with a "b" should do the trick.

Now after I had added the MinGW binaries to my path and created a new
virtualenv, the building and installation of Nuitka worked without any errors --
I suspect it has to do with a slightly different configuration of the virtualenv
and Nuitka's setup.py choosing a different installation method, although I can't
be sure. I hope this describes the issue well enough to you.

The version used was Nuitka 0.5.16 on a German Windows 7 system.
History
Date User Action Args
2015-11-21 09:51:07kayhayensetkeyword: + windows
title: Installing Nuitka using Python 3.4 in a virtualenv failed -> Installing Nuitka using Python 3.4 in a virtualenv on Windows failed
2015-11-21 09:50:41kayhayensetstatus: chatting -> testing
assignedto: kayhayen
nosy: + kayhayen
2015-11-21 09:29:38kayhayensetstatus: unread -> chatting
messages: + msg1700
title: Installing Nuitka using Python 3.4 in a virtualenv fails if MinGW is not configured -> Installing Nuitka using Python 3.4 in a virtualenv failed
2015-11-20 19:02:52cryzedcreate