I am trying to install kiwisolver to later import into a python file. Whenever I try to install it it doesn't work. Here is an exerpt from the terminal that insludes the entire error message:
pip install kiwisolver
Collecting kiwisolver
Using cached kiwisolver-1.2.0.tar.gz (52 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\scripts\python.exe' -c 'import sys, setuptools
, tokenize; sys.argv[0] = '"'"'C:\\Users\\krzys\\AppData\\Local\\Temp\\pip-install-7g7nerff\\kiwisolver\\setup.py'"'
"'; __file__='"'"'C:\\Users\\krzys\\AppData\\Local\\Temp\\pip-install-7g7nerff\\kiwisolver\\setup.py'"'"';f=getattr(
tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile
(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\krzys\AppData\Local\Temp\pip-pip-egg-info-lzzrvcrw'
cwd: C:\Users\krzys\AppData\Local\Temp\pip-install-7g7nerff\kiwisolver\
Complete output (44 lines):
WARNING: The wheel package is not available.
ERROR: Command errored out with exit status 1:
command: 'c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\scripts\python.exe' -u -c 'import sys, setup
tools, tokenize; sys.argv[0] = '"'"'C:\\Users\\krzys\\AppData\\Local\\Temp\\pip-wheel-68n7nybw\\cppy\\setup.py'"'"';
__file__='"'"'C:\\Users\\krzys\\AppData\\Local\\Temp\\pip-wheel-68n7nybw\\cppy\\setup.py'"'"';f=getattr(tokenize, '
"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __fi
le__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\krzys\AppData\Local\Temp\pip-wheel-wh_c02y4'
cwd: C:\Users\krzys\AppData\Local\Temp\pip-wheel-68n7nybw\cppy\
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for cppy
ERROR: Failed to build one or more wheels
Traceback (most recent call last):
File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\installer.py", line
126, in fetch_build_egg
subprocess.check_call(cmd)
File "C:\Users\krzys\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\users\\krzys\\pycharmprojects\\possiblyworkingcv2\\venv\\scripts\\
python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\krzys\\AppData\\Loc
al\\Temp\\tmp95axqdwj', '--quiet', 'cppy>=1.1.0']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\krzys\AppData\Local\Temp\pip-install-7g7nerff\kiwisolver\setup.py", line 59, in <module>
setup(
File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\__init__.py", line 1
52, in setup
_install_setup_requires(attrs)
File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\__init__.py", line 1
47, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\dist.py", line 673,
in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\pkg_resources\__init__.py", lin
e 764, in resolve
dist = best[req.key] = env.best_match(
File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\pkg_resources\__init__.py", lin
e 1049, in best_match
return self.obtain(req, installer)
File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\pkg_resources\__init__.py", lin
e 1061, in obtain
return installer(requirement)
File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\dist.py", line 732,
in fetch_build_egg
return fetch_build_egg(self, req)
File "c:\users\krzys\pycharmprojects\possiblyworkingcv2\venv\lib\site-packages\setuptools\installer.py", line
128, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['c:\\users\\krzys\\pycharmprojects\\possiblyworkingcv2\\venv\\scripts
\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\krzys\\AppData\\L
ocal\\Temp\\tmp95axqdwj', '--quiet', 'cppy>=1.1.0']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
What do I need to do to install kiwisolver?
I am using PyCharm Community Edition 2020.2.3 with Python 3.9(venv) interpreter.
Not sure if there are wheels out for kiwisolver in Python 3.9, check here and download and install the correct one if there is one. If not download a 3.8 Python version.
Related
I want to host my Discord Bot on Heroku for free. I tried building it but I get an error while hosting the bot, that I can't solve.
This is the activity log of Discord Bot while publishing it into Heroku:
Building on the Heroku-20 stack
Using buildpack: Heroku/python
Python app detected
No Python version was specified. Using the same version as the last build: python-3.9.5
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
Requirements file has been changed, clearing cached dependencies
Installing python-3.9.5
Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
Installing SQLite3
Installing requirements with pip
Collecting setuptools==49.6.0
Downloading setuptools-49.6.0-py3-none-any.whl (803 kB)
Collecting discord.py==1.7.2
Downloading discord.py-1.7.2-py3-none-any.whl (786 kB)
Collecting discord
Downloading discord-1.0.1-py3-none-any.whl (1.1 kB)
Collecting dotenv
Downloading dotenv-0.0.5.tar.gz (2.4 kB)
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-06xhzdfv/dotenv/setup.py'"'"'; __file__='"'"'/tmp/pip-install-06xhzdfv/dotenv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-m_r1ttd_
cwd: /tmp/pip-install-06xhzdfv/dotenv/
Complete output (51 lines):
ERROR: Command errored out with exit status 1:
command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-9yg4cjho/distribute/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-9yg4cjho/distribute/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-3dj58cd9
cwd: /tmp/pip-wheel-9yg4cjho/distribute/
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-wheel-9yg4cjho/distribute/setuptools/__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "/tmp/pip-wheel-9yg4cjho/distribute/setuptools/extension.py", line 5, in <module>
from setuptools.dist import _get_unpatched
File "/tmp/pip-wheel-9yg4cjho/distribute/setuptools/dist.py", line 7, in <module>
from setuptools.command.install import install
File "/tmp/pip-wheel-9yg4cjho/distribute/setuptools/command/__init__.py", line 8, in <module>
from setuptools.command import install_scripts
File "/tmp/pip-wheel-9yg4cjho/distribute/setuptools/command/install_scripts.py", line 3, in <module>
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "/tmp/pip-wheel-9yg4cjho/distribute/pkg_resources.py", line 1518, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.9/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
subprocess.check_call(cmd)
File "/app/.heroku/python/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/app/.heroku/python/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp6e4wiu5n', '--quiet', 'distribute']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-06xhzdfv/dotenv/setup.py", line 13, in <module>
setup(name='dotenv',
File "/app/.heroku/python/lib/python3.9/site-packages/setuptools/__init__.py", line 160, in setup
_install_setup_requires(attrs)
File "/app/.heroku/python/lib/python3.9/site-packages/setuptools/__init__.py", line 155, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/app/.heroku/python/lib/python3.9/site-packages/setuptools/dist.py", line 695, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/app/.heroku/python/lib/python3.9/site-packages/pkg_resources/__init__.py", line 781, in resolve
dist = best[req.key] = env.best_match(
File "/app/.heroku/python/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1066, in best_match
return self.obtain(req, installer)
File "/app/.heroku/python/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1078, in obtain
return installer(requirement)
File "/app/.heroku/python/lib/python3.9/site-packages/setuptools/dist.py", line 754, in fetch_build_egg
return fetch_build_egg(self, req)
File "/app/.heroku/python/lib/python3.9/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['/app/.heroku/python/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp6e4wiu5n', '--quiet', 'distribute']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
! Push rejected, failed to compile Python app.
! Push failed
You are installing the wrong package. Change dotenv to python-dotenv in your requirements.txt file. See this issue for more information. https://github.com/theskumar/python-dotenv/issues/113
I'm trying to install dotenv for my discord bot with pip3 install dotenv but it keeps giving me this error:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xmobtpdk/dotenv/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xmobtpdk/dotenv/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-xmobtpdk/dotenv/pip-egg-info
cwd: /tmp/pip-install-xmobtpdk/dotenv/
Complete output (51 lines):
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-ts7a2idz/distribute/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-ts7a2idz/distribute/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-vsx7w_h3
cwd: /tmp/pip-wheel-ts7a2idz/distribute/
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/extension.py", line 5, in <module>
from setuptools.dist import _get_unpatched
File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/dist.py", line 7, in <module>
from setuptools.command.install import install
File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/command/__init__.py", line 8, in <module>
from setuptools.command import install_scripts
File "/tmp/pip-wheel-ts7a2idz/distribute/setuptools/command/install_scripts.py", line 3, in <module>
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "/tmp/pip-wheel-ts7a2idz/distribute/pkg_resources.py", line 1518, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Traceback (most recent call last):
File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/installer.py", line 126, in fetch_build_egg
subprocess.check_call(cmd)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpa_3vnder', '--quiet', 'distribute']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-xmobtpdk/dotenv/setup.py", line 13, in <module>
setup(name='dotenv',
File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 152, in setup
_install_setup_requires(attrs)
File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/dist.py", line 673, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/home/fanjin/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 764, in resolve
dist = best[req.key] = env.best_match(
File "/home/fanjin/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1049, in best_match
return self.obtain(req, installer)
File "/home/fanjin/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1061, in obtain
return installer(requirement)
File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/dist.py", line 732, in fetch_build_egg
return fetch_build_egg(self, req)
File "/home/fanjin/.local/lib/python3.8/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpa_3vnder', '--quiet', 'distribute']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I'm using Linux and I already tried sudo pip3 install --upgrade pip setuptools wheel and tried install dotenv again but that didn't work. I also tried sudo easy_install -U setuptools but that didn't work either. I also tried installing another module and it worked, but not for dotenv.
Oh it's because the package is called python-dotenv not dotenv.
I never thought I'd be using Stack Overflow, but here I am!
I am unable to install DotEnv on Windows, when I execute pip install dotenv with its optional flags, this error is thrown:
Collecting dotenv
Using cached dotenv-0.0.5.tar.gz (2.4 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Damian Freeman\\AppData\\Local\\Temp\\pip-install-bdy5mww4\\dotenv\\setup.py'"'"'; __file__='"'"'C:\\Users\\Damian Freeman\\AppData\\Local\\Temp\\pip-install-bdy5mww4\\dotenv\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Damian Freeman\AppData\Local\Temp\pip-pip-egg-info-k9desg5s'
cwd: C:\Users\Damian Freeman\AppData\Local\Temp\pip-install-bdy5mww4\dotenv\
Complete output (52 lines):
WARNING: The wheel package is not available.
ERROR: Command errored out with exit status 1:
command: 'c:\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Damian Freeman\\AppData\\Local\\Temp\\pip-wheel-djm3svo6\\distribute\\setup.py'"'"'; __file__='"'"'C:\\Users\\Damian Freeman\\AppData\\Local\\Temp\\pip-wheel-djm3svo6\\distribute\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Damian Freeman\AppData\Local\Temp\pip-pip-egg-info-s15217m9'
cwd: C:\Users\Damian Freeman\AppData\Local\Temp\pip-wheel-djm3svo6\distribute\
Complete output (15 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Damian Freeman\AppData\Local\Temp\pip-wheel-djm3svo6\distribute\setuptools\__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "C:\Users\Damian Freeman\AppData\Local\Temp\pip-wheel-djm3svo6\distribute\setuptools\extension.py", line 5, in <module>
from setuptools.dist import _get_unpatched
File "C:\Users\Damian Freeman\AppData\Local\Temp\pip-wheel-djm3svo6\distribute\setuptools\dist.py", line 7, in <module>
from setuptools.command.install import install
File "C:\Users\Damian Freeman\AppData\Local\Temp\pip-wheel-djm3svo6\distribute\setuptools\command\__init__.py", line 8, in <module>
from setuptools.command import install_scripts
File "C:\Users\Damian Freeman\AppData\Local\Temp\pip-wheel-djm3svo6\distribute\setuptools\command\install_scripts.py", line 3, in <module>
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "C:\Users\Damian Freeman\AppData\Local\Temp\pip-wheel-djm3svo6\distribute\pkg_resources.py", line 1518, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Traceback (most recent call last):
File "c:\python38\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
subprocess.check_call(cmd)
File "c:\python38\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\\python38\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\DAMIAN~1\\AppData\\Local\\Temp\\tmpfnchk15m', '--quiet', 'distribute']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Damian Freeman\AppData\Local\Temp\pip-install-bdy5mww4\dotenv\setup.py", line 13, in <module>
setup(name='dotenv',
File "c:\python38\lib\site-packages\setuptools\__init__.py", line 143, in setup
_install_setup_requires(attrs)
File "c:\python38\lib\site-packages\setuptools\__init__.py", line 138, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "c:\python38\lib\site-packages\setuptools\dist.py", line 695, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "c:\python38\lib\site-packages\pkg_resources\__init__.py", line 781, in resolve
dist = best[req.key] = env.best_match(
File "c:\python38\lib\site-packages\pkg_resources\__init__.py", line 1066, in best_match
return self.obtain(req, installer)
File "c:\python38\lib\site-packages\pkg_resources\__init__.py", line 1078, in obtain
return installer(requirement)
File "c:\python38\lib\site-packages\setuptools\dist.py", line 754, in fetch_build_egg
return fetch_build_egg(self, req)
File "c:\python38\lib\site-packages\setuptools\installer.py", line 130, in fetch_build_egg
raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['c:\\python38\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\DAMIAN~1\\AppData\\Local\\Temp\\tmpfnchk15m', '--quiet', 'distribute']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
However, I read on an older thread to install DotEnv with pip install python-dotenv but said "solution" was not a fix to my problem.
Any help is appreciated!
You are installing dotenv instead of python-dotenv.Use this command:
pip install -U python-dotenv
Refer this issue
I'm trying to install pythonnet via pip install pythonnet but accord error shown here:
Collecting pythonnet
Using cached pythonnet-2.4.0.tar.gz (1.8 MB)
Building wheels for collected packages: pythonnet
Building wheel for pythonnet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/paziresh/virtualenv/paziresh365/3.6/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jcvixpk5/pythonnet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jcvixpk5/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/pip-wheel-ig8_5h8m
cwd: /tmp/pip-install-jcvixpk5/pythonnet/
Complete output (43 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 "/tmp/pip-install-jcvixpk5/pythonnet/setup.py", line 658, in <module>
zip_safe=False,
File "/home/paziresh/virtualenv/paziresh365/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 161, in setup
return distutils.core.setup(**attrs)
File "/opt/alt/python36/lib64/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/opt/alt/python36/lib64/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/opt/alt/python36/lib64/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/pip-install-jcvixpk5/pythonnet/setup.py", line 610, in run
return bdist_wheel.bdist_wheel.run(self)
File "/home/paziresh/virtualenv/paziresh365/3.6/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/opt/alt/python36/lib64/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/opt/alt/python36/lib64/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/opt/alt/python36/lib64/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/opt/alt/python36/lib64/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/opt/alt/python36/lib64/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/opt/alt/python36/lib64/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/opt/alt/python36/lib64/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/opt/alt/python36/lib64/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-install-jcvixpk5/pythonnet/setup.py", line 245, in build_extension
self._install_packages()
File "/tmp/pip-install-jcvixpk5/pythonnet/setup.py", line 424, in _install_packages
subprocess.check_call(cmd, shell=use_shell)
File "/opt/alt/python36/lib64/python3.6/subprocess.py", line 311, 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: /home/paziresh/virtualenv/paziresh365/3.6/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jcvixpk5/pythonnet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jcvixpk5/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 /tmp/pip-record-uuxxm05w/install-record.txt --single-version-externally-managed --compile --install-headers /home/paziresh/virtualenv/paziresh365/3.6/include/site/python3.6/pythonnet
cwd: /tmp/pip-install-jcvixpk5/pythonnet/
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
ERROR: Command errored out with exit status 1: /home/paziresh/virtualenv/paziresh365/3.6/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jcvixpk5/pythonnet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jcvixpk5/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 /tmp/pip-record-uuxxm05w/install-record.txt --single-version-externally-managed --compile --install-headers /home/paziresh/virtualenv/paziresh365/3.6/include/site/python3.6/pythonnet Check the logs for full command output.
made some searches and found required libs are wheel, setuptools and scons.so all of them are installed and updated. but nothing changed!
any new idea about that?
I'm using python 3.6.8 and Linux
I can't install python net everything in previous solutions I have followed through and it still doesn't work.
I have tried everything. Do I need to uninstall python and do it again?
pip install pyhtonnet
ERROR: Could not find a version that satisfies the requirement pyhtonnet (from versions: none)
ERROR: No matching distribution found for pyhtonnet
C:\Users\vishv>pip install pythonnet
Collecting pythonnet
Using cached pythonnet-2.4.0.tar.gz (1.8 MB)
Building wheels for collected packages: pythonnet
Building wheel for pythonnet (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\vishv\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\setup.py'"'"'; file='"'"'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\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\vishv\AppData\Local\Temp\pip-wheel-qw1gpb32'
cwd: C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet
Complete output (69 lines):
running bdist_wheel
running build
running build_ext
Checking for updates from https://www.nuget.org/api/v2/.
Currently running NuGet.exe 4.1.0.
Updating NuGet.exe to 5.4.0.
Update successful.
Cannot find the specified version of msbuild: '14'
MSBuild auto-detection: using msbuild version '4.0' from 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319'.
Restoring NuGet package NUnit.3.7.1.
Restoring NuGet package NUnit.ConsoleRunner.3.7.0.
Restoring NuGet package UnmanagedExports.1.2.7.
Adding package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\packages'
Adding package 'NUnit.3.7.1' to folder 'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\packages'
Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\packages'
Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\packages'
Added package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\packages'
Added package 'NUnit.3.7.1' to folder 'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\packages'
NuGet Config files used:
C:\Users\vishv\AppData\Roaming\NuGet\NuGet.Config
Feeds used:
C:\Users\vishv.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 24, in
from pycparser import c_ast, c_parser
ModuleNotFoundError: No module named 'pycparser'
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\setup.py", line 623, in
setup(
File "c:\users\vishv\appdata\local\programs\python\python38\lib\site-packages\setuptools_init_.py", line 144, in setup
return distutils.core.setup(**attrs)
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\setup.py", line 610, in run
return bdist_wheel.bdist_wheel.run(self)
File "c:\users\vishv\appdata\local\programs\python\python38\lib\site-packages\wheel\bdist_wheel.py", line 223, in run
self.run_command('build')
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "c:\users\vishv\appdata\local\programs\python\python38\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\setup.py", line 298, in build_extension
subprocess.check_call([sys.executable, geninterop, interop_file])
File "c:\users\vishv\appdata\local\programs\python\python38\lib\subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['c:\users\vishv\appdata\local\programs\python\python38\python.exe', 'tools\geninterop\geninterop.py', 'src\runtime\interop38.cs']' returned non-zero exit status 1.
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: 'c:\users\vishv\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\setup.py'"'"'; file='"'"'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\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\vishv\AppData\Local\Temp\pip-record-h9hrt2n6\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\vishv\appdata\local\programs\python\python38\Include\pythonnet'
cwd: C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\vishv\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\pythonnet\setup.py'"'"'; file='"'"'C:\Users\vishv\AppData\Local\Temp\pip-install-pwmwkrlc\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\vishv\AppData\Local\Temp\pip-record-h9hrt2n6\install-record.txt' --single-version-externally-managed --compile --install-headers
Have you tried installing python 3.7 instead of 3.8? I just ran into a similar error with 3.8 but no problems with 3.7 (and upgraded pip and setuptools). Seems like 3.8. will only work with pythonnet version >= 2.5