I want to launch a web app on Azure app sevice connected to my azure repo, but I have this problem
ERROR: Command errored out with exit status 1: /tmp/8da0e58792c9438/antenv/bin/python /tmp/8da0e58792c9438/antenv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp34ji_cp4 Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 22.0.4 is available.
You should consider upgrading via the '/tmp/8da0e58792c9438/antenv/bin/python -m pip install --upgrade pip' command.
"2022-03-25 07:00:00"|ERROR|Failed pip installation with exit code: 1
ERROR: Command errored out with exit status 1:\n command: /tmp/8da0e58792c9438/antenv/bin/python /tmp/8da0e58792c9438/antenv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp34ji_cp4\n cwd: /tmp/pip-install-t7g41qou/pywinpty\n
Complete output (6 lines):\n \n Cargo, the Rust package manager, is not installed or is not on PATH.\n This package requires Rust and Cargo to compile extensions. Install it through\n the system's package manager or via https://rustup.rs/\n \n Checking for Rust toolchain....
\n ----------------------------------------\n
ERROR: Command errored out with exit status 1: /tmp/8da0e58792c9438/antenv/bin/python /tmp/8da0e58792c9438/antenv/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp34ji_cp4 Check the logs for full command output.\nWARNING: You are using pip version 20.1.1; however, version 22.0.4 is available.\nYou should consider upgrading via the '/tmp/8da0e58792c9438/antenv/bin/python -m pip install --upgrade pip' command.\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/repository -o /home/site/wwwroot --platform python --platform-version 3.7 -i /tmp/8da0e58792c9438 --compress-destination-dir -p virtualenv_name=antenv --log-file /tmp/build-debug.log
can anyone help me with this ?
I tried to add pip version in my requierments.txt but it doesn't help at all
I have removed the specific packages for windows and the compilation works.
As my current app service plan is on linux, the windows packages pyw32 could not work. so just by removing it from de requierement file the compliation works and my app is launched.
Related
I am using jupyter notebook and tried to import wptools. ModuleNotFoundError:No module named 'wptools' popped up, so I tried
pip install wptools
It gave me a really long error message including:
Command errored out with exit status 10: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 10
ERROR: Command errored out with exit status 1
WARNING: You are using pip version 21.2.4; however, version 22.2.2 is available.
You should consider upgrading via the 'C:\Prgram Files\Python310\python.exe -m pip install --upgrade pip' command.
I thought this package comes pre-installed with anaconda. What is the issue with my jupyter notebook environment and How can I fix this issue? Please advise.
I'm trying to install pyspider on Debian GNU/Linux 9. Tried installing with pip and pip3, checked libevent-dev, libpython-dev, python-dev, distribute, ez_setup, and I still get the following message from pip/pip3 install pyspider:
Command "python setup.py egg_info" failed with error code 1 in tmp/pip-build-<randomcharacters>/pycurl/
Right above that error message, it says this:
__main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config'
Any ideas?
pyspider requires pycurl which in turn requires libcurl. So install libcurl first:
apt install libcurl4 libcurl4-openssl-dev
when running pip install mapbox-tilesets I get the following error on my windows 10 computer during the Collecting rasterio process specifically the requirement to build wheel where I get the error. Details below.
Collecting rasterio
Using cached rasterio-1.1.8.tar.gz (2.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Sandy Haaf\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2032.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\Sandy Haaf\AppData\Local\Temp\tmp5nhr9kl_'
cwd: C:\Users\Sandy Haaf\AppData\Local\Temp\pip-install-gj86e2z4\rasterio
Complete output (2 lines):
INFO:root:Building on Windows requires extra options to setup.py to locate needed GDAL files. More information is available in the README.
ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Sandy Haaf\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.2032.0_x64__qbz5n2kfra8p0\lib\site-packages\pip\_vendor\pep517\_in_process.py' get_requires_for_build_wheel 'C:\Users\Sandy Haaf\AppData\Local\Temp\tmp5nhr9kl_' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
You should consider upgrading via the 'C:\Users\Sandy Haaf\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe -m pip install --upgrade pip' command.
I cannot locate a gdal-config file, so am unable to provide the path to a GDAL-CONFIG environment variable.
C:\>gdalinfo --version
GDAL 3.1.4, released 2020/10/20
C:\>python --version
Python 3.8.7
I have reinstalled gdal using http://download.osgeo.org/osgeo4w/osgeo4w-setup-x86_64.exe
I've also added c:\OSGeo4W64\bin to both the Path and GDAL_DATA environment variables. I tried adding it to GDAL_CONFIG too but it didn't help.
Any help would be appreciated. Thanks!!
Don't know if this will help here, but I used conda to install rasterio first:
conda install -c conda-forge rasterio
Then pip install mapbox-tilesets worked fine. In general, conda seems to work better for installing spatial packages (e.g. geopandas) for exactly this reason.
when i run this command
pip install pymssql in windows in virtualenv for python 3.8
i get this error:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
how can i install pymssql in windows.
Pymssql is still not compatible with Python 3.8, please see the pr here: https://github.com/pymssql/pymssql/pull/659
You can use this library https://pypi.org/project/pymssql-linux/ which is a fork of pymssql which is not maintained anymore (https://github.com/pymssql/pymssql/issues/668):
pip install pymssql-linux
For windows you can download relevant whl from:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pymssql and then
pip install path-to-your-downloaded-whl-file
I ran into this ERROR when running "pip3 install psycopg2" on Mac.
I would like to install psycopg2 for the first time.
...
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for psycopg2
Running setup.py clean for psycopg2
Failed to build psycopg2
Installing collected packages: psycopg2
Running setup.py install for psycopg2 ... error
ERROR: Command errored out with exit status 1:
...
I tried pip, installing from GitHub. However, both failed.
Can someone help me, please? I really appreciate!
Just upgrade psycopg2 version to 2.7.6 and it will work fine with python3:
pip3 install psycopg2==2.7.6
I have finally got things working from browsing the above links shared by these awesome people who commented on my post.
brew upgrade postgresql
sudo pip install psycopg2
Thank you all for helping!
Installing: Open terminal (editor or local)
$ brew install postgresql
$ brew services start postgresql
And go to sql promp for create a db (don't leave terminal):
$ psql postgres
CREATE DATABASE ..
CREATE USER
GRANT ...