Closed
Description
Environment
- Pythonnet version: 2.3.0
- Python version: 3.7.4
- Operating System: Mac OS Mojave (10.14.6)
Details
-
Describe what you were trying to get done.
I have installed latest mono from brew and installed python 3.7.4 through conda and tried to install pythonnet using below command
pip install -i https://pypi.anaconda.org/pythonnet/simple pythonnet
and observed below error, can someone help me to install pythonnet on Mac ? I am okay to install any python/mono/pythonnet version, all i wanted is to load .Net dll in python in Mac OS.
I have done a lot of experiments with different python versions (2.7, 3.4, 3.7) but nothing succeeded. -
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.
$ pip install -i https://pypi.anaconda.org/pythonnet/simple pythonnet
Looking in indexes: https://pypi.anaconda.org/pythonnet/simple
Collecting pythonnet
Downloading https://pypi.anaconda.org/pythonnet/simple/pythonnet/2.3.0/pythonnet-2.3.0.tar.gz (1.5MB)
|████████████████████████████████| 1.5MB 186kB/s
Building wheels for collected packages: pythonnet
Building wheel for pythonnet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/setup.py'"'"'; __file__='"'"'/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/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 /private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-wheel-895m51li --python-tag cp37
cwd: /private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/
Complete output (41 lines):
running bdist_wheel
running build
running build_ext
/bin/sh: mono: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/setup.py", line 405, in <module>
zip_safe=False,
File "/Users/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Users/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/anaconda3/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/Users/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/anaconda3/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/Users/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/Users/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/setup.py", line 139, in build_extension
self._install_packages()
File "/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/setup.py", line 269, in _install_packages
subprocess.check_call(cmd, shell=use_shell)
File "/Users/anaconda3/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'mono tools/nuget/nuget.exe update -self' returned non-zero exit status 127.
----------------------------------------
ERROR: 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
ERROR: Command errored out with exit status 1:
command: /Users/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/setup.py'"'"'; __file__='"'"'/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/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 /private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-record-itev3e3u/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/
Complete output (43 lines):
running install
running build
running build_ext
/bin/sh: mono: command not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/setup.py", line 405, in <module>
zip_safe=False,
File "/Users/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Users/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/anaco
56AC
nda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Users/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/anaconda3/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Users/anaconda3/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Users/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/anaconda3/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/Users/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/Users/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/Users/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/setup.py", line 139, in build_extension
self._install_packages()
File "/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/setup.py", line 269, in _install_packages
subprocess.check_call(cmd, shell=use_shell)
File "/Users/anaconda3/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'mono tools/nuget/nuget.exe update -self' returned non-zero exit status 127.
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/pythonnet/setup.py'"'"'; __file__='"'"'/private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-install-z9egpj5j/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 /private/var/folders/x0/f4htlb2j76bdp95gtjt4ymsw0000gn/T/pip-record-itev3e3u/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
- If there was a crash, please include the traceback here.
print('TODO')
Metadata
Metadata
Assignees
Labels
No labels