Can't install pythonnet on ubuntu 16.04 - python

I'm trying to install pythonnet on my ubuntu, but without success.
I tried some ways as:
pip install pythonnet
2.pip install git+https://github.com/pythonnet/pythonnet
there is any other way?
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ECL8qX/pythonnet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ECL8qX/pythonnet/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-ECL8qX/pythonnet/pip-egg-info
cwd: /tmp/pip-install-ECL8qX/pythonnet/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ECL8qX/pythonnet/setup.py", line 18, in <module>
from wheel import bdist_wheel
ImportError: No module named wheel
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Related

Keep returning error when trying to install MySQL-python on mac

I've tried sudo pip install MySQL-python
I have python 3 and python 2 on my Mac 10.14
and I keep getting this error:
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/tmp/pip-install-00klz8kk/mysql-python/setup.py'"'"'; __file__='"'"'/private/tmp/pip-install-00klz8kk/mysql-python/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 /private/tmp/pip-pip-egg-info-98ox2mo0
cwd: /private/tmp/pip-install-00klz8kk/mysql-python/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-install-00klz8kk/mysql-python/setup.py", line 13, in <module>
from setup_posix import get_config
File "/private/tmp/pip-install-00klz8kk/mysql-python/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
try installing the following which are the same,
pip install pymysql
pip install mysql-connector
pip intsall mysql-connector-python

onedrivesdk not installing with pip

Trying to install onedrivesdk. Getting the following error.
pip install onedrivesdk
Collecting onedrivesdk
Using cached onedrivesdk-2.0.tar.gz (1.1 kB)
ERROR: Command errored out with exit status 1:
command: /Users/ronnie/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/setup.py'"'"'; __file__='"'"'/private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/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 /private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-pip-egg-info-wu2injdc
cwd: /private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/setup.py", line 9, in <module>
with open(NOTICE, 'r', encoding='utf-8') as f:
NotADirectoryError: [Errno 20] Not a directory: '/private/var/folders/2l/ww686y_n7l5gg0k_5l8dvqm40000gn/T/pip-install-3bpo_kor/onedrivesdk/setup.py/../NOTICE.rst'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The package onedrivesdk has been deprecated.
https://pypi.org/project/onedrivesdk/
So it's no longer available for usage.

I am facing "from setuptools import find_namespace_packages" error in python-2.7 while trying to install dm-sonnet package. Any possible solution?

I need to use python-2.7 for some script, setuptools==39.1.0, I cannot pip install dm-sonnet, is there supposed to be find_namespace_packages inside setuptools? Its not there in this setuptools(or v44)
Error message:
ERROR: Command errored out with exit status 1:
command: /home/russo/anaconda3/envs/russo2/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9l072x/dm-sonnet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9l072x/dm-sonnet/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-9l072x/dm-sonnet/pip-egg-info
cwd: /tmp/pip-install-9l072x/dm-sonnet/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-9l072x/dm-sonnet/setup.py", line 7, in <module>
from setuptools import find_namespace_packages
ImportError: cannot import name find_namespace_packages
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
dm-sonnet requires Python 3. You cannot use it with Python 2.
In the commit 00612ca setup.py uses find_packages. You can try this version with Python 2.7. It's perhaps release 1.36 or earlier. Try
pip2 install dm-sonnet==1.36
or
pip2 install 'dm-sonnet<2'

Failed to install airflow with pip

pip command:
pip install google-cloud-storage apache-beam[gcp]==2.2.0 apache-airflow[gcp_api]==1.9.0 paramiko sshtunnel
Error:
ERROR: Command errored out with exit status 1:
command: /home/cyao/Project/itcorp-airflow/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-8hamva8l/apache-airflow/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8hamva8l/apache-airflow/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-8hamva8l/apache-airflow/pip-egg-info
cwd: /tmp/pip-install-8hamva8l/apache-airflow/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-8hamva8l/apache-airflow/setup.py", line 102
async = [
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
This is the code from apache-airflow setup.py from version 1.9.0. In Python 3.7 the word async became a reserved keyword so the code is incompatible with Python 3.7+.
Either use Python 3.6 or use later version of apache-airflow.

I'm trying to install -r requirements.txt from a flask app from github

I keep getting the following error:
ERROR: Command errored out with exit status 1:
command: /Users/felipeveraloza/Desktop/flask-aws-tutorial/flask-aws/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/setup.py'"'"'; __file__='"'"'/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/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 /private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/pip-egg-info
cwd: /private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/
Complete output (10 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/setuptools/__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/setuptools/extension.py", line 2, in <module>
from setuptools.dist import _get_unpatched
File "/private/var/folders/_d/tpx546q90svbs7y84bgplfpm0000gn/T/pip-install-qql4powj/distribute/setuptools/dist.py", line 103
except ValueError, e:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Did you try?
$ pip install -r requirements.txt
I would specify the version of Pip you are using. Mac is defaulted to python 2.7... in your case i would run the command as "pip3" so in your case...
pip3 install -r requirements.txt

Categories