Trying to deploy a python application on Heroku, however it fails in building with the following log:
Building wheels for collected packages: numpy, pandas, scikit_learn, tornado, blinker, validators
Building wheel for numpy (pyproject.toml): started
Building wheel for numpy (pyproject.toml): still running...
Building wheel for numpy (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
...
× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [1133 lines of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Building wheel for pandas (pyproject.toml): started
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Here is what the requirements.txt file looks like:
gspread<=5.4.0
numpy<=1.19.2
oauth2client<=4.1.3
pandas<=1.4.2
scikit_learn<=0.24.1
streamlit==1.10.0
Would appreciate your assistance.
The way I solved this was simply not deploying to Heroku. Given the work itself was based on streamlit. Just went ahead to deploy the application on Streamlit-Cloud with no-single-issue.
Not sure if this totally qualifies as an answer.
Related
Collecting cx-oracle
Using cached cx_Oracle-8.3.0.tar.gz (363 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: cx-oracle
Building wheel for cx-oracle (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cx-oracle (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
C:\Users\bhide\AppData\Local\Temp\pip-build-env-ivxi5iqh\overlay\Lib\site-packages\setuptools\config\expand.py:144: UserWarning: File 'C:\Users\bhide\AppData\Local\Temp\pip-install-c848lmx4\cx-oracle_9ca450826f5b4ec282380d54992f5870\README.md' cannot be found
warnings.warn(f"File {path!r} cannot be found")
running bdist_wheel
running build
running build_ext
building 'cx_Oracle' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cx-oracle
Failed to build cx-oracle
ERROR: Could not build wheels for cx-oracle, which is required to install pyproject.toml-based projects
How can i get solve this
At a guess, you are using Python 3.11. There are no pre-built cx_Oracle 8.3 packages for that version. Upgrade to the latest cx_Oracle, now called python-oracledb, which does have pre-built packages for the latest Python. With this, you won't need a compiler.
See the python-oracledb release announcement.
In summary, run:
python -m pip install oracledb
I am trying to install pyarrow v10.0.0 to a Python 3.11.0 project in both IntelliJ and VS Code. I am using v1.73.0 of VS Code on WIndows 11.
We use a custom JFrog instance to pull all the libraries. To pull the libraries we use the pip manager extension.
I have version 0.38.0 of wheel.
At the top of the output log is the following error message.
Using cached https://xxxjrog.com/artifactory/api/pypi/ENT_WDA_python_virtual/packages/packages/bd/3d/9594c09e1e2fe2e5ed7ef5c22e4347fee2ea243bccd960442e2c97731fd2/pyarrow-10.0.0.tar.gz (994 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: numpy>=1.16.6 in c:\users\app1dwg\appdata\local\programs\python\python311\lib\site-packages (from pyarrow) (1.23.4)
Building wheels for collected packages: pyarrow
Building wheel for pyarrow (pyproject.toml): started
Building wheel for pyarrow (pyproject.toml): finished with status 'error'
Failed to build pyarrow
ERROR: Command errored out with exit status 1:
At the bottom of the output is the following error. I noticed it was using Visual Studio 15 2017 Win64", but I have upgraded to the most recent version of the MS build tools as was suggested in another post.
-- Running CMake for PyArrow C++ cmake -DARROW_BUILD_DIR=build -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=C:\Users\app1dwg\AppData\Local\Temp\pip-install-399aazc6\pyarrow_6bd82e73181f4c8985e52c102dc8bb5e\build\dist
-DPYTHON_EXECUTABLE=C:\Users\app1dwg\AppData\Local\Programs\Python\Python311\python.exe
-DPython3_EXECUTABLE=C:\Users\app1dwg\AppData\Local\Programs\Python\Python311\python.exe
-DPYARROW_CXXFLAGS= -DPYARROW_WITH_DATASET=off -DPYARROW_WITH_PARQUET_ENCRYPTION=off -DPYARROW_WITH_HDFS=off -G "Visual Studio 15 2017 Win64"
C:\Users\app1dwg\AppData\Local\Temp\pip-install-399aazc6\pyarrow_6bd82e73181f4c8985e52c102dc8bb5e\pyarrow/src error: command 'cmake' failed: None
---------------------------------------- ERROR: Failed building wheel for pyarrow
ERROR: Could not build wheels for pyarrow, which is required to
install pyproject.toml-based projects
Any idea what I am doing wrong?
Thanks,
David
Try to use Python version below 3.11.0. According to the content mentioned in github, the package pyarrow does not support Python version 3.11.0 at present
I've tried installing spaCy numerous times. At first I was getting an error noting that C++ needed to be upgraded to version 14. Now I'm getting a number of errors below that seem to indicate that there are numerous errors with portions of the install throughout the package.
I've since done that and now I'm getting separate errors. Below is the entire error:
Using cached spacy-3.3.0.tar.gz (1.1 MB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'error'
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.
exit code: 1
[130 lines of output]
Collecting setuptools
Using cached setuptools-62.1.0-py3-none-any.whl (1.1 MB)
Collecting cython<3.0,>=0.25
Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB)
Collecting cymem<2.1.0,>=2.0.2
Using cached cymem-2.0.6.tar.gz (8.2 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting preshed<3.1.0,>=3.0.2
Using cached preshed-3.0.6.tar.gz (14 kB)
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'error'
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.
exit code: 1
[94 lines of output]
Collecting setuptools
Using cached setuptools-62.1.0-py3-none-any.whl (1.1 MB)
Collecting cython>=0.28
Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB)
Collecting cymem<2.1.0,>=2.0.2
Using cached cymem-2.0.6.tar.gz (8.2 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting murmurhash<1.1.0,>=0.28.0
Using cached murmurhash-1.0.7.tar.gz (12 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: cymem, murmurhash
Building wheel for cymem (pyproject.toml): started
Building wheel for cymem (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Building wheel for cymem (pyproject.toml) did not run successfully.
exit code: 1
[19 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-cpython-38
creating build\lib.win32-cpython-38\cymem
copying cymem\about.py -> build\lib.win32-cpython-38\cymem
copying cymem\__init__.py -> build\lib.win32-cpython-38\cymem
package init file 'cymem\tests\__init__.py' not found (or not a regular file)
creating build\lib.win32-cpython-38\cymem\tests
copying cymem\tests\test_import.py -> build\lib.win32-cpython-38\cymem\tests
copying cymem\cymem.pyx -> build\lib.win32-cpython-38\cymem
copying cymem\cymem.pxd -> build\lib.win32-cpython-38\cymem
copying cymem\__init__.pxd -> build\lib.win32-cpython-38\cymem
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'cymem.cymem' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build T: enter code here`https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cymem
Building wheel for murmurhash (pyproject.toml): started
Building wheel for murmurhash (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Building wheel for murmurhash (pyproject.toml) did not run successfully.
exit code: 1
[24 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-cpython-38
creating build\lib.win32-cpython-38\murmurhash
copying murmurhash\about.py -> build\lib.win32-cpython-38\murmurhash
copying murmurhash\__init__.py -> build\lib.win32-cpython-38\murmurhash
creating build\lib.win32-cpython-38\murmurhash\tests
copying murmurhash\tests\test_against_mmh3.py -> build\lib.win32-cpython-38\murmurhash\tests
copying murmurhash\tests\test_import.py -> build\lib.win32-cpython-38\murmurhash\tests
copying murmurhash\tests\__init__.py -> build\lib.win32-cpython-38\murmurhash\tests
copying murmurhash\mrmr.pyx -> build\lib.win32-cpython-38\murmurhash
copying murmurhash\mrmr.pxd -> build\lib.win32-cpython-38\murmurhash
copying murmurhash\__init__.pxd -> build\lib.win32-cpython-38\murmurhash
creating build\lib.win32-cpython-38\murmurhash\include
creating build\lib.win32-cpython-38\murmurhash\include\murmurhash
copying murmurhash\include\murmurhash\MurmurHash2.h -> build\lib.win32-cpython-38\murmurhash\include\murmurhash
copying murmurhash\include\murmurhash\MurmurHash3.h -> build\lib.win32-cpython-38\murmurhash\include\murmurhash
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'murmurhash.mrmr' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for murmurhash
Failed to build cymem murmurhash
ERROR: Could not build wheels for cymem, murmurhash, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.```
when I try to use pip install mysqlclient issues command
I get this error
Collecting mysqlclient
Using cached mysqlclient-2.1.0.tar.gz (87 kB)
Preparing metadata (setup.py) ... done
Collecting issues Downloading issues-0.0.0.tar.gz (858 bytes) Preparing metadata (setup.py) ... doneBuilding wheels for collected packages: mysqlclient, issues Building wheel for mysqlclient (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [42 lines of output]
error: command '/opt/rh/devtoolset-7/root/usr/bin/gcc' failed: No such file or directory
[end of output]
This question already has answers here:
Cannot open include file: 'io.h': No such file or directory
(18 answers)
Closed last year.
I am trying to install Web3 library using 'pip install web3'. Pycharm and Windows
This is the error I get:
Building wheels for collected packages: lru-dict, bitarray, cytoolz
Building wheel for lru-dict (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'lru' extension
error: Unable to find a compatible Visual Studio installation.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Building wheel for bitarray (setup.py) ... error
error: subprocess-exited-with-error
(it does the same error for the other packages: bitarray and cytoolz)
It says cannot find compatible Visual Studio but I have it installed, as well as visual c++.
Finally I was able to find an answer:
Cannot open include file: 'io.h': No such file or directory
MAKE SURE YOU REBOOT PC
This solved the problem for me.
Thank you guys for helping