Ubuntu 16.04 pip3 install failure
Environment
- Pythonnet version: 2.3.0
- Python version: 3.5.2
- Operating System: Ubuntu 16.04
Details
Trying to install and getting this failure, which I cannot seem to figure out.
user@bix# pip3 install pythonnet Collecting pythonnet Using cached pythonnet-2.3.0.tar.gz Building wheels for collected packages: pythonnet Running setup.py bdist_wheel for pythonnet ... error Complete output from command /var/www/html/dev_mm_manager/virtualenv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-m3ryjecj/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 /tmp/tmp7lwboz5epip-wheel- --python-tag cp35: 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.1.0. Update successful. MSBuild auto-detection: using msbuild version '14.0' from '/usr/lib/mono/xbuild/14.0/bin'. WARNING: Error reading msbuild project information, ensure that your input solution or project file is valid. NETCore and UAP projects will be skipped, only packages.config files will be restored. Restoring NuGet package NUnit.3.6.0. Adding package 'NUnit.3.6.0' to folder '/tmp/pip-build-m3ryjecj/pythonnet/packages' Added package 'NUnit.3.6.0' to folder '/tmp/pip-build-m3ryjecj/pythonnet/packages' Restoring NuGet package NUnit.ConsoleRunner.3.6.0. Adding package 'NUnit.ConsoleRunner.3.6.0' to folder '/tmp/pip-build-m3ryjecj/pythonnet/packages' Added package 'NUnit.ConsoleRunner.3.6.0' to folder '/tmp/pip-build-m3ryjecj/pythonnet/packages' Restoring NuGet package UnmanagedExports.1.2.7. Adding package 'UnmanagedExports.1.2.7' to folder '/tmp/pip-build-m3ryjecj/pythonnet/packages' Added package 'UnmanagedExports.1.2.7' to folder '/tmp/pip-build-m3ryjecj/pythonnet/packages'
NuGet Config files used: /root/.config/NuGet/NuGet.Config
Feeds used: /root/.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
Seems like I am missing something, but not sure what.
@danlittlejohn as you can see you are missing clang:
FileNotFoundError: [Errno 2] No such file or directory: 'clang'
https://github.com/pythonnet/pythonnet/wiki/Troubleshooting-on-Windows-and-Linux#2-build-and-install-from-command-line
Thanks. That was part of it, but even with it installed correctly I needed a newer mono-complete to get 2.3.0 working.
apt-get clang libglib2.0-dev
apt -y remove --purge --auto-remove mono-runtime
echo "deb http://download.mono-project.com/repo/ubuntu wheezy/snapshots/4.8.0 main" | sudo tee /etc/apt/sources.list.d/mono-official.list
apt-get update
apt-get -y install mono-complete
@danlittlejohn yes, mono-complete 4.8+ is required.
@denfromufa Is there anything left to do here?
I've added the version requirement to the troubleshooting page, that should do it.