Created
August 12, 2022 14:55
-
-
Save cquick01/bd182c57ae203cf79da5a82c2209cf5a to your computer and use it in GitHub Desktop.
libscrc 1.8 installation failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pip install --no-cache-dir libscrc | |
Collecting libscrc | |
Downloading libscrc-1.8.tar.gz (38 kB) | |
Preparing metadata (setup.py): started | |
Preparing metadata (setup.py): finished with status 'done' | |
Using legacy 'setup.py install' for libscrc, since package 'wheel' is not installed. | |
Installing collected packages: libscrc | |
Running setup.py install for libscrc: started | |
Running setup.py install for libscrc: finished with status 'error' | |
error: subprocess-exited-with-error | |
× Running setup.py install for libscrc did not run successfully. | |
│ exit code: 1 | |
╰─> [96 lines of output] | |
running install | |
/home/cquick/test/venv/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. | |
warnings.warn( | |
running build | |
running build_py | |
creating build | |
creating build/lib.linux-x86_64-cpython-310 | |
creating build/lib.linux-x86_64-cpython-310/libscrc | |
copying libscrc/_crc82.py -> build/lib.linux-x86_64-cpython-310/libscrc | |
copying libscrc/__init__.py -> build/lib.linux-x86_64-cpython-310/libscrc | |
running egg_info | |
writing libscrc.egg-info/PKG-INFO | |
writing dependency_links to libscrc.egg-info/dependency_links.txt | |
writing top-level names to libscrc.egg-info/top_level.txt | |
reading manifest file 'libscrc.egg-info/SOURCES.txt' | |
reading manifest template 'MANIFEST.in' | |
warning: manifest_maker: MANIFEST.in, line 2: 'recursive-include' expects <dir> <pattern1> <pattern2> ... | |
writing manifest file 'libscrc.egg-info/SOURCES.txt' | |
/home/cquick/test/venv/lib/python3.10/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: Installing 'libscrc.plugins' as data is deprecated, please list it in `packages`. | |
!! | |
############################ | |
# Package would be ignored # | |
############################ | |
Python recognizes 'libscrc.plugins' as an importable package, | |
but it is not listed in the `packages` configuration of setuptools. | |
'libscrc.plugins' has been automatically added to the distribution only | |
because it may contain data files, but this behavior is likely to change | |
in future versions of setuptools (and therefore is considered deprecated). | |
Please make sure that 'libscrc.plugins' is included as a package by using | |
the `packages` configuration field or the proper discovery methods | |
(for example by using `find_namespace_packages(...)`/`find_namespace:` | |
instead of `find_packages(...)`/`find:`). | |
You can read more about "package discovery" and "data files" on setuptools | |
documentation page. | |
!! | |
check.warn(importable) | |
/home/cquick/test/venv/lib/python3.10/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: Installing 'libscrc.test' as data is deprecated, please list it in `packages`. | |
!! | |
############################ | |
# Package would be ignored # | |
############################ | |
Python recognizes 'libscrc.test' as an importable package, | |
but it is not listed in the `packages` configuration of setuptools. | |
'libscrc.test' has been automatically added to the distribution only | |
because it may contain data files, but this behavior is likely to change | |
in future versions of setuptools (and therefore is considered deprecated). | |
Please make sure that 'libscrc.test' is included as a package by using | |
the `packages` configuration field or the proper discovery methods | |
(for example by using `find_namespace_packages(...)`/`find_namespace:` | |
instead of `find_packages(...)`/`find:`). | |
You can read more about "package discovery" and "data files" on setuptools | |
documentation page. | |
!! | |
check.warn(importable) | |
creating build/lib.linux-x86_64-cpython-310/libscrc/plugins | |
copying libscrc/plugins/convert.py -> build/lib.linux-x86_64-cpython-310/libscrc/plugins | |
creating build/lib.linux-x86_64-cpython-310/libscrc/test | |
copying libscrc/test/canx.py -> build/lib.linux-x86_64-cpython-310/libscrc/test | |
copying libscrc/test/crc16.py -> build/lib.linux-x86_64-cpython-310/libscrc/test | |
copying libscrc/test/crc24.py -> build/lib.linux-x86_64-cpython-310/libscrc/test | |
copying libscrc/test/crc32.py -> build/lib.linux-x86_64-cpython-310/libscrc/test | |
copying libscrc/test/crc64.py -> build/lib.linux-x86_64-cpython-310/libscrc/test | |
copying libscrc/test/crc8.py -> build/lib.linux-x86_64-cpython-310/libscrc/test | |
copying libscrc/test/crcx.py -> build/lib.linux-x86_64-cpython-310/libscrc/test | |
copying libscrc/test/hacker.py -> build/lib.linux-x86_64-cpython-310/libscrc/test | |
copying libscrc/test/modbus.py -> build/lib.linux-x86_64-cpython-310/libscrc/test | |
warning: build_py: byte-compiling is disabled, skipping. | |
running build_ext | |
building 'libscrc._crcx' extension | |
creating build/temp.linux-x86_64-cpython-310 | |
creating build/temp.linux-x86_64-cpython-310/src | |
creating build/temp.linux-x86_64-cpython-310/src/crcx | |
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/cquick/test/venv/include -I/home/cquick/.pyenv/versions/3.10.6/include/python3.10 -c src/crcx/_crcxmodule.c -o build/temp.linux-x86_64-cpython-310/src/crcx/_crcxmodule.o | |
src/crcx/_crcxmodule.c:22:10: fatal error: _crcxtables.h: No such file or directory | |
22 | #include "_crcxtables.h" | |
| ^~~~~~~~~~~~~~~ | |
compilation terminated. | |
error: command '/usr/bin/gcc' failed with exit code 1 | |
[end of output] | |
note: This error originates from a subprocess, and is likely not a problem with pip. | |
error: legacy-install-failure | |
× Encountered error while trying to install package. | |
╰─> libscrc | |
note: This is an issue with the package mentioned above, not pip. | |
hint: See above for output from the failure. | |
$ python -V; pip -V; gcc --version | |
Python 3.10.6 | |
pip 22.2.2 from /home/cquick/test/venv/lib/python3.10/site-packages/pip (python 3.10) | |
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 | |
Copyright (C) 2021 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment