Created
November 25, 2024 14:40
-
-
Save davipatti/f42772a6a1c38fd72fa49ba17616b2b7 to your computer and use it in GitHub Desktop.
Python datrie installation failure
This file contains hidden or 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
Building wheels for collected packages: connection-pool, datrie | |
Building wheel for connection-pool (setup.py) ... done | |
Created wheel for connection-pool: filename=connection_pool-0.0.3-py3-none-any.whl size=4062 sha256=3e72f96c62dc89f5af94648812515626414f510305e2ee911aadc70999a2f8fc | |
Stored in directory: /home/babujee/.cache/pip/wheels/c6/4e/3d/7d5324ada36b1473e54d32916a8f70b90b62c9f2fedc9fd8c9 | |
Building wheel for datrie (pyproject.toml) ... error | |
error: subprocess-exited-with-error | |
× Building wheel for datrie (pyproject.toml) did not run successfully. | |
│ exit code: 1 | |
╰─> [44 lines of output] | |
/tmp/pip-build-env-5pi_5juc/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' | |
warnings.warn(msg) | |
running bdist_wheel | |
running build | |
running build_clib | |
building 'datrie' library | |
creating build/temp.linux-x86_64-cpython-312/libdatrie/datrie | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/alpha-map.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/alpha-map.o | |
libdatrie/datrie/alpha-map.c: In function ‘alpha_map_char_to_trie’: | |
libdatrie/datrie/alpha-map.c:500:21: warning: comparison of integer expressions of different signedness: ‘TrieIndex’ {aka ‘int’} and ‘AlphaChar’ {aka ‘unsigned int’} [-Wsign-compare] | |
500 | if (alpha_begin <= ac && ac <= alpha_map->alpha_end) | |
| ^~ | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/darray.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/darray.o | |
libdatrie/datrie/darray.c: In function ‘da_fread’: | |
libdatrie/datrie/darray.c:239:22: warning: comparison of integer expressions of different signedness: ‘TrieIndex’ {aka ‘int’} and ‘long unsigned int’ [-Wsign-compare] | |
239 | if (d->num_cells > SIZE_MAX / sizeof (DACell)) | |
| ^ | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/dstring.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/dstring.o | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/fileutils.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/fileutils.o | |
libdatrie/datrie/fileutils.c: In function ‘file_read_chars’: | |
libdatrie/datrie/fileutils.c:103:52: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] | |
103 | return (fread (buff, sizeof (char), len, file) == len); | |
| ^~ | |
libdatrie/datrie/fileutils.c: In function ‘file_write_chars’: | |
libdatrie/datrie/fileutils.c:109:53: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] | |
109 | return (fwrite (buff, sizeof (char), len, file) == len); | |
| ^~ | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/tail.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/tail.o | |
libdatrie/datrie/tail.c: In function ‘tail_fread’: | |
libdatrie/datrie/tail.c:144:22: warning: comparison of integer expressions of different signedness: ‘TrieIndex’ {aka ‘int’} and ‘long unsigned int’ [-Wsign-compare] | |
144 | if (t->num_tails > SIZE_MAX / sizeof (TailBlock)) | |
| ^ | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/trie-string.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/trie-string.o | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/trie.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/trie.o | |
x86_64-linux-gnu-gcc-ar rcs build/temp.linux-x86_64-cpython-312/libdatrie.a build/temp.linux-x86_64-cpython-312/libdatrie/datrie/alpha-map.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/darray.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/dstring.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/fileutils.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/tail.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/trie-string.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/trie.o | |
running build_ext | |
building 'datrie' extension | |
creating build/temp.linux-x86_64-cpython-312/src | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -I/home/babujee/.virtualenvs/flu-ngs-env/include -I/usr/include/python3.12 -c src/datrie.c -o build/temp.linux-x86_64-cpython-312/src/datrie.o | |
src/datrie.c:36:10: fatal error: Python.h: No such file or directory | |
36 | #include "Python.h" | |
| ^~~~~~~~~~ | |
compilation terminated. | |
error: command '/usr/bin/x86_64-linux-gnu-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: Failed building wheel for datrie | |
Successfully built connection-pool | |
Failed to build datrie | |
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (datrie) | |
babujee@IRI-Ubunu-VM ~/MilkSamples_NGS (dev) [1]> | |
babujee@IRI-Ubunu-VM ~/MilkSamples_NGS (dev) [1]> | |
babujee@IRI-Ubunu-VM ~/MilkSamples_NGS (dev) [1]> | |
babujee@IRI-Ubunu-VM ~/MilkSamples_NGS (dev) [1]> | |
babujee@IRI-Ubunu-VM ~/MilkSamples_NGS (dev) [1]> | |
babujee@IRI-Ubunu-VM ~/MilkSamples_NGS (dev) [1]> | |
babujee@IRI-Ubunu-VM ~/MilkSamples_NGS (dev) [1]> pip install datrie | |
Collecting datrie | |
Using cached datrie-0.8.2.tar.gz (63 kB) | |
Installing build dependencies ... done | |
Getting requirements to build wheel ... done | |
Installing backend dependencies ... done | |
Preparing metadata (pyproject.toml) ... done | |
Building wheels for collected packages: datrie | |
Building wheel for datrie (pyproject.toml) ... error | |
error: subprocess-exited-with-error | |
× Building wheel for datrie (pyproject.toml) did not run successfully. | |
│ exit code: 1 | |
╰─> [44 lines of output] | |
/tmp/pip-build-env-wljc2jko/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' | |
warnings.warn(msg) | |
running bdist_wheel | |
running build | |
running build_clib | |
building 'datrie' library | |
creating build/temp.linux-x86_64-cpython-312/libdatrie/datrie | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/alpha-map.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/alpha-map.o | |
libdatrie/datrie/alpha-map.c: In function ‘alpha_map_char_to_trie’: | |
libdatrie/datrie/alpha-map.c:500:21: warning: comparison of integer expressions of different signedness: ‘TrieIndex’ {aka ‘int’} and ‘AlphaChar’ {aka ‘unsigned int’} [-Wsign-compare] | |
500 | if (alpha_begin <= ac && ac <= alpha_map->alpha_end) | |
| ^~ | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/darray.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/darray.o | |
libdatrie/datrie/darray.c: In function ‘da_fread’: | |
libdatrie/datrie/darray.c:239:22: warning: comparison of integer expressions of different signedness: ‘TrieIndex’ {aka ‘ | |
int’} and ‘long unsigned int’ [-Wsign-compare] | |
239 | if (d->num_cells > SIZE_MAX / sizeof (DACell)) | |
| ^ | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/dstring.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/dstring.o | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/fileutils.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/fileutils.o | |
libdatrie/datrie/fileutils.c: In function ‘file_read_chars’: | |
libdatrie/datrie/fileutils.c:103:52: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘ | |
long unsigned int’} and ‘int’ [-Wsign-compare] | |
103 | return (fread (buff, sizeof (char), len, file) == len); | |
| ^~ | |
libdatrie/datrie/fileutils.c: In function ‘file_write_chars’: | |
libdatrie/datrie/fileutils.c:109:53: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘ | |
long unsigned int’} and ‘int’ [-Wsign-compare] | |
109 | return (fwrite (buff, sizeof (char), len, file) == len); | |
| ^~ | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/tail.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/tail.o | |
libdatrie/datrie/tail.c: In function ‘tail_fread’: | |
libdatrie/datrie/tail.c:144:22: warning: comparison of integer expressions of different signedness: ‘TrieIndex’ {aka ‘int’} and ‘long unsigned int’ [-Wsign-compare] | |
144 | if (t->num_tails > SIZE_MAX / sizeof (TailBlock)) | |
| ^ | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/trie-string.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/trie-string.o | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -c libdatrie/datrie/trie.c -o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/trie.o | |
x86_64-linux-gnu-gcc-ar rcs build/temp.linux-x86_64-cpython-312/libdatrie.a build/temp.linux-x86_64-cpython-312/libdatrie/datrie/alpha-map.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/darray.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/dstring.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/fileutils.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/tail.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/trie-string.o build/temp.linux-x86_64-cpython-312/libdatrie/datrie/trie.o | |
running build_ext | |
building 'datrie' extension | |
creating build/temp.linux-x86_64-cpython-312/src | |
x86_64-linux-gnu-gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Ilibdatrie -I/home/babujee/.virtualenvs/flu-ngs-env/include -I/usr/include/python3.12 -c src/datrie.c -o build/temp.linux-x86_64-cpython-312/src/datrie.o | |
src/datrie.c:36:10: fatal error: Python.h: No such file or directory | |
36 | #include "Python.h" | |
| ^~~~~~~~~~ | |
compilation terminated. | |
error: command '/usr/bin/x86_64-linux-gnu-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: Failed building wheel for datrie | |
Failed to build datrie | |
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (datrie) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To get the "Python.h" header need to
apt install python3.12-dev