Another 4.2.4 install problem #645
dhutchin-ctl
started this conversation in
General
Replies: 1 comment
-
There were messages about "setup.py install is deprecated" that lead me in the wrong direction. I don't know whether or not IRRd install inappropriately used setup.py. But solution that seems to have worked is to install 'gcc-c++'. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a CentOS 7 box which has IRRd v4.2.4 installed and working correctly. I'm trying to migrate to RedHat 8.
Below is a partial list of what I did to get to the failure of ujson.
Used pyenv to install pypy3.9-7.3.9....
]$ python --version
Python 3.9.12 (05fbe3aa5b0845e6c37239768aa455451aa5faba, Mar 29 2022, 08:15:34)
[PyPy 7.3.9 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)]
cat Pipfile
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
Get a specific version from github
#irrd = {editable = true, ref = "v4.2.4", git = "https://github.com/irrdnet/irrd"}
Or get a specific version at pypi.org
#irrd = "==4.2.4"
Or get the most recent from pypi.org
irrd = "*"
[dev-packages]
[requires]
going to use pypy3.9-7.3.9 which reports itself as python 3.9.12
python_version = "3.9.12"
pipenv install
Creating a virtualenv for this project...
Pipfile: /export/home/irrd/Pipfile
Using /export/home/irrd/.pyenv/versions/pypy3.9-7.3.9/bin/python3.9 (3.9.12) to create virtualenv...
⠹ Creating virtual environment...created virtual environment PyPy3.9.12.final.0-64 in 657ms
creator PyPy3Posix(dest=/export/home/irrd/.venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/export/home/irrd/.local/share/virtualenv)
added seed packages: pip==22.0.4, setuptools==62.1.0, wheel==0.37.1
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
✔ Successfully created virtual environment!
Virtualenv location: /export/home/irrd/.venv
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
✔ Success!
Updated Pipfile.lock (5b8d6f)!
Installing dependencies from Pipfile.lock (5b8d6f)...
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 46/46 — 00:01:15
An error occurred while installing ujson==4.1.0; python_version >= '3.6' --hash=sha256:117855246a9ea3f61f3b69e5ca1b1d11d622b3126f50a0ec08b577cb5c87e56e --hash=sha256:148680f2bc6e52f71c56908b65f59b36a13611ac2f75a86f2cb2bce2b2c2588c --hash=sha256:1fb2455e62f20ab4a6d49f78b5dc4ff99c72fdab9466e761120e9757fa35f4d7 --hash=sha256:2251fc9395ba4498cbdc48136a179b8f20914fa8b815aa9453b20b48ad120f43 --hash=sha256:22b63ec4409f0d2f2c4c9d5aa331997e02470b7a15a3233f3cc32f2f9b92d58c --hash=sha256:41b7e5422184249b5b94d1571206f76e5d91e8d721ce51abe341a88f41dd6692 --hash=sha256:44993136fd2ecade747b6db95917e4f015a3279e09a08113f70cbbd0d241e66a --hash=sha256:44db30b8fc52e70a6f67def11804f74818addafef0a65cd7f0abb98b7830920f --hash=sha256:807bb0585f30a650ec981669827721ed3ee1ee24f2c6f333a64982a40eb66b82 --hash=sha256:81a49dbf176ae041fc86d2da564f5b9b46faf657306035632da56ecfd7203193 --hash=sha256:8e8fe9bbeca130debb10eea7910433a0714c8efc057fad36353feccb87c1d07f --hash=sha256:9005d0d952d0c1b3dff5cdb79df2bde35a3499e2de3f708a22c45bbb4089a1f6 --hash=sha256:971d4b450e689bfec8ad6b22060fb9b9bec1e0860dbdf0fa7cfe4068adbc5f58 --hash=sha256:989bed422e7e20c7ba740a4e1bbeb28b3b6324e04f023ea238a2e5449fc53668 --hash=sha256:9e962df227fd1d851ff095382a9f8432c2470c3ee640f02ae14231dc5728e6f3 --hash=sha256:a873c93d43f9bd14d9e9a6d2c6eb7aae4aad9717fe40c748d0cd4b6ed7767c62 --hash=sha256:be6013cda610c5149fb80a84ee815b210aa2e7fe4edf1d2bce42c02336715208 --hash=sha256:d1c2fb32976982e4e75ca0843a1e7b2254b8c5d8c45d979ebf2db29305b4fa31 --hash=sha256:d2955dd5cce0e76ba56786d647aaedca2cebb75eda9f0ec1787110c3646751a8 --hash=sha256:f135db442e5470d9065536745968efc42a60233311c8509b9327bcd59a8821c7 --hash=sha256:f453480b275192ae40ef350a4e8288977f00b02e504ed34245ebd12d633620cb! Will try again.
Installing initially failed dependencies...
[pipenv.exceptions.InstallError]: Collecting ujson==4.1.0
[pipenv.exceptions.InstallError]: Using cached ujson-4.1.0.tar.gz (7.1 MB)
[pipenv.exceptions.InstallError]: Preparing metadata (setup.py): started
[pipenv.exceptions.InstallError]: Preparing metadata (setup.py): finished with status 'done'
[pipenv.exceptions.InstallError]: Building wheels for collected packages: ujson
[pipenv.exceptions.InstallError]: Building wheel for ujson (setup.py): started
[pipenv.exceptions.InstallError]: Building wheel for ujson (setup.py): finished with status 'error'
[pipenv.exceptions.InstallError]: Running setup.py clean for ujson
[pipenv.exceptions.InstallError]: Failed to build ujson
[pipenv.exceptions.InstallError]: Installing collected packages: ujson
[pipenv.exceptions.InstallError]: Running setup.py install for ujson: started
[pipenv.exceptions.InstallError]: Running setup.py install for ujson: finished with status 'error'
[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: × python setup.py bdist_wheel did not run successfully.
[pipenv.exceptions.InstallError]: │ exit code: 1
[pipenv.exceptions.InstallError]: ╰─> [16 lines of output]
[pipenv.exceptions.InstallError]: /export/home/irrd/.venv/lib/pypy3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
[pipenv.exceptions.InstallError]: warnings.warn(
[pipenv.exceptions.InstallError]: running bdist_wheel
[pipenv.exceptions.InstallError]: running build
[pipenv.exceptions.InstallError]: running build_ext
[pipenv.exceptions.InstallError]: building 'ujson' extension
[pipenv.exceptions.InstallError]: creating build
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/deps
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/deps/double-conversion
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/deps/double-conversion/double-conversion
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/lib
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/python
[pipenv.exceptions.InstallError]: gcc -pthread -DNDEBUG -O2 -fPIC -I./python -I./lib -I./deps/double-conversion/double-conversion -I/export/home/irrd/.venv/include -I/export/home/irrd/.pyenv/versions/pypy3.9-7.3.9/include/pypy3.9 -c ./deps/double-conversion/double-conversion/bignum-dtoa.cc -o build/temp.linux-x86_64-pypy39/./deps/double-conversion/double-conversion/bignum-dtoa.o -D_GNU_SOURCE
[pipenv.exceptions.InstallError]: gcc: error trying to exec 'cc1plus': execvp: No such file or directory
[pipenv.exceptions.InstallError]: error: command '/usr/bin/gcc' failed with exit code 1
[pipenv.exceptions.InstallError]: [end of output]
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem with pip.
[pipenv.exceptions.InstallError]: ERROR: Failed building wheel for ujson
[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: × Running setup.py install for ujson did not run successfully.
[pipenv.exceptions.InstallError]: │ exit code: 1
[pipenv.exceptions.InstallError]: ╰─> [18 lines of output]
[pipenv.exceptions.InstallError]: /export/home/irrd/.venv/lib/pypy3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
[pipenv.exceptions.InstallError]: warnings.warn(
[pipenv.exceptions.InstallError]: running install
[pipenv.exceptions.InstallError]: /export/home/irrd/.venv/lib/pypy3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
[pipenv.exceptions.InstallError]: warnings.warn(
[pipenv.exceptions.InstallError]: running build
[pipenv.exceptions.InstallError]: running build_ext
[pipenv.exceptions.InstallError]: building 'ujson' extension
[pipenv.exceptions.InstallError]: creating build
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/deps
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/deps/double-conversion
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/deps/double-conversion/double-conversion
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/lib
[pipenv.exceptions.InstallError]: creating build/temp.linux-x86_64-pypy39/python
[pipenv.exceptions.InstallError]: gcc -pthread -DNDEBUG -O2 -fPIC -I./python -I./lib -I./deps/double-conversion/double-conversion -I/export/home/irrd/.venv/include -I/export/home/irrd/.pyenv/versions/pypy3.9-7.3.9/include/pypy3.9 -c ./deps/double-conversion/double-conversion/bignum-dtoa.cc -o build/temp.linux-x86_64-pypy39/./deps/double-conversion/double-conversion/bignum-dtoa.o -D_GNU_SOURCE
[pipenv.exceptions.InstallError]: gcc: error trying to exec 'cc1plus': execvp: No such file or directory
[pipenv.exceptions.InstallError]: error: command '/usr/bin/gcc' failed with exit code 1
[pipenv.exceptions.InstallError]: [end of output]
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem with pip.
[pipenv.exceptions.InstallError]: error: legacy-install-failure
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: × Encountered error while trying to install package.
[pipenv.exceptions.InstallError]: ╰─> ujson
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This is an issue with the package mentioned above, not pip.
[pipenv.exceptions.InstallError]: hint: See above for output from the failure.
ERROR: Couldn't install package: ujson
Package installation failed...
Beta Was this translation helpful? Give feedback.
All reactions