I am getting following error while installing mod_wsgi using pip3. I downloaded it once mistakenly before installing Apache, then it threw error for Apache's unavailability and didn't install. Then I installed Apache using command brew install apache2 and then did pip3 install mod_wsgi --no-cache-dir so that it don't take up the cached image, but it didn't work and got following error. Any help is much appreciated. Thanks!
Collecting mod_wsgi
Downloading mod_wsgi-4.7.1.tar.gz (498 kB)
|████████████████████████████████| 498 kB 4.6 MB/s
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python#3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-install-lygp82k1/mod-wsgi_ef198f9a817445a7b3cf53dd590fbdb2/setup.py'"'"'; __file__='"'"'/private/var/folders/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-install-lygp82k1/mod-wsgi_ef198f9a817445a7b3cf53dd590fbdb2/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/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-pip-egg-info-2q3u8hgc
cwd: /private/var/folders/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-install-lygp82k1/mod-wsgi_ef198f9a817445a7b3cf53dd590fbdb2/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/0f/3wwtkx4d6m94zpmq0r5rw5c80000gn/T/pip-install-lygp82k1/mod-wsgi_ef198f9a817445a7b3cf53dd590fbdb2/setup.py", line 490, in <module>
target_version = tuple(map(int, target.split('.')))
AttributeError: 'int' object has no attribute 'split'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Related
I am on Ubuntu and I tried to install djangorestframework-gis-distance
I followed the instructions and installed the dependencies which installed fine.
But when I install djangorestframework-gis-distance it gives an error of
ERROR: Command errored out with exit status 1:
command: /home/aarush/git_fudo/food1_back/food1_back/env/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/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 pip-egg-info
cwd: /tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ntgn7sle/djangorestframework-gis-distance/setup.py", line 9, in <module>
from pip.req import parse_requirements
ModuleNotFoundError: No module named 'pip.req'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Which basically says I think that there is no file called pip.req.
Is there another way I can install djangorestframework-gis-distance?
Lets see: https://pypi.org/project/djangorestframework-gis-distance/ . Latest version 1.0.0 released Feb 7, 2016.
Requires Python 2.7 but not 3+. Django 1.7+ but most probably not Django 2+. The error message indicates setup.py uses forbidden API pip.req which was only available in pip < 19 (IIRC).
The bottom line: the package is abandoned and outdated. Forget about it.
I am revisiting the python language and I am experiencing difficulty setting up my environment.
I am using - python 3.8.2 (packaged with the system) - robotframework-desktoplibrary 1.0.1 - pip 20.2.3
I encounter an error message when attempting to install desktop library via pip. I believe the error is caused by pip attempting to install in python 3.8 folders (without sufficient permissions) instead of the python 3 folder.
I encounter the following error message when attempting to install robotframework-desktoplibrary via pip:
Collecting robotframework-desktoplibrary
Using cached robotframework-desktoplibrary-1.0.1.zip (15.6 MB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\shivendra.singh\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\shivendra.singh\\AppData\\Local\\Temp\\pip-install-kcqq2ihh\\robotframework-desktoplibrary\\setup.py'"'"'; __file__='"'"'C:\\Users\\shivendra.singh\\AppData\\Local\\Temp\\pip-install-kcqq2ihh\\robotframework-desktoplibrary\\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\shivendra.singh\AppData\Local\Temp\pip-pip-egg-info-bisto_oa'
cwd: C:\Users\shivendra.singh\AppData\Local\Temp\pip-install-kcqq2ihh\robotframework-desktoplibrary\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\shivendra.singh\AppData\Local\Temp\pip-install-kcqq2ihh\robotframework-desktoplibrary\setup.py", line 4, in <module>
execfile(join(dirname(abspath(__file__)), 'target', 'src', 'SikuliLibrary', 'version.py'))
NameError: name 'execfile' is not defined
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
How to resolve this?
I want install ClientForm this is python module but I get this error during installation, someone can help me ?
python -m pip install ClientForm
Collecting ClientForm
Using cached ClientForm-0.2.10.tar.gz (104 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Users\paulo\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\paulo\\AppData\\Local\\Temp\\pip-install-tava6mrg\\clientform\\setup.py'"'"'; __file__='"'"'C:\\Users\\paulo\\AppData\\Local\\Temp\\pip-install-tava6mrg\\clientform\\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\paulo\AppData\Local\Temp\pip-pip-egg-info-s3ag4apt'
cwd: C:\Users\paulo\AppData\Local\Temp\pip-install-tava6mrg\clientform\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\paulo\AppData\Local\Temp\pip-install-tava6mrg\clientform\setup.py", line 13
False, True = 0, 1
^
SyntaxError: cannot assign to False
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ClientForm was last released in 2008 on the same day as the first Python 3.0 release. It is considered abandoned by its author in favor of the mechanize package.
It is not compatible with the version of Python 3 you are trying to install it on.
Check out the mechanize package.
I tried to install virtalenvwrapper but it failed. I have no idea what to do
C:\Users\Vimal Rajan>pip install virtualenvwrapper
Collecting virtualenvwrapper
Downloading virtualenvwrapper-4.8.4.tar.gz (334 kB)
|████████████████████████████████| 334 kB 1.3 MB/s
ERROR: Command errored out with exit status 1:
command: 'c:\users\vimal rajan\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Vimal Rajan\\AppData\\Local\\Temp\\pip-install-3nh4gw0r\\virtualenvwrapper\\setup.py'"'"'; __file__='"'"'C:\\Users\\Vimal Rajan\\AppData\\Local\\Temp\\pip-install-3nh4gw0r\\virtualenvwrapper\\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\Vimal Rajan\AppData\Local\Temp\pip-pip-egg-info-7pa4p02r'
cwd: C:\Users\Vimal Rajan\AppData\Local\Temp\pip-install-3nh4gw0r\virtualenvwrapper\
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ValueError: source code string cannot contain null bytes
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I think the problem is with the directory name: Vimal Rajan.
I think the error refers to the space character between Vimal Rajan
If the directory name is similar to the Vimal_Rajan, VimalRajan or etc, the problem is solved.
If you don't want to change your directory name Vimal Rajan, then you can use C:\ directory for virtualenvwrapper.
I'm installing package python-weka-wrapper. But i have a problem with that about Java Development Kit.
This is for python 3.7.4 on windows 10.
C:\Users\dell>pip install python-weka-wrapper3
Collecting python-weka-wrapper3
Using cached https://files.pythonhosted.org/packages/48/3a/0f345b19774b5b6c53e9456c2985d79ff09b610bbf29d95403004734a45b/python-weka-wrapper3-0.1.7.tar.gz
Collecting javabridge>=1.0.14
Using cached https://files.pythonhosted.org/packages/a6/a0/c59bccabed99b1d4ac68166c59c679b375bfca75b78688b52c541b711578/javabridge-1.0.18.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\dell\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-4r0otofz\\javabridge\\setup.py'"'"'; __file__='"'"'C:\\Users\\dell\\AppData\\Local\\Temp\\pip-install-4r0otofz\\javabridge\\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\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\pip-egg-info'
cwd: C:\Users\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\
Complete output (9 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\setup.py", line 402, in <module>
ext_modules=ext_modules(),
File "C:\Users\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\setup.py", line 96, in ext_modules
jdk_home = find_jdk()
File "C:\Users\dell\AppData\Local\Temp\pip-install-4r0otofz\javabridge\javabridge\locate.py", line 203, in find_jdk
"Failed to find the Java Development Kit. "
RuntimeError: Failed to find the Java Development Kit. Please download and install the Oracle JDK 1.6 or later
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Althought I've installed JDK1.8.0_231
So how to fix the error? Thank you!
You have checked and found the Java runtime Environment (JRE), not the Java development Kit, which is a seperate installation.
You can find it on the oracle website. Download and install and then your problem should be solved