Cannot install geonode in window - python

i am getting the following error when i run the command pip install -e geonode. I am in the process of installing geonode. I am using window 10.
ERROR: Command errored out with exit status 1:
command: 'C:\Users\eidulameen.sh\Documents\geonode_env\Scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\eidulameen.sh\\AppData\\Local\\Temp\\pip-install-wk7ukb8e\\uwsgi_17dc79202ede4643a13c8c5233dc91cc\\setup.py'"'"'; __file__='"'"'C:\\Users\\eidulameen.sh\\AppData\\Local\\Temp\\pip-install-wk7ukb8e\\uwsgi_17dc79202ede4643a13c8c5233dc91cc\\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\eidulameen.sh\AppData\Local\Temp\pip-pip-egg-info-71v4l6zx'
cwd: C:\Users\eidulameen.sh\AppData\Local\Temp\pip-install-wk7ukb8e\uwsgi_17dc79202ede4643a13c8c5233dc91cc\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\eidulameen.sh\AppData\Local\Temp\pip-install-wk7ukb8e\uwsgi_17dc79202ede4643a13c8c5233dc91cc\setup.py", line 3, in <module>
import uwsgiconfig as uc
File "C:\Users\eidulameen.sh\AppData\Local\Temp\pip-install-wk7ukb8e\uwsgi_17dc79202ede4643a13c8c5233dc91cc\uwsgiconfig.py", line 8, in <module>
uwsgi_os = os.uname()[0]
AttributeError: module 'os' has no attribute 'uname'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c7/75/45234f7b441c59b1eefd31ba3d1041a7e3c89602af24488e2a22e11e7259/uWSGI-2.0.19.1.tar.gz#sha256=faa85e053c0b1be4d5585b0858d3a511d2cd10201802e8676060fd0a109e5869 (from https://pypi.org/simple/uwsgi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement uWSGI==2.0.19.1 (from geonode)
ERROR: No matching distribution found for uWSGI==2.0.19.1
Any ideas how to solve the issue. Thank you in advance.

The issue is related to these production and tests packages in requirements.txt and setup.cfg as they should run in a Linux environment not Windows.
If you try to comment them, the issue will not appear.
Also, you may try the Cartoview Windows Installer. Cartoview is an extension of GeoNode visualizing the layers and maps in geospatial apps.

Related

How to install djangorestframework-gis-distance

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.

How to fix ‘“ERROR: Command errored out with exit status 1:” when trying to install desktop Library using pip?

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?

Error installing coco-0.4.0.tar.gz in Python: "Command errored out with exit status 1"

I am trying to install coco-0.4.0.tar.gz in python through pip install, but I'm getting this error:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\brene\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\brene\\AppData\\Local\\Temp\\pip-install-wbchu6pa\\coco\\setup.py'"'"'; __file__='"'"'C:\\Users\\brene\\AppData\\Local\\Temp\\pip-install-wbchu6pa\\coco\\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\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\pip-egg-info'
cwd: C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\setup.py", line 9, in <module>
import coco
File "C:\Users\brene\AppData\Local\Temp\pip-install-wbchu6pa\coco\coco.py", line 18, in <module>
from docopt import docopt
ModuleNotFoundError: No module named 'docopt'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
coco 0.4.0, the last release was at Jan 5, 2013. The package announces compatibility with Python 2.6 and 2.7.
setup.py imports module coco (from the file coco.py) which imports docopt without installing it.
My resolution is: the package is buggy, old, outdated and abandoned. Not recommended for any use.
If you want to try it anyway — first install docopt:
pip install docopt

Pip install frhdtools throws egg_info error

I am trying to install a pip module called "frhdtools". When I try to install it by running pip3 install frhdtools, I get this error:
Collecting frhdtools
Using cached https://files.pythonhosted.org/packages/ac/8b/026dd40093d1b67f15e30bff9bf8ed64d133c38cee996ba702cf941b6259/frhdtools-0.0.4.1.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\python27\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\gabri\\appdata\\local\\temp\\pip-install-gvvrdp\\frhdtools\\setup.py'"'"'; __file__='"'"'c:\\users\\gabri\\appdata\\local\\temp\\pip-install-gvvrdp\\frhdtools\\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: c:\users\gabri\appdata\local\temp\pip-install-gvvrdp\frhdtools\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\gabri\appdata\local\temp\pip-install-gvvrdp\frhdtools\setup.py", line 10, in <module>
version=open(versionFile).read(),
IOError: [Errno 2] No such file or directory: 'VERSION'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I got this error on an Ubuntu installlation about a month back and I ended up having to download the source and just run a file inside it. I am on Windows 10 now, and I was hoping it was just an issue with Ubuntu, but I guess not. I have made sure that it is Python3-compatible (in fact it is python3 only). Any thanks is greatly appreciated, thanks!
Looks like a broken package. It's not including the VERSION file that is required by setup.py. I'm not familiar enough with Python on Windows to tell you how to fix the package, but assuming this is what you're looking for, you can just download it (or clone it) directly from the GitHub page, where the VERSION file is included.

Can't install python-weka-wrapper

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

Categories

Resources