Skip to content

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

Closed
aPere3 opened this issue Aug 10, 2016 · 23 comments
Closed

Build fail on Windows 7, VS2012, Python 3.4. #247

aPere3 opened this issue Aug 10, 2016 · 23 comments

Comments

@aPere3
Copy link

aPere3 commented Aug 10, 2016

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:

  • Windows 7 64
  • Visual Studio 2012 Professionnal
  • Python 3.4

Anyway, when I try to load my application on the production machine I get, similarly to #182:

Exception non g�r�e�: System.ArgumentException: Name must not be empty!
   � Python.Runtime.ModuleObject..ctor(String name)
   � Python.Runtime.ModuleObject.GetAttribute(String name, Boolean guess)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)

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):

running install
running bdist_egg
running egg_info
writing pythonnet.egg-info\PKG-INFO
writing top-level names to pythonnet.egg-info\top_level.txt
writing dependency_links to pythonnet.egg-info\dependency_links.txt
reading manifest file 'pythonnet.egg-info\SOURCES.txt'
writing manifest file 'pythonnet.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_ext

Tous les packages répertoriés dans packages.config sont déjà installés.

Using mt.exe from Windows Kit 8.0
Microsoft (R) Manifest Tool version 6.2.9200.16384
Copyright (c) Microsoft Corporation 2012.
All rights reserved.

Microsoft (R) Build Engine, version 4.0.30319.18408
[Microsoft .NET Framework, Version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. Tous droits réservés.

Microsoft (R) Build Engine, version 4.0.30319.18408
[Microsoft .NET Framework, Version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. Tous droits réservés.

assemblymanager.cs(206,37): warning CS0168: La variable 'e' est déclarée, mais jamais utilisée [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,90): error CS1525: Terme d'expression non valide '.' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,91): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,100): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,100): error CS1525: Terme d'expression non valide ')' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,101): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,101): error CS1525: Terme d'expression non valide ')' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,75): error CS1525: Terme d'expression non valide '.' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,76): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,85): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,85): error CS1525: Terme d'expression non valide ')' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,86): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,86): error CS1525: Terme d'expression non valide ')' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,87): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,87): error CS1525: Terme d'expression non valide ')' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,88): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,57): error CS1525: Terme d'expression non valide '.' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,58): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,67): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,67): error CS1525: Terme d'expression non valide ')' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,68): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,68): error CS1525: Terme d'expression non valide ')' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pyobject.cs(975,67): error CS1525: Terme d'expression non valide '.' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pyobject.cs(975,68): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pyobject.cs(975,77): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pyobject.cs(975,77): error CS1525: Terme d'expression non valide ')' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pythonengine.cs(490,69): error CS1525: Terme d'expression non valide '.' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pythonengine.cs(490,70): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pythonengine.cs(490,79): error CS1002: ; attendu [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pythonengine.cs(490,79): error CS1525: Terme d'expression non valide ')' [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]

clrmodule -> C:\Users\user\Downloads\pythonnet-master\pythonnet-master\src\clrmodule\bin\x64\ReleaseWin\clrmodule.dll

Traceback (most recent call last):
  File "C:\Users\user\Downloads\pythonnet-master\pythonnet-master\setup.py", line 358, in <module>
    setup_requires=setup_requires
  File "C:\Python34\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\site-packages\setuptools\command\install.py", line 67, in run
    self.do_egg_install()
  File "C:\Python34\lib\site-packages\setuptools\command\install.py", line 109,in do_egg_install
    self.run_command('bdist_egg')
  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\site-packages\setuptools\command\bdist_egg.py", line 160, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "C:\Python34\lib\site-packages\setuptools\command\bdist_egg.py", line 146, in call_command
    self.run_command(cmdname)
  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\distutils\command\install_lib.py", line 88, in run
    self.build()
  File "C:\Python34\lib\distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\distutils\command\build_ext.py", line 339, in run
    self.build_extensions()
  File "C:\Python34\lib\distutils\command\build_ext.py", line 448, in build_extensions
    self.build_extension(ext)
  File "C:\Users\user\Downloads\pythonnet-master\pythonnet-master\setup.py", line 191, in build_extension
    check_call(" ".join(cmd + ["/t:Build"]), shell=use_shell)
  File "C:\Python34\lib\subprocess.py", line 561, in check_call
    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe" pythonnet.sln /p:Configuration=ReleaseWin /p:Platform=x64/p:DefineConstants="PYTHON34;UCS2" /p:PythonBuildDir="C:\Users\user\Downloads\pythonnet-master\pythonnet-master\build\lib.win-amd64-3.4" /p:PythonInteropFile="interop34.cs" /verbosity:minimal /p:PythonManifest="C:\Users\user\Downloads\pythonnet-master\pythonnet-master\build\lib.win-amd64-3.4\app.manifest" /t:Build' returned non-zero exit status 1

Those errors seems to be related to syntax errors, which I can't understand.

Any idea of what could cause the build to fail?

@aPere3
Copy link
Author

aPere3 commented Aug 10, 2016

Arf I messed with #246 when trying to edit... Do I close #246 ?

@den-run-ai
Copy link
Contributor

@aPere3 this was merged recently here:

#219

so try to install pythonnet from master:

pip install git+https://github.com/pythonnet/pythonnet

@aPere3
Copy link
Author

aPere3 commented Aug 10, 2016

@denfromufa using this, I get the same error.

@den-run-ai
Copy link
Contributor

@aPere3 did you uninstall first pythonnet before installing from master? or you can pass force and update flags to pip.

@den-run-ai
Copy link
Contributor

if the error persists, please provide repeatable code sample with keras. to help you troubleshoot - this is likely related to relative imports.

@aPere3
Copy link
Author

aPere3 commented Aug 10, 2016

@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 pythonnet-master repo).

Effectively, the previous pythnonnet was uninstalled.

For a repeatable code that fails:

import clr
import keras

@den-run-ai
Copy link
Contributor

'setup.py install' is the wrong this to do. either pip install pythonnet (including from git) or python.exe setup.py bdist_wheel

@den-run-ai
Copy link
Contributor

den-run-ai commented Aug 10, 2016

i checked with the master of pythonnet and everything is working:

$ conda install mingw libpython
Using Anaconda Cloud api site https://api.anaconda.org
Fetching package metadata ...........
Solving package specifications: ..........

# All requested packages already installed.
# packages in environment at C:\Python\Python27_32b:
#
libpython                 1.0                      py27_1
mingw                     4.7                           1

denis.akhiyarov@RD009-DENIS C:\Users\denis.akhiyarov
$ pip install git+git://github.com/Theano/Theano.git
Collecting git+git://github.com/Theano/Theano.git
  Cloning git://github.com/Theano/Theano.git to
c:\users\denis~1.akh\appdata\local\temp\pip-g1fwpu-build
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.1 in
c:\python\python27_32b\lib\site-packages (from Theano==0.9.0.dev2)
Requirement already satisfied (use --upgrade to upgrade): scipy>=0.11 in
c:\python\python27_32b\lib\site-packages (from Theano==0.9.0.dev2)
Requirement already satisfied (use --upgrade to upgrade): six>=1.9.0 in
c:\python\python27_32b\lib\site-packages (from Theano==0.9.0.dev2)
Installing collected packages: Theano
  Found existing installation: Theano 0.8.2
    Uninstalling Theano-0.8.2:
      Successfully uninstalled Theano-0.8.2
  Running setup.py install for Theano ... done
Successfully installed Theano-0.9.0.dev2
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip'
command.

denis.akhiyarov@RD009-DENIS C:\Users\denis.akhiyarov
$ python
Python 2.7.11 |Anaconda custom (32-bit)| (default, Mar  4 2016, 15:18:41)
[MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import theano
>>> import keras
Using Theano backend.
>>> exit()

denis.akhiyarov@RD009-DENIS C:\Users\denis.akhiyarov
$ python
Python 2.7.11 |Anaconda custom (32-bit)| (default, Mar  4 2016, 15:18:41)
[MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import clr
>>> import keras
Using Theano backend.
>>>

On Wed, Aug 10, 2016 at 11:10 AM, Alex, Péré <notifications@github.com>
wrote:

> @denfromufa <https://github.com/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 pythonnet-master repo).
>
> Effectively, the previous pythnonnet was uninstalled.
>
> For a repeatable code that fails:
>
> import clr
> import keras
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/pythonnet/pythonnet/issues/247#issuecomment-238917481>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AHgZ5SSoLkXGcUBk-89QWXlmNQ5jqGTQks5qefgCgaJpZM4JhNVN>
> .
>

@aPere3
Copy link
Author

aPere3 commented Aug 10, 2016

Ok, what i tried until now is:

pip install pythonnet

Which installs properly, but when I:

import clr
import keras

I get the following error:

Exception non g�r�e�: System.ArgumentException: Name must not be empty!
   � Python.Runtime.ModuleObject..ctor(String name)
   � Python.Runtime.ModuleObject.GetAttribute(String name, Boolean guess)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)
   � Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
   � Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)

I tried

git clone https://github.com/pythonnet/pythonnet.git
cd pythonnet-master
python.exe setup.py bdist_wheel

Which didn't work and gave me:

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_wheel'

I tried:

pip install git+ https://github.com/pythonnet/pythonnet.git

Which failed and lead me to:

  Cloning https://github.com/pythonnet/pythonnet.git to c:\users\user\appdat
a\local\temp\pip-bu9kp_vi-build
Installing collected packages: pythonnet
  Running setup.py install for pythonnet ... error
    Complete output from command c:\python34\python.exe -u -c "import setuptools
, tokenize;__file__='C:\\Users\\user\\AppData\\Local\\Temp\\pip-bu9kp_vi-bui
ld\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().repl
ace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\user\AppDat
a\Local\Temp\pip-w_gklvuw-record\install-record.txt --single-version-externally-
managed --compile:
    running install
    running build
    running build_ext
    Installing 'UnmanagedExports 1.2.7'.
    Installing 'NUnit 2.6.2'.
    Successfully installed 'NUnit 2.6.2'.
    Successfully installed 'UnmanagedExports 1.2.7'.
    Using mt.exe from Windows Kit 8.0
    Microsoft (R) Manifest Tool version 6.2.9200.16384
    Copyright (c) Microsoft Corporation 2012.
    All rights reserved.
    Microsoft (R) Build Engine, version 4.0.30319.18408
    [Microsoft .NET Framework, Version 4.0.30319.18444]
    Copyright (C) Microsoft Corporation. Tous droits réservés.

    Microsoft (R) Build Engine, version 4.0.30319.18408
    [Microsoft .NET Framework, Version 4.0.30319.18444]
    Copyright (C) Microsoft Corporation. Tous droits réservés.

    assemblymanager.cs(206,37): warning CS0168: La variable 'e' est déclarée, ma
is jamais utilisée [C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\
runtime\Python.Runtime.csproj]
    classderived.cs(789,90): error CS1525: Terme d'expression non valide '.' [C:
\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime
.csproj]
    classderived.cs(789,91): error CS1003: Erreur de syntaxe, ':' attendu [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
    classderived.cs(789,100): error CS1002: ; attendu [C:\Users\user\AppData
\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    classderived.cs(789,100): error CS1525: Terme d'expression non valide ')' [C
:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtim
e.csproj]
    classderived.cs(789,101): error CS1002: ; attendu [C:\Users\user\AppData
\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    classderived.cs(789,101): error CS1525: Terme d'expression non valide ')' [C
:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtim
e.csproj]
    converter.cs(231,75): error CS1525: Terme d'expression non valide '.' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
    converter.cs(231,76): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users
\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cspro
j]
    converter.cs(231,85): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    converter.cs(231,85): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
    converter.cs(231,86): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    converter.cs(231,86): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
    converter.cs(231,87): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    converter.cs(231,87): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
    converter.cs(231,88): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    converter.cs(965,57): error CS1525: Terme d'expression non valide '.' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
    converter.cs(965,58): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users
\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cspro
j]
    converter.cs(965,67): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    converter.cs(965,67): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
    converter.cs(965,68): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    converter.cs(965,68): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
    pyobject.cs(975,67): error CS1525: Terme d'expression non valide '.' [C:\Use
rs\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csp
roj]
    pyobject.cs(975,68): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\
user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj
]
    pyobject.cs(975,77): error CS1002: ; attendu [C:\Users\user\AppData\Loca
l\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    pyobject.cs(975,77): error CS1525: Terme d'expression non valide ')' [C:\Use
rs\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csp
roj]
    pythonengine.cs(490,69): error CS1525: Terme d'expression non valide '.' [C:
\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime
.csproj]
    pythonengine.cs(490,70): error CS1003: Erreur de syntaxe, ':' attendu [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
    pythonengine.cs(490,79): error CS1002: ; attendu [C:\Users\user\AppData\
Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
    pythonengine.cs(490,79): error CS1525: Terme d'expression non valide ')' [C:
\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime
.csproj]
      clrmodule -> C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\c
lrmodule\bin\x64\ReleaseWin\clrmodule.dll
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\setup.py", l
ine 358, in <module>
        setup_requires=setup_requires
      File "c:\python34\lib\distutils\core.py", line 148, in setup
        dist.run_commands()
      File "c:\python34\lib\distutils\dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "c:\python34\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "c:\python34\lib\site-packages\setuptools\command\install.py", line 6
1, in run
        return orig.install.run(self)
      File "c:\python34\lib\distutils\command\install.py", line 539, in run
        self.run_command('build')
      File "c:\python34\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\python34\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "c:\python34\lib\distutils\command\build.py", line 126, in run
        self.run_command(cmd_name)
      File "c:\python34\lib\distutils\cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:\python34\lib\distutils\dist.py", line 974, in run_command
        cmd_obj.run()
      File "c:\python34\lib\distutils\command\build_ext.py", line 339, in run
        self.build_extensions()
      File "c:\python34\lib\distutils\command\build_ext.py", line 448, in build_
extensions
        self.build_extension(ext)
      File "C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\setup.py", l
ine 191, in build_extension
        check_call(" ".join(cmd + ["/t:Build"]), shell=use_shell)
      File "c:\python34\lib\subprocess.py", line 561, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '"C:\Windows\Microsoft.NET\Framework6
4\v4.0.30319\msbuild.exe" pythonnet.sln /p:Configuration=ReleaseWin /p:Platform=
x64 /p:DefineConstants="PYTHON34;UCS2" /p:PythonBuildDir="C:\Users\user\AppD
ata\Local\Temp\pip-bu9kp_vi-build\build\lib.win-amd64-3.4" /p:PythonInteropFile=
"interop34.cs" /verbosity:minimal /p:PythonManifest="C:\Users\user\AppData\L
ocal\Temp\pip-bu9kp_vi-build\build\lib.win-amd64-3.4\app.manifest" /t:Build' ret
urned non-zero exit status 1

    ----------------------------------------
Command "c:\python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\
\Users\\user\\AppData\\Local\\Temp\\pip-bu9kp_vi-build\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --record C:\Users\user\AppData\Local\Temp\pip-w_gklvu
w-record\install-record.txt --single-version-externally-managed --compile" faile
d with error code 1 in C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\

This last method is the one I want to use. But it seems I am facing a building issue isn't it?
Sorry if I misunderstand the issue here, I am not really used to this sort of windows compiling.

@den-run-ai
Copy link
Contributor

have a look at appveyor builds, looks like you do not have wheel package
installed.

On Wed, Aug 10, 2016 at 12:13 PM, Alex, Péré notifications@github.com
wrote:

Ok, what i tried until now is:

pip install pythonnet

Which installs properly, but when I:

import clrimport keras

I get the following error:

Exception non g�r�e�: System.ArgumentException: Name must not be empty!
� Python.Runtime.ModuleObject..ctor(String name)
� Python.Runtime.ModuleObject.GetAttribute(String name, Boolean guess)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)
� Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)
� Python.Runtime.ImportHook.import(IntPtr self, IntPtr args, IntPtr kw)

I tried

git clone https://github.com/pythonnet/pythonnet.git
cd pythonnet-master
python.exe setup.py bdist_wheel

Which didn't work and gave me:

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: invalid command 'bdist_wheel'

I tried:

pip install git+ https://github.com/pythonnet/pythonnet.git

Which failed and lead me to:

Cloning https://github.com/pythonnet/pythonnet.git to c:\users\user\appdat
a\local\temp\pip-bu9kp_vi-build
Installing collected packages: pythonnet
Running setup.py install for pythonnet ... error
Complete output from command c:\python34\python.exe -u -c "import setuptools
, tokenize;file='C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-bui
ld\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().repl
ace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\user\AppDat
a\Local\Temp\pip-w_gklvuw-record\install-record.txt --single-version-externally-
managed --compile:
running install
running build
running build_ext
Installing 'UnmanagedExports 1.2.7'.
Installing 'NUnit 2.6.2'.
Successfully installed 'NUnit 2.6.2'.
Successfully installed 'UnmanagedExports 1.2.7'.
Using mt.exe from Windows Kit 8.0
Microsoft (R) Manifest Tool version 6.2.9200.16384
Copyright (c) Microsoft Corporation 2012.
All rights reserved.
Microsoft (R) Build Engine, version 4.0.30319.18408
[Microsoft .NET Framework, Version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. Tous droits réservés.

Microsoft (R) Build Engine, version 4.0.30319.18408
[Microsoft .NET Framework, Version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. Tous droits réservés.

assemblymanager.cs(206,37): warning CS0168: La variable 'e' est déclarée, ma

is jamais utilisée [C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src
runtime\Python.Runtime.csproj]
classderived.cs(789,90): error CS1525: Terme d'expression non valide '.' [C:
\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime
.csproj]
classderived.cs(789,91): error CS1003: Erreur de syntaxe, ':' attendu [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
classderived.cs(789,100): error CS1002: ; attendu [C:\Users\user\AppData
\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
classderived.cs(789,100): error CS1525: Terme d'expression non valide ')' [C
:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtim
e.csproj]
classderived.cs(789,101): error CS1002: ; attendu [C:\Users\user\AppData
\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
classderived.cs(789,101): error CS1525: Terme d'expression non valide ')' [C
:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtim
e.csproj]
converter.cs(231,75): error CS1525: Terme d'expression non valide '.' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
converter.cs(231,76): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users
\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cspro
j]
converter.cs(231,85): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
converter.cs(231,85): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
converter.cs(231,86): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
converter.cs(231,86): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
converter.cs(231,87): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
converter.cs(231,87): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
converter.cs(231,88): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
converter.cs(965,57): error CS1525: Terme d'expression non valide '.' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
converter.cs(965,58): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users
\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cspro
j]
converter.cs(965,67): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
converter.cs(965,67): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
converter.cs(965,68): error CS1002: ; attendu [C:\Users\user\AppData\Loc
al\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
converter.cs(965,68): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
pyobject.cs(975,67): error CS1525: Terme d'expression non valide '.' [C:\Use
rs\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csp
roj]
pyobject.cs(975,68): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users
user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj
]
pyobject.cs(975,77): error CS1002: ; attendu [C:\Users\user\AppData\Loca
l\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
pyobject.cs(975,77): error CS1525: Terme d'expression non valide ')' [C:\Use
rs\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csp
roj]
pythonengine.cs(490,69): error CS1525: Terme d'expression non valide '.' [C:
\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime
.csproj]
pythonengine.cs(490,70): error CS1003: Erreur de syntaxe, ':' attendu [C:\Us
ers\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.cs
proj]
pythonengine.cs(490,79): error CS1002: ; attendu [C:\Users\user\AppData
Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime.csproj]
pythonengine.cs(490,79): error CS1525: Terme d'expression non valide ')' [C:
\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\runtime\Python.Runtime
.csproj]
clrmodule -> C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\src\c
lrmodule\bin\x64\ReleaseWin\clrmodule.dll
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\setup.py", l
ine 358, in
setup_requires=setup_requires
File "c:\python34\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\python34\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "c:\python34\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\python34\lib\site-packages\setuptools\command\install.py", line 6
1, in run
return orig.install.run(self)
File "c:\python34\lib\distutils\command\install.py", line 539, in run
self.run_command('build')
File "c:\python34\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\python34\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\python34\lib\distutils\command\build.py", line 126, in run
self.run_command(cmd_name)
File "c:\python34\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\python34\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "c:\python34\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "c:\python34\lib\distutils\command\build_ext.py", line 448, in build_
extensions
self.build_extension(ext)
File "C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\setup.py", l
ine 191, in build_extension
check_call(" ".join(cmd + ["/t:Build"]), shell=use_shell)
File "c:\python34\lib\subprocess.py", line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '"C:\Windows\Microsoft.NET\Framework6
4\v4.0.30319\msbuild.exe" pythonnet.sln /p:Configuration=ReleaseWin /p:Platform=
x64 /p:DefineConstants="PYTHON34;UCS2" /p:PythonBuildDir="C:\Users\user\AppD
ata\Local\Temp\pip-bu9kp_vi-build\build\lib.win-amd64-3.4" /p:PythonInteropFile=
"interop34.cs" /verbosity:minimal /p:PythonManifest="C:\Users\user\AppData\L
ocal\Temp\pip-bu9kp_vi-build\build\lib.win-amd64-3.4\app.manifest" /t:Build' ret
urned non-zero exit status 1

----------------------------------------

Command "c:\python34\python.exe -u -c "import setuptools, tokenize;file='C:
\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), fil
e
, 'exec'))" install --record C:\Users\user\AppData\Local\Temp\pip-w_gklvu
w-record\install-record.txt --single-version-externally-managed --compile" faile
d with error code 1 in C:\Users\user\AppData\Local\Temp\pip-bu9kp_vi-build\

This last method is the one I want to use. But it seems I am facing a
building issue isn't it?
Sorry if I misunderstand the issue here, I am not really used to this sort
of windows compiling.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#247 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHgZ5brKsagGfar-zvveOreUfYmgmKNHks5qega5gaJpZM4JhNVN
.

@aPere3
Copy link
Author

aPere3 commented Aug 10, 2016

@denfromufa I installed wheel which changes nothing:

python.exe setup.py bdist_wheel

Still gives me:

running bdist_wheel
running build
running build_ext
Tous les packages répertoriés dans packages.config sont déjà installés.
Using mt.exe from Windows Kit 8.0
Microsoft (R) Manifest Tool version 6.2.9200.16384
Copyright (c) Microsoft Corporation 2012.
All rights reserved.
Microsoft (R) Build Engine, version 4.0.30319.18408
[Microsoft .NET Framework, Version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. Tous droits réservés.

Microsoft (R) Build Engine, version 4.0.30319.18408
[Microsoft .NET Framework, Version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. Tous droits réservés.

assemblymanager.cs(206,37): warning CS0168: La variable 'e' est déclarée, mais
jamais utilisée [C:\Users\user\Downloads\pythonnet-master\pythonnet-master\
src\runtime\Python.Runtime.csproj]
classderived.cs(789,90): error CS1525: Terme d'expression non valide '.' [C:\Us
ers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Run
time.csproj]
classderived.cs(789,91): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
classderived.cs(789,100): error CS1002: ; attendu [C:\Users\user\Downloads\
pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,100): error CS1525: Terme d'expression non valide ')' [C:\U
sers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Ru
ntime.csproj]
classderived.cs(789,101): error CS1002: ; attendu [C:\Users\user\Downloads\
pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,101): error CS1525: Terme d'expression non valide ')' [C:\U
sers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Ru
ntime.csproj]
converter.cs(231,75): error CS1525: Terme d'expression non valide '.' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(231,76): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\ak
eoplus\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.c
sproj]
converter.cs(231,85): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,85): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(231,86): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,86): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(231,87): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,87): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(231,88): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,57): error CS1525: Terme d'expression non valide '.' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(965,58): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\ak
eoplus\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.c
sproj]
converter.cs(965,67): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,67): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(965,68): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,68): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
pyobject.cs(975,67): error CS1525: Terme d'expression non valide '.' [C:\Users\
user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime
.csproj]
pyobject.cs(975,68): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\ake
oplus\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.cs
proj]
pyobject.cs(975,77): error CS1002: ; attendu [C:\Users\user\Downloads\pytho
nnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pyobject.cs(975,77): error CS1525: Terme d'expression non valide ')' [C:\Users\
user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime
.csproj]
pythonengine.cs(490,69): error CS1525: Terme d'expression non valide '.' [C:\Us
ers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Run
time.csproj]
pythonengine.cs(490,70): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
pythonengine.cs(490,79): error CS1002: ; attendu [C:\Users\user\Downloads\p
ythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pythonengine.cs(490,79): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Run
time.csproj]
  clrmodule -> C:\Users\user\Downloads\pythonnet-master\pythonnet-master\sr
  c\clrmodule\bin\x64\ReleaseWin\clrmodule.dll
Traceback (most recent call last):
  File "setup.py", line 358, in <module>
    setup_requires=setup_requires
  File "C:\Python34\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\site-packages\wheel\bdist_wheel.py", line 179, in run
    self.run_command('build')
  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\distutils\command\build.py", line 126, in run
    self.run_command(cmd_name)
  File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "C:\Python34\lib\distutils\command\build_ext.py", line 339, in run
    self.build_extensions()
  File "C:\Python34\lib\distutils\command\build_ext.py", line 448, in build_exte
nsions
    self.build_extension(ext)
  File "setup.py", line 191, in build_extension
    check_call(" ".join(cmd + ["/t:Build"]), shell=use_shell)
  File "C:\Python34\lib\subprocess.py", line 561, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '"C:\Windows\Microsoft.NET\Framework64\v4
.0.30319\msbuild.exe" pythonnet.sln /p:Configuration=ReleaseWin /p:Platform=x64
/p:DefineConstants="PYTHON34;UCS2" /p:PythonBuildDir="C:\Users\user\Download
s\pythonnet-master\pythonnet-master\build\lib.win-amd64-3.4" /p:PythonInteropFil
e="interop34.cs" /verbosity:minimal /p:PythonManifest="C:\Users\user\Downloa
ds\pythonnet-master\pythonnet-master\build\lib.win-amd64-3.4\app.manifest" /t:Bu
ild' returned non-zero exit status 1

I tried to use appveyor, cloning your repo and setting the build script to:

python.exe setup.py install

Which lead me to:

 4running install
 5running bdist_egg
 6running egg_info
 7creating pythonnet.egg-info
 8writing pythonnet.egg-info\PKG-INFO
 9writing top-level names to pythonnet.egg-info\top_level.txt
 10writing dependency_links to pythonnet.egg-info\dependency_links.txt
 11writing manifest file 'pythonnet.egg-info\SOURCES.txt'
 12reading manifest file 'pythonnet.egg-info\SOURCES.txt'
 13writing manifest file 'pythonnet.egg-info\SOURCES.txt'
 14installing library code to build\bdist.win32\egg
 15running install_lib
 16running build_ext
 17Installing 'NUnit 2.6.2'.
 18Installing 'UnmanagedExports 1.2.7'.
 19Successfully installed 'NUnit 2.6.2'.
 20Successfully installed 'UnmanagedExports 1.2.7'.
 21Using mt.exe from Windows Kit 10.0
 22Microsoft (R) Manifest Tool
 23Copyright (c) Microsoft Corporation. 
 24All rights reserved.
 25Microsoft (R) Build Engine version 14.0.25420.1
 26Copyright (C) Microsoft Corporation. All rights reserved.
 27
 28Microsoft (R) Build Engine version 14.0.25420.1
 29Copyright (C) Microsoft Corporation. All rights reserved.
 30
 31assemblymanager.cs(206,37): warning CS0168: The variable 'e' is declared but never used [C:\projects\pythonnet\src\runtime\Python.Runtime.csproj]
 32  Python.Runtime -> C:\projects\pythonnet\src\runtime\bin\x86\ReleaseWin\Python.Runtime.dll
 33C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\projects\pythonnet\src\testing\Python.Test.csproj]
 34eventtest.cs(18,48): warning CS0067: The event 'EventTest.InternalStaticEvent' is never used [C:\projects\pythonnet\src\testing\Python.Test.csproj]
 35eventtest.cs(20,47): warning CS0067: The event 'EventTest.PrivateStaticEvent' is never used [C:\projects\pythonnet\src\testing\Python.Test.csproj]
 36eventtest.cs(26,41): warning CS0067: The event 'EventTest.InternalEvent' is never used [C:\projects\pythonnet\src\testing\Python.Test.csproj]
 37eventtest.cs(28,40): warning CS0067: The event 'EventTest.PrivateEvent' is never used [C:\projects\pythonnet\src\testing\Python.Test.csproj]
 38  Python.Test -> C:\projects\pythonnet\src\testing\bin\x86\ReleaseWin\Python.Test.dll
 39C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\projects\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
 40  Python.EmbeddingTest -> C:\projects\pythonnet\src\embed_tests\bin\x86\ReleaseWin\Python.EmbeddingTest.dll
 41C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\projects\pythonnet\src\console\Console.csproj]
 42assemblyinfo.cs(13,35): warning CS0618: 'SecurityAction.RequestMinimum' is obsolete: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.' [C:\projects\pythonnet\src\console\Console.csproj]
 43  Console -> C:\projects\pythonnet\src\console\bin\x86\Release\nPython.exe
 44C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\projects\pythonnet\src\clrmodule\clrmodule.csproj]
 45  clrmodule -> C:\projects\pythonnet\src\clrmodule\bin\x86\ReleaseWin\clrmodule.dll
 46creating build\bdist.win32
 47creating build\bdist.win32\egg
 48copying build\lib.win32-2.7\clr.pyd -> build\bdist.win32\egg
 49creating stub loader for clr.pyd
 50byte-compiling build\bdist.win32\egg\clr.py to clr.pyc
 51installing package data to build\bdist.win32\egg
 52running install_data
 53copying C:\projects\pythonnet\build\lib.win32-2.7\Python.Runtime.dll -> build\bdist.win32\egg\..\..\..\..\..\Python27\Lib\site-packages
 54copying Python.Runtime.dll.config -> build\bdist.win32\egg\..\..\..\..\..\Python27\Lib\site-packages
 55creating build\bdist.win32\egg\EGG-INFO
 56copying pythonnet.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
 57copying pythonnet.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
 58copying pythonnet.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
 59copying pythonnet.egg-info\not-zip-safe -> build\bdist.win32\egg\EGG-INFO
 60copying pythonnet.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
 61writing build\bdist.win32\egg\EGG-INFO\native_libs.txt
 62creating dist
 63creating 'dist\pythonnet-2.1.0-py2.7-win32.egg' and adding 'build\bdist.win32\egg' to it
 64removing 'build\bdist.win32\egg' (and everything under it)
 65Processing pythonnet-2.1.0-py2.7-win32.egg
 66creating c:\python27\lib\site-packages\pythonnet-2.1.0-py2.7-win32.egg
 67Extracting pythonnet-2.1.0-py2.7-win32.egg to c:\python27\lib\site-packages
 68Adding pythonnet 2.1.0 to easy-install.pth file
 69
 70Installed c:\python27\lib\site-packages\pythonnet-2.1.0-py2.7-win32.egg
 71Processing dependencies for pythonnet==2.1.0
 72Finished processing dependencies for pythonnet==2.1.0
 73Discovering tests...OK
 74nunit-console-x86 "C:\projects\pythonnet\build\lib.win32-2.7\Python.EmbeddingTest.dll"
 75NUnit-Console version 2.6.4.14350
 76Copyright (C) 2002-2012 Charlie Poole.
 77Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
 78Copyright (C) 2000-2002 Philip Craig.
 79All Rights Reserved.
 80
 81Runtime Environment - 
 82   OS Version: Microsoft Windows NT 6.2.9200.0
 83  CLR Version: 2.0.50727.8009 ( Net 3.5 )
 84
 85ProcessModel: Default    DomainUsage: Single
 86Execution Runtime: net-3.5
 87Could not load file or assembly 'nunit.framework, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system cannot find the file specified.
 88Command exited with code -2

@den-run-ai
Copy link
Contributor

do you have .NET 4.0+ installed ? This is requirement! I see this error "
83 CLR Version: 2.0.50727.8009 ( Net 3.5 )"

On Wed, Aug 10, 2016 at 1:05 PM, Alex, Péré notifications@github.com
wrote:

@denfromufa https://github.com/denfromufa I installed wheel which
changes nothing:

python.exe setup.py bdist_wheel

Still gives me:

running bdist_wheel
running build
running build_ext
Tous les packages répertoriés dans packages.config sont déjà installés.
Using mt.exe from Windows Kit 8.0
Microsoft (R) Manifest Tool version 6.2.9200.16384
Copyright (c) Microsoft Corporation 2012.
All rights reserved.
Microsoft (R) Build Engine, version 4.0.30319.18408
[Microsoft .NET Framework, Version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. Tous droits réservés.

Microsoft (R) Build Engine, version 4.0.30319.18408
[Microsoft .NET Framework, Version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. Tous droits réservés.

assemblymanager.cs(206,37): warning CS0168: La variable 'e' est déclarée, mais
jamais utilisée [C:\Users\user\Downloads\pythonnet-master\pythonnet-master
src\runtime\Python.Runtime.csproj]
classderived.cs(789,90): error CS1525: Terme d'expression non valide '.' [C:\Us
ers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Run
time.csproj]
classderived.cs(789,91): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
classderived.cs(789,100): error CS1002: ; attendu [C:\Users\user\Downloads
pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,100): error CS1525: Terme d'expression non valide ')' [C:\U
sers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Ru
ntime.csproj]
classderived.cs(789,101): error CS1002: ; attendu [C:\Users\user\Downloads
pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
classderived.cs(789,101): error CS1525: Terme d'expression non valide ')' [C:\U
sers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Ru
ntime.csproj]
converter.cs(231,75): error CS1525: Terme d'expression non valide '.' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(231,76): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\ak
eoplus\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.c
sproj]
converter.cs(231,85): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,85): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(231,86): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,86): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(231,87): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(231,87): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(231,88): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,57): error CS1525: Terme d'expression non valide '.' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(965,58): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\ak
eoplus\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.c
sproj]
converter.cs(965,67): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,67): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
converter.cs(965,68): error CS1002: ; attendu [C:\Users\user\Downloads\pyth
onnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
converter.cs(965,68): error CS1525: Terme d'expression non valide ')' [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
pyobject.cs(975,67): error CS1525: Terme d'expression non valide '.' [C:\Users
user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime
.csproj]
pyobject.cs(975,68): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users\ake
oplus\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime.cs
proj]
pyobject.cs(975,77): error CS1002: ; attendu [C:\Users\user\Downloads\pytho
nnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pyobject.cs(975,77): error CS1525: Terme d'expression non valide ')' [C:\Users
user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtime
.csproj]
pythonengine.cs(490,69): error CS1525: Terme d'expression non valide '.' [C:\Us
ers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Run
time.csproj]
pythonengine.cs(490,70): error CS1003: Erreur de syntaxe, ':' attendu [C:\Users
\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Runtim
e.csproj]
pythonengine.cs(490,79): error CS1002: ; attendu [C:\Users\user\Downloads\p
ythonnet-master\pythonnet-master\src\runtime\Python.Runtime.csproj]
pythonengine.cs(490,79): error CS1525: Terme d'expression non valide ')' [C:\Us
ers\user\Downloads\pythonnet-master\pythonnet-master\src\runtime\Python.Run
time.csproj]
clrmodule -> C:\Users\user\Downloads\pythonnet-master\pythonnet-master\sr
c\clrmodule\bin\x64\ReleaseWin\clrmodule.dll
Traceback (most recent call last):
File "setup.py", line 358, in
setup_requires=setup_requires
File "C:\Python34\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Python34\lib\site-packages\wheel\bdist_wheel.py", line 179, in run
self.run_command('build')
File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Python34\lib\distutils\command\build.py", line 126, in run
self.run_command(cmd_name)
File "C:\Python34\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Python34\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Python34\lib\distutils\command\build_ext.py", line 448, in build_exte
nsions
self.build_extension(ext)
File "setup.py", line 191, in build_extension
check_call(" ".join(cmd + ["/t:Build"]), shell=use_shell)
File "C:\Python34\lib\subprocess.py", line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '"C:\Windows\Microsoft.NET\Framework64\v4
.0.30319\msbuild.exe" pythonnet.sln /p:Configuration=ReleaseWin /p:Platform=x64
/p:DefineConstants="PYTHON34;UCS2" /p:PythonBuildDir="C:\Users\user\Download
s\pythonnet-master\pythonnet-master\build\lib.win-amd64-3.4" /p:PythonInteropFil
e="interop34.cs" /verbosity:minimal /p:PythonManifest="C:\Users\user\Downloa
ds\pythonnet-master\pythonnet-master\build\lib.win-amd64-3.4\app.manifest" /t:Bu
ild' returned non-zero exit status 1

I tried to use appveyor, cloning your repo and setting the build script to:

python.exe setup.py install

Which lead me to:

4running install
5running bdist_egg
6running egg_info
7creating pythonnet.egg-info
8writing pythonnet.egg-info\PKG-INFO
9writing top-level names to pythonnet.egg-info\top_level.txt
10writing dependency_links to pythonnet.egg-info\dependency_links.txt
11writing manifest file 'pythonnet.egg-info\SOURCES.txt'
12reading manifest file 'pythonnet.egg-info\SOURCES.txt'
13writing manifest file 'pythonnet.egg-info\SOURCES.txt'
14installing library code to build\bdist.win32\egg
15running install_lib
16running build_ext
17Installing 'NUnit 2.6.2'.
18Installing 'UnmanagedExports 1.2.7'.
19Successfully installed 'NUnit 2.6.2'.
20Successfully installed 'UnmanagedExports 1.2.7'.
21Using mt.exe from Windows Kit 10.0
22Microsoft (R) Manifest Tool
23Copyright (c) Microsoft Corporation.
24All rights reserved.
25Microsoft (R) Build Engine version 14.0.25420.1
26Copyright (C) Microsoft Corporation. All rights reserved.
27
28Microsoft (R) Build Engine version 14.0.25420.1
29Copyright (C) Microsoft Corporation. All rights reserved.
30
31assemblymanager.cs(206,37): warning CS0168: The variable 'e' is declared but never used [C:\projects\pythonnet\src\runtime\Python.Runtime.csproj]
32 Python.Runtime -> C:\projects\pythonnet\src\runtime\bin\x86\ReleaseWin\Python.Runtime.dll
33C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\projects\pythonnet\src\testing\Python.Test.csproj]
34eventtest.cs(18,48): warning CS0067: The event 'EventTest.InternalStaticEvent' is never used [C:\projects\pythonnet\src\testing\Python.Test.csproj]
35eventtest.cs(20,47): warning CS0067: The event 'EventTest.PrivateStaticEvent' is never used [C:\projects\pythonnet\src\testing\Python.Test.csproj]
36eventtest.cs(26,41): warning CS0067: The event 'EventTest.InternalEvent' is never used [C:\projects\pythonnet\src\testing\Python.Test.csproj]
37eventtest.cs(28,40): warning CS0067: The event 'EventTest.PrivateEvent' is never used [C:\projects\pythonnet\src\testing\Python.Test.csproj]
38 Python.Test -> C:\projects\pythonnet\src\testing\bin\x86\ReleaseWin\Python.Test.dll
39C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\projects\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
40 Python.EmbeddingTest -> C:\projects\pythonnet\src\embed_tests\bin\x86\ReleaseWin\Python.EmbeddingTest.dll
41C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\projects\pythonnet\src\console\Console.csproj]
42assemblyinfo.cs(13,35): warning CS0618: 'SecurityAction.RequestMinimum' is obsolete: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.' [C:\projects\pythonnet\src\console\Console.csproj]
43 Console -> C:\projects\pythonnet\src\console\bin\x86\Release\nPython.exe
44C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.CSharp.CurrentVersion.targets(133,9): warning MSB3884: Could not find rule set file "MinimumRecommendedRules.ruleset". [C:\projects\pythonnet\src\clrmodule\clrmodule.csproj]
45 clrmodule -> C:\projects\pythonnet\src\clrmodule\bin\x86\ReleaseWin\clrmodule.dll
46creating build\bdist.win32
47creating build\bdist.win32\egg
48copying build\lib.win32-2.7\clr.pyd -> build\bdist.win32\egg
49creating stub loader for clr.pyd
50byte-compiling build\bdist.win32\egg\clr.py to clr.pyc
51installing package data to build\bdist.win32\egg
52running install_data
53copying C:\projects\pythonnet\build\lib.win32-2.7\Python.Runtime.dll -> build\bdist.win32\egg..........\Python27\Lib\site-packages
54copying Python.Runtime.dll.config -> build\bdist.win32\egg..........\Python27\Lib\site-packages
55creating build\bdist.win32\egg\EGG-INFO
56copying pythonnet.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
57copying pythonnet.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
58copying pythonnet.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
59copying pythonnet.egg-info\not-zip-safe -> build\bdist.win32\egg\EGG-INFO
60copying pythonnet.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
61writing build\bdist.win32\egg\EGG-INFO\native_libs.txt
62creating dist
63creating 'dist\pythonnet-2.1.0-py2.7-win32.egg' and adding 'build\bdist.win32\egg' to it
64removing 'build\bdist.win32\egg' (and everything under it)
65Processing pythonnet-2.1.0-py2.7-win32.egg
66creating c:\python27\lib\site-packages\pythonnet-2.1.0-py2.7-win32.egg
67Extracting pythonnet-2.1.0-py2.7-win32.egg to c:\python27\lib\site-packages
68Adding pythonnet 2.1.0 to easy-install.pth file
69
70Installed c:\python27\lib\site-packages\pythonnet-2.1.0-py2.7-win32.egg
71Processing dependencies for pythonnet==2.1.0
72Finished processing dependencies for pythonnet==2.1.0
73Discovering tests...OK
74nunit-console-x86 "C:\projects\pythonnet\build\lib.win32-2.7\Python.EmbeddingTest.dll"
75NUnit-Console version 2.6.4.14350
76Copyright (C) 2002-2012 Charlie Poole.
77Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
78Copyright (C) 2000-2002 Philip Craig.
79All Rights Reserved.
80
81Runtime Environment -
82 OS Version: Microsoft Windows NT 6.2.9200.0
83 CLR Version: 2.0.50727.8009 ( Net 3.5 )
84
85ProcessModel: Default DomainUsage: Single
86Execution Runtime: net-3.5
87Could not load file or assembly 'nunit.framework, Version=2.6.2.12296, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependencies. The system cannot find the file specified.
88Command exited with code -2


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#247 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHgZ5TFNvdj22Qbg_6IkJRKti6jiXZ-Tks5qehLYgaJpZM4JhNVN
.

@aPere3
Copy link
Author

aPere3 commented Aug 10, 2016

This was on appveyor, I assume they don't.

In the case of my production machine, the .Net 4.0 is installled

@den-run-ai
Copy link
Contributor

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.

@den-run-ai
Copy link
Contributor

it is in the settings of appveyor server - disable nunit i believe

@aPere3
Copy link
Author

aPere3 commented Aug 10, 2016

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.

@den-run-ai
Copy link
Contributor

VS 2012 requires C# 6.0 features of compiler to be installed as part of
nuget package for c# compiler. I will open an issue for this. But really
VS2012 is pretty old at the pace of VS and PTVS development.

http://stackoverflow.com/a/32016203/2230844

On Wed, Aug 10, 2016 at 2:15 PM, Alex, Péré notifications@github.com
wrote:

Ok, I'm going to try, but please first, does this line
https://github.com/pythonnet/pythonnet/blob/master/src/runtime/pyobject.cs#L975
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.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#247 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHgZ5dvS5cigbe5Q_GcFTEGV0YJcQlZcks5qeiNugaJpZM4JhNVN
.

@den-run-ai
Copy link
Contributor

btw, you can grab latest wheels here, no need to compile pythonnet:

https://ci.appveyor.com/project/TonyRoberts/pythonnet-480xs/build/job/m11tbw35v4nka809/artifacts

@aPere3
Copy link
Author

aPere3 commented Aug 11, 2016

Great, I managed to install the wheel. I managed to import everything without troubles.

Thank you very much for your help!

@aPere3 aPere3 closed this as completed Aug 11, 2016
@den-run-ai
Copy link
Contributor

ok, let me know if you get any issues with building pythonnet on vs 2012

@stonebig
Copy link
Contributor

can anyone explain me why these artifacts are about 60ko and the cgohlke wheels are about 200K ?

@den-run-ai
Copy link
Contributor

@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.

@stonebig
Copy link
Contributor

ok, thanks. upgrading.

@den-run-ai den-run-ai mentioned this issue Nov 6, 2016
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants