-
Notifications
You must be signed in to change notification settings - Fork 748
Build fail on Windows 7, VS2012, Python 3.4. #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@aPere3 this was merged recently here: so try to install pythonnet from master: pip install git+https://github.com/pythonnet/pythonnet |
@denfromufa using this, I get the same error. |
@aPere3 did you uninstall first pythonnet before installing from master? or you can pass force and update flags to pip. |
if the error persists, please provide repeatable code sample with keras. to help you troubleshoot - this is likely related to relative imports. |
@denfromufa sorry for not being clear enough, when i said i get the same error, i meant the build failed with the same error (which doesn't surprise me, because i was trying to build pythonnet from a cloned Effectively, the previous pythnonnet was uninstalled. For a repeatable code that fails:
|
'setup.py install' is the wrong this to do. either pip install pythonnet (including from git) or python.exe setup.py bdist_wheel |
i checked with the master of pythonnet and everything is working:
|
Ok, what i tried until now is:
Which installs properly, but when I: import clr
import keras I get the following error:
I tried
Which didn't work and gave me:
I tried:
Which failed and lead me to:
This last method is the one I want to use. But it seems I am facing a building issue isn't it? |
have a look at appveyor builds, looks like you do not have On Wed, Aug 10, 2016 at 12:13 PM, Alex, Péré notifications@github.com
|
@denfromufa I installed
Still gives me:
I tried to use appveyor, cloning your repo and setting the build script to:
Which lead me to:
|
do you have .NET 4.0+ installed ? This is requirement! I see this error " On Wed, Aug 10, 2016 at 1:05 PM, Alex, Péré notifications@github.com
|
This was on appveyor, I assume they don't. In the case of my production machine, the .Net 4.0 is installled |
if you are running this on appveyor CI machines, then disable automatic testing. as you can see from pythonnnet appveyor yaml file the tests are running manually at the end of the build. |
it is in the settings of appveyor server - disable nunit i believe |
Ok, I'm going to try, but please first, does this line seems good to you, especially at the question mark (I do not know enough of C# to say by myself)? Because it's on this kind of question mark that the compiling fail on my side. Moreover, when I open the file with visual studio, it is also found as mistyped. |
VS 2012 requires C# 6.0 features of compiler to be installed as part of http://stackoverflow.com/a/32016203/2230844 On Wed, Aug 10, 2016 at 2:15 PM, Alex, Péré notifications@github.com
|
btw, you can grab latest wheels here, no need to compile pythonnet: https://ci.appveyor.com/project/TonyRoberts/pythonnet-480xs/build/job/m11tbw35v4nka809/artifacts |
Great, I managed to install the wheel. I managed to import everything without troubles. Thank you very much for your help! |
ok, let me know if you get any issues with building pythonnet on vs 2012 |
can anyone explain me why these artifacts are about 60ko and the cgohlke wheels are about 200K ? |
@stonebig you can easily extract wheel as an archive and see content. in this case cgohlke wheels still contain legacy nPython.exe. there is no need for it anymore. |
ok, thanks. upgrading. |
Hello everyone,
I try to use pythonnet with some other compiled libraries like numpy, scipy, theano, and overall keras. Pythonnet allows me too get the data I want, to treat them with keras.
The production machine config is a as follows:
Anyway, when I try to load my application on the production machine I get, similarly to #182:
This error happened at the
import keras
call in my code, and it is an issue I did not have on the development machine...Given that it seems that this error has been patched on the master branch, I'm trying to build the library from pythonnet-master. But when I run
setup.py install
, I get the following messages (sorry for the French language):Those errors seems to be related to syntax errors, which I can't understand.
Any idea of what could cause the build to fail?
The text was updated successfully, but these errors were encountered: