-
Notifications
You must be signed in to change notification settings - Fork 747
Can't install on Ubuntu 16.04 #654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Probably it's a setup.py bug that can be reproduced only in special environment state |
My environment really isn't anything special. It's just your standard Ubuntu 16.04. What are my options? |
Please try to install from the https://github.com/pythonnet/pythonnet/tree/featured branch |
How do I install from that branch? |
@aushani see the wiki for installation, this issue above maybe due to mono version. try this version used in travis ci - mono 5.10.0.140-0xamarin1+ubuntu1404b1: https://travis-ci.org/pythonnet/pythonnet/jobs/348038386#L637 |
I have this same problem using MacOS 10 and Python 2.3, Mono 5.10. |
@u01ai11 are you sure about Python 2.3?! |
I couldn't install for python 3.6 on ubuntu 16.04 as well. Running
|
@arisliang there should be more detailed error report during the build process of pythonnet. "Failed building wheel for pythonnet" is very generic error message. |
Here's the full error message when I run
|
facing the same issue referencing here some other issue reports and threads which make me look more into setuptools and disutils. could downgrading specific packages help?? |
my pip version is 18.0, and setuptools is 39.1.0. Any particular package needs to downgrade to what version? |
@arisliang i thought i replied to this, you are missing clang, see this line in your error traceback:
|
Ubuntu Xenial is going to be supported for Python 3.7 as part of this PR once completed: |
Will it work for Python 3.6? |
@arisliang it should |
Not sure if this is still an issue, closing for now. Please report back otherwise. Python 3.7 with Ubuntu Xenial 16.04 is merged. |
There is no PYPI release yet, install from master branch:
https://github.com/pythonnet/pythonnet/wiki/Installation
…On Mon, Dec 10, 2018, 6:22 AM Peter Mudrievskij ***@***.***> wrote:
Still an issue.
Pythonnet: 2.3.0
Python: 3.7.1
Operating System: Windows 10
C:\Program Files (x86)\Python37-32\Scripts>pip install pythonnet
Collecting pythonnet
Using cached https://files.pythonhosted.org/packages/89/3b/a22cd45b591d6cf490ee8b24d52b9db1f30b4b478b64a9b231c53474731e/pythonnet-2.3.0.tar.gz
Installing collected packages: pythonnet
Running setup.py install for pythonnet ... error
Complete output from command "c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Peter\\AppData\\Local\\Temp\\pip-install-a5bxshg9\\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\Peter\AppData\Local\Temp\pip-record-lmnq9b87\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
Џа®ўҐаЄ ®Ў®ў«ҐЁ© Ё§ "https://www.nuget.org/api/v2/".
‘Ґ©з б § ЇгйҐ NuGet.exe 3.5.0.
ЋЎ®ў«ҐЁҐ NuGet.exe ў 4.7.1.
ЋЎ®ў«ҐЁҐ ўлЇ®«Ґ®.
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.3.6.0.
Restoring NuGet package NUnit.ConsoleRunner.3.6.0.
Restoring NuGet package UnmanagedExports.1.2.7.
Adding package 'NUnit.ConsoleRunner.3.6.0' to folder 'C:\Users\Peter\AppData\Local\Temp\pip-install-a5bxshg9\pythonnet\packages'
Adding package 'NUnit.3.6.0' to folder 'C:\Users\Peter\AppData\Local\Temp\pip-install-a5bxshg9\pythonnet\packages'
Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Peter\AppData\Local\Temp\pip-install-a5bxshg9\pythonnet\packages'
Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\Peter\AppData\Local\Temp\pip-install-a5bxshg9\pythonnet\packages'
Added package 'NUnit.ConsoleRunner.3.6.0' to folder 'C:\Users\Peter\AppData\Local\Temp\pip-install-a5bxshg9\pythonnet\packages'
Added package 'NUnit.3.6.0' to folder 'C:\Users\Peter\AppData\Local\Temp\pip-install-a5bxshg9\pythonnet\packages'
NuGet Config files used:
C:\Users\Peter\AppData\Roaming\NuGet\NuGet.Config
C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config
Feeds used:
C:\Users\Peter\.nuget\packages\
https://api.nuget.org/v3/index.json
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
Installed:
3 package(s) to packages.config projects
Traceback (most recent call last):
File "tools\geninterop\geninterop.py", line 292, in <module>
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:\program files (x86)\python37-32\lib\subprocess.py", line 389, in check_output
**kwargs).stdout
File "c:\program files (x86)\python37-32\lib\subprocess.py", line 466, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\program files (x86)\python37-32\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)
File "c:\program files (x86)\python37-32\lib\subprocess.py", line 1172, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Не удается найти указанный файл
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Peter\AppData\Local\Temp\pip-install-a5bxshg9\pythonnet\setup.py", line 405, in <module>
zip_safe=False,
File "c:\program files (x86)\python37-32\lib\site-packages\setuptools\__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "c:\program files (x86)\python37-32\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\program files (x86)\python37-32\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\program files (x86)\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\program files (x86)\python37-32\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\program files (x86)\python37-32\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "c:\program files (x86)\python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\program files (x86)\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\program files (x86)\python37-32\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\program files (x86)\python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\program files (x86)\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\program files (x86)\python37-32\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "c:\program files (x86)\python37-32\lib\distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "c:\program files (x86)\python37-32\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\Peter\AppData\Local\Temp\pip-install-a5bxshg9\pythonnet\setup.py", line 191, in build_extension
subprocess.check_call([sys.executable, geninterop, interop_file])
File "c:\program files (x86)\python37-32\lib\subprocess.py", line 341, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\program files (x86)\\python37-32\\python.exe', 'tools\\geninterop\\geninterop.py', 'src\\runtime\\interop37.cs']' returned non-zero exit status 1.
----------------------------------------
Command ""c:\program files (x86)\python37-32\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\Peter\\AppData\\Local\\Temp\\pip-install-a5bxshg9\\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\Peter\AppData\Local\Temp\pip-record-lmnq9b87\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Peter\AppData\Local\Temp\pip-install-a5bxshg9\pythonnet\
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#654 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHgZ5b17YJtKY3aGX7n_oN9OzSzcgv9Wks5u3lIFgaJpZM4TFTaD>
.
|
Environment
Details
Trying to install using pip, I get the following errors for master and 2.3.0
And
The text was updated successfully, but these errors were encountered: