-
Notifications
You must be signed in to change notification settings - Fork 773
Add to docs a setup steps for Linux #241
Copy link
Copy link
Closed
Description
Hello, I was trying to setup PythonNet on my Linux machine and it was not easy for me. I have the next issue:
root@azh:~/Downloads/pythonnet-2.1.0# pip3 install pythonnet
The directory '/home/azh/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/azh/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pythonnet
Downloading pythonnet-2.1.0.zip (841kB)
100% |████████████████████████████████| 849kB 1.2MB/s
Installing collected packages: pythonnet
Running setup.py install for pythonnet ... error
Complete output from command /usr/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ropnhfme/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-j69ui9dw-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
Installing 'UnmanagedExports 1.2.6'.
Installing 'NUnit 2.6.2'.
Successfully installed 'NUnit 2.6.2'.
Successfully installed 'UnmanagedExports 1.2.6'.
/usr/bin/python3.5: can't open file 'tools/geninterop/geninterop.py': [Errno 2] No such file or directory
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ropnhfme/pythonnet/setup.py", line 357, in <module>
setup_requires=setup_requires
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python3.5/distutils/command/install.py", line 583, in run
self.run_command('build')
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run
self.build_extensions()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-build-ropnhfme/pythonnet/setup.py", line 168, in build_extension
_check_output([sys.executable, geninterop, interop_file])
File "/tmp/pip-build-ropnhfme/pythonnet/setup.py", line 283, in _check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/usr/bin/python3.5', 'tools/geninterop/geninterop.py', 'src/runtime/interop35m.cs']' returned non-zero exit status 2
----------------------------------------
Command "/usr/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ropnhfme/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-j69ui9dw-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ropnhfme/pythonnet/
root@azh:~/Downloads/pythonnet-2.1.0# exit
exit
azh@azh:~/Downloads/pythonnet-2.1.0$
azh@azh:~/Downloads/pythonnet-2.1.0$ pip install pythonnet
Collecting pythonnet
Downloading pythonnet-2.1.0.zip (841kB)
100% |████████████████████████████████| 849kB 1.1MB/s
Installing collected packages: pythonnet
Running setup.py install for pythonnet ... error
Complete output from command /usr/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jv9oykad/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-tshgkshh-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
Installing 'UnmanagedExports 1.2.6'.
Installing 'NUnit 2.6.2'.
Could not find a part of the path "/tmp/nuget/2bi76z0q.44m/license.txt".
Could not find a part of the path "/tmp/nuget/58q8hn2f.z9m/lib/net/RGiesecke.DllExport.Metadata.dll".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-jv9oykad/pythonnet/setup.py", line 357, in <module>
setup_requires=setup_requires
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.5/dist-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python3.5/distutils/command/install.py", line 583, in run
self.run_command('build')
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run
self.build_extensions()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-build-jv9oykad/pythonnet/setup.py", line 122, in build_extension
self._install_packages()
File "/tmp/pip-build-jv9oykad/pythonnet/setup.py", line 231, in _install_packages
check_call(cmd, shell=use_shell)
File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'mono tools/nuget/nuget.exe restore pythonnet.sln -o packages' returned non-zero exit status 1
----------------------------------------
Command "/usr/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-jv9oykad/pythonnet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-tshgkshh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-jv9oykad/pythonnet/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels