Discussion:
[Python.NET] pip install prerelease versions
David Anthoff
2014-03-17 19:40:28 UTC
Permalink
Hi everyone,



if you are on Python 2.7 and Windows you can try to install a nightly
snapshot of Python.Net via pip:



pip install --pre pythonnet



Make sure you have a recent version of pip installed
(http://www.pip-installer.org/en/latest/installing.html).



This is VERY experimental and the version you will get is just a nightly
snapshot of the current source on github. It should work on Windows 8.1,
though.



Please report back any problems or success of this. The current plan is
still to release a stable version 2.0 at some point.



The major thanks for the progress so far goes to Tony, who has contributed
most of the code changes to make this work.



Best,

David
Rudi Lutz
2014-03-21 15:32:08 UTC
Permalink
Hi!

I just installed using pip as instructed, but I now get an error saying
that it can't find file or assembly Python.Runtime Version 4.0.0.1
and I can't find a file called that anywhere installed as part of the
installation process. I have some older versions of Python.Runtime
but they don't work (must be wrong version)

Help.

Regards,
Rudi

_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
https://mail.python.org/mailman/listinfo/pythondotnet
David Anthoff
2014-03-21 21:54:49 UTC
Permalink
Are you trying to run 1) npython.exe or are you running 2) python.exe and
then do import clr?

The first option is broken right now
(https://github.com/pythonnet/pythonnet/issues/26), the second option should
work. If this is not related to npython.exe, can you please file an issue
https://github.com/pythonnet/pythonnet/issues with precise error output and
replication steps? Much appreciated!

Best,
David

-----Original Message-----
From: PythonDotNet
[mailto:pythondotnet-bounces+anthoff=berkeley.edu-+ZN9ApsXKcEdnm+***@public.gmane.org] On Behalf Of
Rudi Lutz
Sent: Friday, March 21, 2014 8:32 AM
To: pythondotnet-+ZN9ApsXKcEdnm+***@public.gmane.org
Subject: Re: [Python.NET] pip install prerelease versions



Hi!

I just installed using pip as instructed, but I now get an error saying
that it can't find file or assembly Python.Runtime Version 4.0.0.1 and I
can't find a file called that anywhere installed as part of the installation
process. I have some older versions of Python.Runtime but they don't work
(must be wrong version)

Help.

Regards,
Rudi

_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
https://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
https://mail.python.org/mailman/listinfo/pythondotnet
Rudi Lutz
2014-03-24 08:13:05 UTC
Permalink
Post by David Anthoff
Are you trying to run 1) npython.exe or are you running 2) python.exe and
then do import clr?
The first option is broken right now
(https://github.com/pythonnet/pythonnet/issues/26), the second option should
work. If this is not related to npython.exe, can you please file an issue
https://github.com/pythonnet/pythonnet/issues with precise error output and
replication steps? Much appreciated!
Best,
David
-----Original Message-----
From: PythonDotNet
On Behalf Of
Rudi Lutz
Sent: Friday, March 21, 2014 8:32 AM
Subject: Re: [Python.NET] pip install prerelease versions
Hi!
I just installed using pip as instructed, but I now get an error saying
that it can't find file or assembly Python.Runtime Version 4.0.0.1 and I
can't find a file called that anywhere installed as part of the installation
process. I have some older versions of Python.Runtime but they don't work
(must be wrong version)
Help.
Regards,
Rudi
_________________________________________________
https://mail.python.org/mailman/listinfo/pythondotnet
_________________________________________________
https://mail.python.org/mailman/listinfo/pythondotnet
Hi!
I am running python.exe, and doing 'import cld'. Simply starting up Python and doing 'import
cld' is enough to trigger an ioException, as shown below:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\rudil>python
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
Post by David Anthoff
Post by David Anthoff
import clr
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembl
y 'Python.Runtime, Version=4.0.0.1, Culture=neutral, PublicKeyToken=5000fea6cba7
02dd' or one of its dependencies. The located assembly's manifest definition doe
s not match the assembly reference. (Exception from HRESULT: 0x80131040)
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String cod
eBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&
stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntro
spection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String code
Base, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& s
tackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntros
pection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName as
semblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMar
k& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIn
trospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at clrModule.initclr()

Thank you very much for looking at this.

Regards,
Rudi



_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
https://mail.python.org/mailman/listinfo/pythondotnet
Rudi Lutz
2014-03-24 08:36:18 UTC
Permalink
Issue filed properly now as asked for! Sorry

Regards,
Rudi


_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
https://mail.python.org/mailman/listinfo/pythondotnet
Rudi Lutz
2014-03-24 22:39:51 UTC
Permalink
Post by Rudi Lutz
Issue filed properly now as asked for! Sorry
Regards,
Rudi
_________________________________________________
https://mail.python.org/mailman/listinfo/pythondotnet
Just in case anyone else has this problem. See David's reply to me:

https://github.com/pythonnet/pythonnet/issues/34

It fixed it perfectly

Regards,
Rudi

_________________________________________________
Python.NET mailing list - PythonDotNet-+ZN9ApsXKcEdnm+***@public.gmane.org
https://mail.python.org/mailman/listinfo/pythondotnet

Loading...