<div dir="ltr">Hi Becket,<div><br></div><div>you just need to uninstall/delete the pythonnet egg you have installed. When it was installed as an egg it would have been added to your easy-install.pth file in site-packages, and so that egg is being picked up before the new version even though the new version is on the python path. Deleting the old egg folder is the easier way to ensure it doesn't get imported by mistake.</div>
<div><br></div><div>If you want to install your build into your virtualenv you can use the 'install' distutils command:</div><div><br></div><div>>> python setupwin.py install</div><div><br></div><div>Or you can build an egg using 'setupegg.py' and install it that way (which is convenient as it installs it in its own sub-folder in site-packages so is easier to completely uninstall later):</div>
<div><br></div><div>>> python setupegg.py bdist_egg</div><div>>> easy_install dist\pythonnet.<version info>.egg</div><div><br></div><div>The setup.py in the main repo is cleaner, and we will eventually get the python3 changes merged into that :)</div>
<div><br></div><div>cheers,</div><div>Tony</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 18, 2014 at 8:38 PM, Beckett Simmons <span dir="ltr"><<a href="mailto:beckettsimmons@hotmail.com" target="_blank">beckettsimmons@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hey Tony,<div><br></div><div>Following your advice I did a simple git reset and git clean to get back to the original source. <span style="font-size:12pt">Built pythonnet again.</span></div><div><br></div>
<div>Now a weird thing is happening. I can import clr in the Mircrosoft Windows 7 x64 Debug Build Environment prompt but only immediately after the build. </div><div><br></div><div>So I figure out that it was because I was in the pythonnet folder and that allows it to find the Python.Runtime.dll file at pythonnet\build\lib.win-amd64-3.4. I tried to to add multiple variations of that path to my system environment path. This did not work for me with any variation.</div>
<div><br></div><div>What I had to do to get clr to import was to move that Python.Runtime.dll file into the H:\py341Test\Lib\site-packages\pythonnet-2.0dev-py3.4-win-amd64.egg python virtual environment.</div><div><br></div>
<div>This works for me, or at least works enough to get my unit tests working. Although it doesn't seem to be the most elegant solution. Then again, I am using a third-party fork. Just wondering if you have any further pro tips about this. </div>
<div><br></div><div>Again, thank you very much for your help!</div><div><br></div><div>       Beckett</div><div><br><div>> Date: Wed, 18 Jun 2014 19:30:30 +0100<br>> From: Tony Roberts <<a href="mailto:tony@pyxll.com" target="_blank">tony@pyxll.com</a>><br>
> To: "A list for users and developers of Python for .NET"<br>>   <<a href="mailto:pythondotnet@python.org" target="_blank">pythondotnet@python.org</a>><br>> Subject: Re: [Python.NET] Python 3.4 Support<br>
> Message-ID:<br>>  <<a href="mailto:CA%2BXbcsb6RUQOr%2B8GUzdtjWVPLRmA-vpKLmi2h2L1DhLyjBWwbA@mail.gmail.com" target="_blank">CA+Xbcsb6RUQOr+8GUzdtjWVPLRmA-vpKLmi2h2L1DhLyjBWwbA@mail.gmail.com</a>><br>> Content-Type: text/plain; charset="utf-8"<br>
> <br>> Hi Becket,<br>> <br>> hmmm, did you build it for 3.3 previously? The setupwin.py in this repo<br>> doesn't clean before building and re-uses the same target for the different<br>> python versions so it won't  rebuild everything correctly when switching<br>
> between python versions. Try deleting all the build folders and re-build.<br>> It's a bit rough and ready; the setup.py in the official repo works better.<br>> <br>> If that doesn't work let me know as I had it working ok (but I'm still<br>
> using 3.2 mostly so it hasn't had much testing).<br>> <br>> cheers,<br>> Tony<br>> <br>> On Wednesday, June 18, 2014, Beckett Simmons <<a href="mailto:beckettsimmons@hotmail.com" target="_blank">beckettsimmons@hotmail.com</a>><br>
> wrote:<br>> <br>> > Hey Tony,<br>> ><br>> > Thanks for the help. I was able to build pythonnet with your instructions.<br>> ><br>> > The issue that I am having now is that pythonnet seems to be build for<br>
> > python33.<br>> > When I try to import clr I get this error and python.exe crashes.<br>> > <a href="http://pastebin.com/0zcW6nP0" target="_blank">http://pastebin.com/0zcW6nP0</a><br>> > How would I possibly point pythonnet to the correct python34 DLL?<br>
> ><br>> > This is what my build looks like:<br>> > <a href="http://pastebin.com/Gb4K5PZS" target="_blank">http://pastebin.com/Gb4K5PZS</a><br>> ><br>> > I would be worth while to note that I am building and running python on a<br>
> > virtual environment that comes from a python 3.4.1 64-bit base install.<br>> > Would this possibly be the problem?<br>> ><br>> >        Beckett<br>> ><br>> > > Date: Tue, 17 Jun 2014 22:58:21 +0100<br>
> > > From: Tony Roberts <<a href="mailto:tony@pyxll.com" target="_blank">tony@pyxll.com</a><br>> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:tony@pyxll.com" target="_blank">tony@pyxll.com</a>');>><br>
> > > To: "A list for users and developers of Python for .NET"<br>> > > <<a href="mailto:pythondotnet@python.org" target="_blank">pythondotnet@python.org</a><br>> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:pythondotnet@python.org" target="_blank">pythondotnet@python.org</a>');>><br>
> > > Subject: Re: [Python.NET] PythonDotNet Digest, Vol 122, Issue 13<br>> > > Message-ID:<br>> > > <CA+XbcsbxmKF5_tRg+sVx-by-njgtmGcpzsqYbF=wno_8=<a href="mailto:ykYSQ@mail.gmail.com" target="_blank">ykYSQ@mail.gmail.com</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:ykYSQ@mail.gmail.com" target="_blank">ykYSQ@mail.gmail.com</a>');>><br>> > > Content-Type: text/plain; charset="utf-8"<br>
> > ><br>> > > Hi,<br>> > ><br>> > > yeah it definitely does build for x64. That's what I use mostly, in fact.<br>> > ><br>> > > I think the 64 bit compilers don't come as part of visual studio express.<br>
> > > You can get them as part of the windows sdk download from msdn though.<br>> > You<br>> > > might struggle to get it to work with distutils/setup tools as they<br>> > expect<br>> > > the compiler to be installed as part of visual studio. What you'll need<br>
> > to<br>> > > do is start a prompt with all the compiler stuff setup and set the env<br>> > var<br>> > > DISTUTILS_USE_SDK=1 to tell distutils to look at the current environment<br>> > > for the compiler instead of the registry.<br>
> > ><br>> > > cheers,<br>> > > Tony<br>> > ><br>> > > On Tuesday, June 17, 2014, Beckett Simmons <<a href="mailto:beckettsimmons@hotmail.com" target="_blank">beckettsimmons@hotmail.com</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:beckettsimmons@hotmail.com" target="_blank">beckettsimmons@hotmail.com</a>');>><br>> > > wrote:<br>> > ><br>> > > > Hey Tony,<br>
> > > ><br>> > > > Thanks for your fast reply.<br>> > > > Your answer got setupwin.py to build for me, but only with Python 3.4<br>> > > > 32-bit.<br>> > > ><br>
> > > > When I run setupwin.py with 64-bit Python I get this error:<br>> > > > File "C:\Python341\Lib\distutils\msvc9compiler.py", line 287, in<br>> > > > query_vcvarsall<br>> > > > raise ValueError(str(list(result.keys())))<br>
> > > ><br>> > > > I am assuming that this is a compiler error because it doesn't have a<br>> > > > 64-bit compiling function. I used the same compiler at the 32-bit build<br>> > > > with was Visual C++ 2010 Express. And I also tried Visual Studio 2012<br>
> > > > Express too. (Making sure to adjust my environment path accordingly.)<br>> > > ><br>> > > > I just want to confirm that this is indeed a compiler issue and doesn't<br>> > > > have to do with the pythonnet code itself.<br>
> > > ><br>> > > > Thanks,<br>> > > > Beckett<br>> > > ><br>> > > ><br>> > > ><br>> > > > > Date: Fri, 13 Jun 2014 18:42:32 +0100<br>> > > > > From: Tony Roberts <<a href="mailto:tony@pyxll.com" target="_blank">tony@pyxll.com</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:tony@pyxll.com" target="_blank">tony@pyxll.com</a>');><br>> > > > <javascript:_e(%7B%7D,'cvml','<a href="mailto:tony@pyxll.com" target="_blank">tony@pyxll.com</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:tony@pyxll.com" target="_blank">tony@pyxll.com</a>');>');>><br>> > > > > To: "A list for users and developers of Python for .NET"<br>
> > > > > <<a href="mailto:pythondotnet@python.org" target="_blank">pythondotnet@python.org</a><br>> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:pythondotnet@python.org" target="_blank">pythondotnet@python.org</a>');><br>
> > > > <javascript:_e(%7B%7D,'cvml','<a href="mailto:pythondotnet@python.org" target="_blank">pythondotnet@python.org</a><br>> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:pythondotnet@python.org" target="_blank">pythondotnet@python.org</a>');>');>><br>
> > > > > Subject: Re: [Python.NET] Python 3.4 Support<br>> > > > > Message-ID:<br>> > > > > <<a href="mailto:CA%2BXbcsbgTfLdGOaLPNHqMTrgyOvRYSULD9T_cJZK0t78ocAG-Q@mail.gmail.com" target="_blank">CA+XbcsbgTfLdGOaLPNHqMTrgyOvRYSULD9T_cJZK0t78ocAG-Q@mail.gmail.com</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:CA%252BXbcsbgTfLdGOaLPNHqMTrgyOvRYSULD9T_cJZK0t78ocAG-Q@mail.gmail.com" target="_blank">CA%2BXbcsbgTfLdGOaLPNHqMTrgyOvRYSULD9T_cJZK0t78ocAG-Q@mail.gmail.com</a>');><br>
> > > > <javascript:_e(%7B%7D,'cvml','<br>> > <a href="mailto:CA%252BXbcsbgTfLdGOaLPNHqMTrgyOvRYSULD9T_cJZK0t78ocAG-Q@mail.gmail.com" target="_blank">CA%2BXbcsbgTfLdGOaLPNHqMTrgyOvRYSULD9T_cJZK0t78ocAG-Q@mail.gmail.com</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:CA%25252BXbcsbgTfLdGOaLPNHqMTrgyOvRYSULD9T_cJZK0t78ocAG-Q@mail.gmail.com" target="_blank">CA%252BXbcsbgTfLdGOaLPNHqMTrgyOvRYSULD9T_cJZK0t78ocAG-Q@mail.gmail.com</a>');><br>
> > ');><br>> > > > ><br>> > > > > Content-Type: text/plain; charset="utf-8"<br>> > > > ><br>> > > > > Hi,<br>> > > > ><br>
> > > > > use setupwin.py instead of setup.py in the renshawbay repo to build<br>> > it.<br>> > > > ><br>> > > > > cheers,<br>> > > > > Tony<br>> > > > ><br>
> > > > ><br>> > > > > On Fri, Jun 13, 2014 at 5:18 PM, Beckett Simmons <<br>> > > > <a href="mailto:beckettsimmons@hotmail.com" target="_blank">beckettsimmons@hotmail.com</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:beckettsimmons@hotmail.com" target="_blank">beckettsimmons@hotmail.com</a>');><br>> > > > <javascript:_e(%7B%7D,'cvml','<a href="mailto:beckettsimmons@hotmail.com" target="_blank">beckettsimmons@hotmail.com</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:beckettsimmons@hotmail.com" target="_blank">beckettsimmons@hotmail.com</a>');>');><br>> > > > > > wrote:<br>> > > > ><br>
> > > > > > Hello all,<br>> > > > > ><br>> > > > > > I am trying to get pythonnet to build with python 3.4. I am on a<br>> > > > Windows 7<br>> > > > > > 64-bit machine and specifically want to use Python 3.4.1.<br>
> > > > > ><br>> > > > > > Of course the official repository on github does not support<br>> > python 3.4<br>> > > > > > yet.<br>> > > > > ><br>
> > > > > > I've tried this fork here: <a href="https://github.com/renshawbay/pythonnet" target="_blank">https://github.com/renshawbay/pythonnet</a><br>> > > > > > But that is not working for me. Running setup.py give me this<br>
> > error:<br>> > > > > > ValueError: close_fds is not supported on Windows platforms if you<br>> > > > > > redirect stdin/stdout/stderr<br>> > > > > ><br>> > > > > > Also, checked out<br>
> > <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/#pythonnet" target="_blank">http://www.lfd.uci.edu/~gohlke/pythonlibs/#pythonnet</a><br>> > > > for<br>> > > > > > a Windows precompiled binary, but they only have the python 3.3<br>
> > version<br>> > > > > > there.<br>> > > > > ><br>> > > > > > Any other ideas or ways I could use pythonnet with Python 3.4?<br>> > > > > ><br>
> > > > > > Beckett<br>> > > > > ><br>> > > > > > _________________________________________________<br>> > > > > > Python.NET mailing list - <a href="mailto:PythonDotNet@python.org" target="_blank">PythonDotNet@python.org</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:PythonDotNet@python.org" target="_blank">PythonDotNet@python.org</a>');><br>> > > > <javascript:_e(%7B%7D,'cvml','<a href="mailto:PythonDotNet@python.org" target="_blank">PythonDotNet@python.org</a><br>
> > <javascript:_e(%7B%7D,'cvml','<a href="mailto:PythonDotNet@python.org" target="_blank">PythonDotNet@python.org</a>');>');><br>> > > > > > <a href="https://mail.python.org/mailman/listinfo/pythondotnet" target="_blank">https://mail.python.org/mailman/listinfo/pythondotnet</a><br>
</div></div>                                          </div></div>
<br>_________________________________________________<br>
Python.NET mailing list - <a href="mailto:PythonDotNet@python.org">PythonDotNet@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/pythondotnet" target="_blank">https://mail.python.org/mailman/listinfo/pythondotnet</a><br></blockquote></div><br></div>