Skip to content

Windows 8 install error #793

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
qyangcaltech opened this issue Dec 8, 2018 · 4 comments
Closed

Windows 8 install error #793

qyangcaltech opened this issue Dec 8, 2018 · 4 comments

Comments

@qyangcaltech
Copy link

Environment

  • Pythonnet version: master
  • Python version: 3.7.0
  • Operating System: Windows 8

Details

$ �pip install git+https://github.com/pythonnet/pythonnet
Collecting git+https://github.com/pythonnet/pythonnet
Cloning https://github.com/pythonnet/pythonnet to c:\users\ateam\appdata\local\temp\pip-req-build-z0r5bt1p
Building wheels for collected packages: pythonnet
Running setup.py bdist_wheel for pythonnet: started
Running setup.py bdist_wheel for pythonnet: finished with status 'error'
Complete output from command c:\users\ateam\anaconda\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d C:\Users\Ateam\AppData\Local\Temp\pip-wheel-9rfuysvc --python-tag cp37:
running bdist_wheel
running build
running build_ext
Checking for updates from https://www.nuget.org/api/v2/.
Currently running NuGet.exe 4.1.0.
Updating NuGet.exe to 4.7.1.
Update successful.
Cannot find the specified version of msbuild: '14'
MSBuild auto-detection: using msbuild version '15.9.20.62856' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin'.
Restoring NuGet package UnmanagedExports.1.2.7.
Restoring NuGet package NUnit.ConsoleRunner.3.7.0.
Restoring NuGet package NUnit.3.7.1.
Adding package 'NUnit.3.7.1' to folder 'C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\packages'
Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\packages'
Adding package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\packages'
Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\packages'
Added package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\packages'
Added package 'NUnit.3.7.1' to folder 'C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\packages'

NuGet Config files used:
C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\NuGet.Config
C:\Users\Ateam\AppData\Roaming\NuGet\NuGet.Config

Feeds used:
C:\Users\Ateam.nuget\packages
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
https://api.nuget.org/v3/index.json

Installed:
3 package(s) to packages.config projects
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\setup.py", line 534, in
zip_safe=False,
File "c:\users\ateam\anaconda\lib\site-packages\setuptools_init_.py", line 143, in setup
return distutils.core.setup(**attrs)
File "c:\users\ateam\anaconda\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\ateam\anaconda\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\ateam\anaconda\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\setup.py", line 482, in run
return bdist_wheel.bdist_wheel.run(self)
File "c:\users\ateam\anaconda\lib\site-packages\wheel\bdist_wheel.py", line 188, in run
self.run_command('build')
File "c:\users\ateam\anaconda\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\ateam\anaconda\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\ateam\anaconda\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\ateam\anaconda\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\ateam\anaconda\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\ateam\anaconda\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "c:\users\ateam\anaconda\lib\distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "c:\users\ateam\anaconda\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\setup.py", line 257, in build_extension
manifest = self._get_manifest(dest_dir)
File "C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\setup.py", line 274, in _get_manifest
mt = self._find_msbuild_tool("mt.exe", use_windows_sdk=True)
File "C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\setup.py", line 399, in _find_msbuild_tool
raise RuntimeError("{0} could not be found".format(tool))
RuntimeError: mt.exe could not be found


Failed building wheel for pythonnet
Running setup.py clean for pythonnet
Failed to build pythonnet
Installing collected packages: pythonnet
Running setup.py install for pythonnet: started
Running setup.py install for pythonnet: finished with status 'error'
Complete output from command c:\users\ateam\anaconda\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Ateam\AppData\Local\Temp\pip-record-uqkgtmup\install-record.txt --single-version-externally-managed --compile:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: option --single-version-externally-managed not recognized

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

Command "c:\users\ateam\anaconda\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\Ateam\AppData\Local\Temp\pip-record-uqkgtmup\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Ateam\AppData\Local\Temp\pip-req-build-z0r5bt1p\

@den-run-ai
Copy link
Contributor

You are missing mt.exe from MSVC build tools.

#254

The second error is this:

#731

Search the issue tracker for python3.7 installation options (Appveyor artifacts or unofficial wheels)

@qyangcaltech
Copy link
Author

Thanks for your reponse! I installed SDK and now the missing mt.exe issue is gone. However there seems to be another issue either using pip install pythonnet or cloning from the master branch:

running install
running build
running build_ext
Checking for updates from https://www.nuget.org/api/v2/.
Currently running NuGet.exe 4.1.0.
Updating NuGet.exe to 4.7.1.
Update successful.
Cannot find the specified version of msbuild: '14'
MSBuild auto-detection: using msbuild version '15.9.20.62856' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin'.
Restoring NuGet package NUnit.ConsoleRunner.3.7.0.
Restoring NuGet package UnmanagedExports.1.2.7.
Restoring NuGet package NUnit.3.7.1.
Adding package 'NUnit.3.7.1' to folder 'C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\packages'
Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\packages'
Adding package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\packages'
Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\packages'
Added package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\packages'
Added package 'NUnit.3.7.1' to folder 'C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\packages'

NuGet Config files used:
C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\NuGet.Config
C:\Users\Ateam\pyLabLib-dev\pythonnet\NuGet.Config
C:\Users\Ateam\AppData\Roaming\NuGet\NuGet.Config

Feeds used:
C:\Users\Ateam.nuget\packages
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
https://api.nuget.org/v3/index.json

Installed:
3 package(s) to packages.config projects
Microsoft (R) Manifest Tool version 6.3.9600.17336
Copyright (c) Microsoft Corporation 2012.
All rights reserved.
Microsoft (R) Build Engine version 4.6.1590.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 12/8/2018 3:14:21 PM.
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" on node 1 (Clean target(s)).
ValidateSolutionConfiguration:
Building solution configuration "ReleaseWin|x64".
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (1) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj" (2) on node 1 (Clean target(s)).
CoreClean:
Creating directory "obj\x64\ReleaseWin".
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj" (Clean target(s)).
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (1) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\console\Console.csproj" (3) on node 1 (Cleantarget(s)).
CoreClean:
Creating directory "obj\x64\ReleaseWin".
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\console\Console.csproj" (3) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj" (4) on node 1 (Clean target(s)).
CoreClean:
Creating directory "obj\x64\ReleaseWin".
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj" (Clean target(s)).
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\console\Console.csproj" (Clean target(s)).
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (1) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj" (5)on node 1 (Clean target(s)).
CoreClean:
Creating directory "obj\x64\ReleaseWin".
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj" (Clean target(s)).
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (1) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\testing\Python.Test.csproj" (6) on node 1 (Clean target(s)).
CoreClean:
Creating directory "obj\x64\ReleaseWin".
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\testing\Python.Test.csproj" (Clean target(s)).
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (Cleantarget(s)).

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:00:00.09
Microsoft (R) Build Engine version 4.6.1590.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 12/8/2018 3:14:21 PM.
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" on node 1 (Build target(s)).
ValidateSolutionConfiguration:
Building solution configuration "ReleaseWin|x64".
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (1) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj" (2) on node 1(default targets).
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj]
PrepareForBuild:
Creating directory "bin".
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Csc.exe /noconfig /unsafe+ /nowarn:1591,1701,1702 /langversion:6 /nostdlib+ /doc:bin\Python.Runtime.xml /define:PYTHON37;PYTHON3;UCS2 /highentropyva- /reference:C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll /debug:pdbonly /optimize+ /out:obj\x64\ReleaseWin\Python.Runtime.dll /resource:resources\clr.py,clr.py /target:library /utf8output Properties\AssemblyInfo.cs ..\SharedAssemblyInfo.cs arrayobject.cs assemblymanager.cs classderived.cs classbase.cs classmanager.cs classobject.cs clrobject.cs codegenerator.cs constructorbinder.cs constructorbinding.cs converter.cs CustomMarshaler.cs debughelper.cs delegatemanager.cs delegateobject.cs eventbinding.cs eventobject.cs exceptions.cs extensiontype.cs fieldobject.cs generictype.cs genericutil.cs importhook.cs indexer.cs interfaceobject.cs interfaces.cs interop.cs iterator.cs managedtype.cs metatype.cs methodbinder.cs methodbinding.cs methodobject.cs methodwrapper.cs modulefunctionobject.cs moduleobject.cs modulepropertyobject.cs nativecall.cs overload.cs propertyobject.cs pyansistring.cs pydict.cs pyfloat.cs pyint.cs pyiter.cs pylist.cs pylong.cs pynumber.cs pyobject.cs pyscope.cs pysequence.cs pystring.cs pythonengine.cs pythonexception.cs pytuple.cs runtime.cs typemanager.cs typemethod.cs Util.cs interop37.cs "C:\Users\Ateam\AppData\Local\Temp.NETFramework,Version=v4.0.AssemblyAttributes.cs"
CSC : error CS1617: Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj]
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj" (default targets) -- FAILED.
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (1) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\testing\Python.Test.csproj" (3) on node 1 (default targets).
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\testing\Python.Test.csproj]
PrepareForBuild:
Creating directory "bin".
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\testing\Python.Test.csproj" (default targets) -- FAILED.
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (1) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj" (4)on node 1 (default targets).
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
PrepareForBuild:
Creating directory "bin".
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj" (default targets) -- FAILED.
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (1) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\console\Console.csproj" (5) on node 1 (default targets).
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\console\Console.csproj]
PrepareForBuild:
Creating directory "bin".
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\console\Console.csproj" (default targets) -- FAILED.
Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (1) is building "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj" (6) on node 1 (default targets).
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj]
PrepareForBuild:
Creating directory "bin".
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Csc.exe /noconfig /nowarn:1591,1701,1702 /langversion:6 /nostdlib+ /platform:x64 /errorreport:prompt /doc:bin\clrmodule.xml /define:PYTHON37;PYTHON3;UCS2 /highentropyva- /reference:C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll /reference:C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\packages\UnmanagedExports.1.2.7\lib\net\RGiesecke.DllExport.Metadata.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll /debug:pdbonly /optimize+ /out:obj\x64\ReleaseWin\clrmodule.dll /target:library /utf8output Properties\AssemblyInfo.cs ..\SharedAssemblyInfo.cs ClrModule.cs "C:\Users\Ateam\AppData\Local\Temp.NETFramework,Version=v4.0.AssemblyAttributes.cs"
CSC : error CS1617: Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj]
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj" (default targets) -- FAILED.
Done Building Project "C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (Buildtarget(s)) -- FAILED.

Build FAILED.

"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (Build target) (1) ->
"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj" (defaulttarget) (2) ->
(GetReferenceAssemblyPaths target) ->
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget yourapplication to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj]

"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (Build target) (1) ->
"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\testing\Python.Test.csproj" (default target) (3) ->
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget yourapplication to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\testing\Python.Test.csproj]

"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (Build target) (1) ->
"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj" (default target) (4) ->
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget yourapplication to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]

"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (Build target) (1) ->
"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\console\Console.csproj" (default target) (5) ->
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget yourapplication to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\console\Console.csproj]

"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (Build target) (1) ->
"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj" (default target) (6) ->
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget yourapplication to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj]

"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (Build target) (1) ->
"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj" (defaulttarget) (2) ->
(CoreCompile target) ->
CSC : error CS1617: Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\runtime\Python.Runtime.csproj]

"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\pythonnet.sln" (Build target) (1) ->
"C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj" (default target) (6) ->
CSC : error CS1617: Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default [C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\src\clrmodule\clrmodule.csproj]

5 Warning(s)
2 Error(s)

Time Elapsed 00:00:00.18
Traceback (most recent call last):
File "setup.py", line 534, in
zip_safe=False,
File "C:\Users\Ateam\Anaconda\lib\site-packages\setuptools_init_.py", line 143, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Ateam\Anaconda\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\Ateam\Anaconda\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\Ateam\Anaconda\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 466, in run
return install.install.run(self)
File "C:\Users\Ateam\Anaconda\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\Ateam\Anaconda\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Ateam\Anaconda\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Ateam\Anaconda\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\Ateam\Anaconda\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Ateam\Anaconda\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\Ateam\Anaconda\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Users\Ateam\Anaconda\lib\distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "C:\Users\Ateam\Anaconda\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "setup.py", line 265, in build_extension
subprocess.check_call(" ".join(cmd + ["/t:Build"]), shell=use_shell)
File "C:\Users\Ateam\Anaconda\lib\subprocess.py", line 328, 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="PYTHON37%3BPYTHON3%3BUCS2" /p:PythonBuildDir="C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\build\lib.win-amd64-3.7" /p:PythonInteropFile="interop37.cs" /verbosity:normal /p:PythonManifest="C:\Users\Ateam\pyLabLib-dev\pythonnet\pythonnet\build\lib.win-amd64-3.7\app.manifest" /t:Build' returned non-zero exit status 1.

@den-run-ai
Copy link
Contributor

den-run-ai commented Dec 9, 2018

@qyangcaltech you are likely getting some issues with this specific version of msbuild/nuget:

CSC : error CS1617: Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default
#539

Try downgrading your msbuild/nuget or just grab the pythonnet binaries like suggested here:

#780 (comment)

@qyangcaltech
Copy link
Author

Hi denformufa,

Thanks again for your response! I followed thread #780 and the unofficial installation worked.

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

2 participants