<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=IT link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi to all,</p><p class=MsoNormal>I’m trying to install pythonnet on ubuntu 16.04.</p><p class=MsoNormal>I installed mono-complete</p><p class=MsoNormal>Apt-get install mono-complete</p><p class=MsoNormal>It seems to be work.</p><p class=MsoNormal>Now </p><p class=MsoNormal>Pip install pythonnet.</p><p class=MsoNormal>This is the log:</p><p class=MsoNormal>Collecting pythonnet</p><p class=MsoNormal>  Using cached pythonnet-2.1.0.zip</p><p class=MsoNormal>Building wheels for collected packages: pythonnet</p><p class=MsoNormal>  Running setup.py bdist_wheel for pythonnet: started</p><p class=MsoNormal>  Running setup.py bdist_wheel for pythonnet: finished with status 'error'</p><p class=MsoNormal>  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qU3Z2m/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpEQkI3_pip-wheel- --python-tag cp27:</p><p class=MsoNormal>  running bdist_wheel</p><p class=MsoNormal>  running build</p><p class=MsoNormal>  running build_ext</p><p class=MsoNormal>  ï»¿ï»¿Installing 'NUnit 2.6.2'.</p><p class=MsoNormal>  Installing 'UnmanagedExports 1.2.6'.</p><p class=MsoNormal>  Successfully installed 'NUnit 2.6.2'.</p><p class=MsoNormal>  Successfully installed 'UnmanagedExports 1.2.6'.</p><p class=MsoNormal>  XBuild Engine Version 12.0</p><p class=MsoNormal>  Mono, Version 4.2.1.0</p><p class=MsoNormal>  Copyright (C) 2005-2013 Various Mono authors</p><p class=MsoNormal>  /tmp/pip-build-qU3Z2m/pythonnet/pythonnet.sln:  warning : The project configuration for project 'clrmodule' corresponding to the solution configuration 'ReleaseMono|x64' was not found.</p><p class=MsoNormal>  XBuild Engine Version 12.0</p><p class=MsoNormal>  Mono, Version 4.2.1.0</p><p class=MsoNormal>  Copyright (C) 2005-2013 Various Mono authors</p><p class=MsoNormal>                               Configuration: ReleaseMono Platform: x64</p><p class=MsoNormal>  /tmp/pip-build-qU3Z2m/pythonnet/pythonnet.sln:  warning : The project configuration for project 'clrmodule' corresponding to the solution configuration 'ReleaseMono|x64' was not found.</p><p class=MsoNormal>               Configuration: ReleaseMono Platform: x64</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Object' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.ValueType' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Attribute' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Int32' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.UInt32' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Int64' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.UInt64' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Single' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Double' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Char' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Int16' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Decimal' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Boolean' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.SByte' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Byte' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.UInt16' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.String' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Enum' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Delegate' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.MulticastDelegate' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Void' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Array' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Type' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Collections.IEnumerator' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Collections.IEnumerable' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.IDisposable' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.IntPtr' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.UIntPtr' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.RuntimeFieldHandle' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.RuntimeTypeHandle' is not defined or imported</p><p class=MsoNormal>  CSC: error CS0518: The predefined type `System.Exception' is not defined or imported</p><p class=MsoNormal>  Configuration: ReleaseMono Platform: x64</p><p class=MsoNormal>  Traceback (most recent call last):</p><p class=MsoNormal>    File "<string>", line 1, in <module></p><p class=MsoNormal>    File "/tmp/pip-build-qU3Z2m/pythonnet/setup.py", line 357, in <module></p><p class=MsoNormal>      setup_requires=setup_requires</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/core.py", line 151, in setup</p><p class=MsoNormal>      dist.run_commands()</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands</p><p class=MsoNormal>      self.run_command(cmd)</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command</p><p class=MsoNormal>      cmd_obj.run()</p><p class=MsoNormal>    File "/usr/lib/python2.7/dist-packages/wheel/bdist_wheel.py", line 179, in run</p><p class=MsoNormal>      self.run_command('build')</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command</p><p class=MsoNormal>      self.distribution.run_command(command)</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command</p><p class=MsoNormal>      cmd_obj.run()</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run</p><p class=MsoNormal>      self.run_command(cmd_name)</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command</p><p class=MsoNormal>      self.distribution.run_command(command)</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command</p><p class=MsoNormal>      cmd_obj.run()</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run</p><p class=MsoNormal>      self.build_extensions()</p><p class=MsoNormal>    File "/usr/lib/python2.7/distutils/command/build_ext.py", line 448, in build_extensions</p><p class=MsoNormal>      self.build_extension(ext)</p><p class=MsoNormal>    File "/tmp/pip-build-qU3Z2m/pythonnet/setup.py", line 188, in build_extension</p><p class=MsoNormal>      check_call(" ".join(cmd + ["/t:Build"]), shell=use_shell)</p><p class=MsoNormal>    File "/usr/lib/python2.7/subprocess.py", line 541, in check_call</p><p class=MsoNormal>      raise CalledProcessError(retcode, cmd)</p><p class=MsoNormal>  subprocess.CalledProcessError: Command 'xbuild pythonnet.sln /p:Configuration=ReleaseMono /p:Platform=x64 /p:DefineConstants="PYTHON27,UCS4,MONO_LINUX" /p:PythonBuildDir="/tmp/pip-build-qU3Z2m/pythonnet/build/lib.linux-x86_64-2.7" /p:PythonInteropFile="interop27.cs" /verbosity:minimal /t:Build' returned non-zero exit status 1</p><p class=MsoNormal>  </p><p class=MsoNormal>  ----------------------------------------</p><p class=MsoNormal>  Failed building wheel for pythonnet</p><p class=MsoNormal>  Running setup.py clean for pythonnet</p><p class=MsoNormal>Failed to build pythonnet</p><p class=MsoNormal>Installing collected packages: pythonnet</p><p class=MsoNormal>  Running setup.py install for pythonnet: started</p><p class=MsoNormal>    Running setup.py install for pythonnet: finished with status 'error'</p><p class=MsoNormal>    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qU3Z2m/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-gbLWSw-record/install-record.txt --single-version-externally-managed --compile:</p><p class=MsoNormal>    running install</p><p class=MsoNormal>    running build</p><p class=MsoNormal>    running build_ext</p><p class=MsoNormal>    ï»¿ï»¿Tutti i pacchetti elencati in packages.configsono già installati.</p><p class=MsoNormal>    XBuild Engine Version 12.0</p><p class=MsoNormal>    Mono, Version 4.2.1.0</p><p class=MsoNormal>    Copyright (C) 2005-2013 Various Mono authors</p><p class=MsoNormal>    /tmp/pip-build-qU3Z2m/pythonnet/pythonnet.sln:  warning : The project configuration for project 'clrmodule' corresponding to the solution configuration 'ReleaseMono|x64' was not found.</p><p class=MsoNormal>    XBuild Engine Version 12.0</p><p class=MsoNormal>    Mono, Version 4.2.1.0</p><p class=MsoNormal>    Copyright (C) 2005-2013 Various Mono authors</p><p class=MsoNormal>                               Configuration: ReleaseMono Platform: x64</p><p class=MsoNormal>    /tmp/pip-build-qU3Z2m/pythonnet/pythonnet.sln:  warning : The project configuration for project 'clrmodule' corresponding to the solution configuration 'ReleaseMono|x64' was not found.</p><p class=MsoNormal>               Configuration: ReleaseMono Platform: x64</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Object' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.ValueType' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Attribute' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Int32' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.UInt32' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Int64' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.UInt64' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Single' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Double' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Char' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Int16' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Decimal' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Boolean' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.SByte' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Byte' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.UInt16' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.String' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Enum' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Delegate' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.MulticastDelegate' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Void' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Array' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Type' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Collections.IEnumerator' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Collections.IEnumerable' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.IDisposable' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.IntPtr' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.UIntPtr' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.RuntimeFieldHandle' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.RuntimeTypeHandle' is not defined or imported</p><p class=MsoNormal>    CSC: error CS0518: The predefined type `System.Exception' is not defined or imported</p><p class=MsoNormal>    Configuration: ReleaseMono Platform: x64</p><p class=MsoNormal>    Traceback (most recent call last):</p><p class=MsoNormal>      File "<string>", line 1, in <module></p><p class=MsoNormal>      File "/tmp/pip-build-qU3Z2m/pythonnet/setup.py", line 357, in <module></p><p class=MsoNormal>        setup_requires=setup_requires</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup</p><p class=MsoNormal>        dist.run_commands()</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands</p><p class=MsoNormal>        self.run_command(cmd)</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command</p><p class=MsoNormal>        cmd_obj.run()</p><p class=MsoNormal>      File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run</p><p class=MsoNormal>        return orig.install.run(self)</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run</p><p class=MsoNormal>        self.run_command('build')</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command</p><p class=MsoNormal>        self.distribution.run_command(command)</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command</p><p class=MsoNormal>        cmd_obj.run()</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run</p><p class=MsoNormal>        self.run_command(cmd_name)</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command</p><p class=MsoNormal>        self.distribution.run_command(command)</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command</p><p class=MsoNormal>        cmd_obj.run()</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/command/build_ext.py", line 339, in run</p><p class=MsoNormal>        self.build_extensions()</p><p class=MsoNormal>      File "/usr/lib/python2.7/distutils/command/build_ext.py", line 448, in build_extensions</p><p class=MsoNormal>        self.build_extension(ext)</p><p class=MsoNormal>      File "/tmp/pip-build-qU3Z2m/pythonnet/setup.py", line 188, in build_extension</p><p class=MsoNormal>        check_call(" ".join(cmd + ["/t:Build"]), shell=use_shell)</p><p class=MsoNormal>      File "/usr/lib/python2.7/subprocess.py", line 541, in check_call</p><p class=MsoNormal>        raise CalledProcessError(retcode, cmd)</p><p class=MsoNormal>    subprocess.CalledProcessError: Command 'xbuild pythonnet.sln /p:Configuration=ReleaseMono /p:Platform=x64 /p:DefineConstants="PYTHON27,UCS4,MONO_LINUX" /p:PythonBuildDir="/tmp/pip-build-qU3Z2m/pythonnet/build/lib.linux-x86_64-2.7" /p:PythonInteropFile="interop27.cs" /verbosity:minimal /t:Build' returned non-zero exit status 1</p><p class=MsoNormal>    </p><p class=MsoNormal>    ----------------------------------------</p><p class=MsoNormal>Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qU3Z2m/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-gbLWSw-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-qU3Z2m/pythonnet/</p><p class=MsoNormal>Ok, I don’t understand, but all types are broken… it is strange.</p><p class=MsoNormal>Help!</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Inviato da <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Posta</a> per Windows 10</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>