8000 Install failure with Python 3.7.0, Windows 10, .NET Framework Dev Pack 4.7.2 · Issue #784 · pythonnet/pythonnet · GitHub
[go: up one dir, main page]

Skip to content

Install failure with Python 3.7.0, Windows 10, .NET Framework Dev Pack 4.7.2 #784

@amRsching

Description

@amRsching

Environment

  • Pythonnet version: 2.3.0
  • Python version: 3.7.0
  • Operating System: Windows 10
  • .NET version: .NET Framework Dev Pack 4.7.2

Details

  • Describe what you were trying to get done.

    Sorry for the very basic question. I want to use the API of some software in a .NET client application. So I just want to successfully install the PythonNet.

  • What commands did you run to trigger this issue? If you can provide a
    Minimal, Complete, and Verifiable example
    this will help us understand the issue.

    I successfully installed the latest Anaconda (Python 3.7.0) and .NET Framework Dev Pack 4.7.2.
    pip install pythonnet

  • If there was a crash, please include the traceback here.

Collecting pythonnet
Using cached https://files.pythonhosted.org/packages/89/3b/a22cd45b591d6cf490ee8b24d52b9db1f30b4b478b64a9b231c53474731e/pythonnet-2.3.0.tar.gz
Building wheels for collected packages: pythonnet
Running setup.py bdist_wheel for pythonnet ... error
Complete output from command c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\PINGCH1\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\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\PINGCH1\AppData\Local\Temp\pip-wheel-ey9fh5tm --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 3.5.0.
Updating NuGet.exe to 4.7.1.
Update successful.
MSBuild auto-detection: using msbuild version '4.0' from 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319'.
Restoring NuGet package NUnit.3.6.0.
Restoring NuGet package UnmanagedExports.1.2.7.
Restoring NuGet package NUnit.ConsoleRunner.3.6.0.
Adding package 'NUnit.3.6.0' to folder 'C:\Users\Pingchuan Ma\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\packages'
Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Pingchuan Ma\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\packages'
Adding package 'NUnit.ConsoleRunner.3.6.0' to folder 'C:\Users\Pingchuan Ma\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\packages'
Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Pingchuan Ma\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\packages'
Added package 'NUnit.ConsoleRunner.3.6.0' to folder 'C:\Users\Pingchuan Ma\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\packages'
Added package 'NUnit.3.6.0' to folder 'C:\Users\Pingchuan Ma\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\packages'

NuGet Config files used:
C:\Users\Pingchuan Ma\AppData\Roaming\NuGet\NuGet.Config

Feeds used:
C:\Users\Pingchuan Ma.nuget\packages
https://api.nuget.org/v3/index.json

Installed:
3 package(s) to packages.config projects
Traceback (most recent call last):
File "tools\geninterop\geninterop.py", line 292, in
sys.exit(main())
File "tools\geninterop\geninterop.py", line 272, in main
python_h = preprocess_python_headers()
File "tools\geninterop\geninterop.py", line 192, in preprocess_python_headers
for line in _check_output(cmd).splitlines():
File "tools\geninterop\geninterop.py", line 41, in _check_output
output = subprocess.check_output(*args, **kwargs)
File "c:\programdata\anaconda3\lib\subprocess.py", line 376, in check_output
**kwargs).stdout
File "c:\programdata\anaconda3\lib\subprocess.py", line 453, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\programdata\anaconda3\lib\subprocess.py", line 756, in init
restore_signals, start_new_session)
File "c:\programdata\anaconda3\lib\subprocess.py", line 1155, in execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\PINGCH~1\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\setup.py", line 405, in
zip_safe=False,
File "c:\programdata\anaconda3\lib\site-packages\setuptools_init
.py", line 140, in setup
return distutils.core.setup(**attrs)
File "c:\programdata\anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\programdata\anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\programdata\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\programdata\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 202, in run
self.run_command('build')
File "c:\programdata\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\programdata\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\programdata\anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\programdata\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\programdata\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\programdata\anaconda3\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "c:\programdata\anaconda3\lib\distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "c:\programdata\anaconda3\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\PINGCH~1\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\setup.py", line 191, in build_extension
subprocess.check_call([sys.executable, geninterop, interop_file])
File "c:\programdata\anaconda3\lib\subprocess.py", line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\programdata\anaconda3\python.exe', 'tools\geninterop\geninterop.py', 'src\runtime\interop37.cs']' returned non-zero exit status 1.


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 ... error
Complete output from command c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\PINGCH1\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\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\PINGCH1\AppData\Local\Temp\pip-record-g544gzeh\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
Checking for updates from https://www.nuget.org/api/v2/.
Currently running NuGet.exe 4.7.1.
NuGet.exe is up to date.
MSBuild auto-detection: using msbuild version '4.0' from 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319'.
All packages listed in packages.config are already installed.
Traceback (most recent call last):
File "tools\geninterop\geninterop.py", line 292, in
sys.exit(main())
File "tools\geninterop\geninterop.py", line 272, in main
python_h = preprocess_python_headers()
File "tools\geninterop\geninterop.py", line 192, in preprocess_python_headers
for line in _check_output(cmd).splitlines():
File "tools\geninterop\geninterop.py", line 41, in _check_output
output = subprocess.check_output(*args, **kwargs)
File "c:\programdata\anaconda3\lib\subprocess.py", line 376, in check_output
**kwargs).stdout
File "c:\programdata\anaconda3\lib\subprocess.py", line 453, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\programdata\anaconda3\lib\subprocess.py", line 756, in init
restore_signals, start_new_session)
File "c:\programdata\anaconda3\lib\subprocess.py", line 1155, in execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\PINGCH~1\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\setup.py", line 405, in
zip_safe=False,
File "c:\programdata\anaconda3\lib\site-packages\setuptools_init
.py", line 140, in setup
return distutils.core.setup(**attrs)
File "c:\programdata\anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\programdata\anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\programdata\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\programdata\anaconda3\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\programdata\anaconda3\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "c:\programdata\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\programdata\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\programdata\anaconda3\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\programdata\anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\programdata\anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\programdata\anaconda3\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "c:\programdata\anaconda3\lib\distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "c:\programdata\anaconda3\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\PINGCH~1\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\setup.py", line 191, in build_extension
subprocess.check_call([sys.executable, geninterop, interop_file])
File "c:\programdata\anaconda3\lib\subprocess.py", line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\programdata\anaconda3\python.exe', 'tools\geninterop\geninterop.py', 'src\runtime\interop37.cs']' returned non-zero exit status 1.

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

Command "c:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\PINGCH1\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\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\PINGCH1\AppData\Local\Temp\pip-record-g544gzeh\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\PINGCH~1\AppData\Local\Temp\pip-install-boogpjmh\pythonnet\

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0