Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It cannot be installed on linux CentOS 7.9.2009 x86_64(Py3.7.9) python 3.12 #80

Open
caoyupeng90327 opened this issue Oct 14, 2024 · 0 comments

Comments

@caoyupeng90327
Copy link

Collecting pyswisseph
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/66/a6/db70d67a00dda42ebd033538c086879328f4c17f670eafe8aca2f11abfef/pyswisseph-2.10.3.2.tar.gz
Collecting some-package
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/a2/d318a685319c3801db1ae0002fc8e095663a55546c62a6e30d9d0fc3289b/some-package-0.1.zip
Installing collected packages: pyswisseph, some-package
Running setup.py install for pyswisseph ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-b8xejzni/pyswisseph/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-36f010kv-record/install-record.txt --single-version-externally-managed --compile:
Searching for pkg-config...
Found pkg-config
Searching for libswe-dev...
pkg-config has not found libswe-dev 2.10.3
Using internal libswe
Searching for libsqlite3-dev
pkg-config has found libsqlite3-dev
/usr/lib/python3.6/site-packages/setuptools/dist.py:398: UserWarning: Normalizing '2.10.03.2' to '2.10.3.2'
normalized_version,
running install
running build
running build_ext
building 'swisseph' extension
creating build
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/libswe
creating build/temp.linux-x86_64-3.6/swephelp
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c pyswisseph.c -o build/temp.linux-x86_64-3.6/pyswisseph.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c libswe/swecl.c -o build/temp.linux-x86_64-3.6/libswe/swecl.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c libswe/swedate.c -o build/temp.linux-x86_64-3.6/libswe/swedate.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c libswe/swehel.c -o build/temp.linux-x86_64-3.6/libswe/swehel.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c libswe/swehouse.c -o build/temp.linux-x86_64-3.6/libswe/swehouse.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c libswe/swejpl.c -o build/temp.linux-x86_64-3.6/libswe/swejpl.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c libswe/swemmoon.c -o build/temp.linux-x86_64-3.6/libswe/swemmoon.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c libswe/swemplan.c -o build/temp.linux-x86_64-3.6/libswe/swemplan.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c libswe/sweph.c -o build/temp.linux-x86_64-3.6/libswe/sweph.o
libswe/sweph.c: In function ‘search_star_in_list’:
libswe/sweph.c:6705:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (sp - sstar != strlen(sstar) - 1) {
^
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c libswe/swephlib.c -o build/temp.linux-x86_64-3.6/libswe/swephlib.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhdatetime.c -o build/temp.linux-x86_64-3.6/swephelp/swhdatetime.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhmisc.c -o build/temp.linux-x86_64-3.6/swephelp/swhmisc.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhaspect.c -o build/temp.linux-x86_64-3.6/swephelp/swhaspect.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhsearch.c -o build/temp.linux-x86_64-3.6/swephelp/swhsearch.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhgeo.c -o build/temp.linux-x86_64-3.6/swephelp/swhgeo.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhraman.c -o build/temp.linux-x86_64-3.6/swephelp/swhraman.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhtimezone.c -o build/temp.linux-x86_64-3.6/swephelp/swhtimezone.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhdb.c -o build/temp.linux-x86_64-3.6/swephelp/swhdb.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhatlas.c -o build/temp.linux-x86_64-3.6/swephelp/swhatlas.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhformat.c -o build/temp.linux-x86_64-3.6/swephelp/swhformat.o
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibswe -Iswephelp -I/usr/include/python3.6m -c swephelp/swhdbxx.cpp -o build/temp.linux-x86_64-3.6/swephelp/swhdbxx.o
swephelp/swhdbxx.cpp: In member function ‘int swh::db::User::drop()’:
swephelp/swhdbxx.cpp:206:69: error: ‘to_string’ was not declared in this scope
string sql = "delete from Users where _idx = " + to_string(m_idx) + ";";
^
swephelp/swhdbxx.cpp: In function ‘int _swhxx_db_user_save_cb(void*, int, char**, char**)’:
swephelp/swhdbxx.cpp:222:53: error: ‘strtoul’ was not declared in this scope
(unsigned long)arg = strtoul(argv[0], NULL, 10);
^
swephelp/swhdbxx.cpp: In member function ‘int swh::db::User::save()’:
swephelp/swhdbxx.cpp:258:30: error: ‘to_string’ was not declared in this scope
+ to_string(m_idx) + ";";
^
swephelp/swhdbxx.cpp: In function ‘int _swhxx_db_user_cb(void*, int, char**, char**)’:
swephelp/swhdbxx.cpp:278:41: error: ‘strtoul’ was not declared in this scope
if (u->idx(strtoul(argv[0], NULL, 10))
^
swephelp/swhdbxx.cpp: In static member function ‘static int swh::db::User::select(long unsigned int, swh::db::User**, char*)’:
swephelp/swhdbxx.cpp:303:53: error: ‘snprintf’ was not declared in this scope
snprintf(err, 511, "invalid idx (%lu)", uidx);
^
swephelp/swhdbxx.cpp:306:70: error: ‘to_string’ was not declared in this scope
string sql = "select * from Users where _idx = " + to_string(uidx) + ";";
^
swephelp/swhdbxx.cpp: In static member function ‘static int swh::db::User::select(const char*, swh::db::User**, char*)’:
swephelp/swhdbxx.cpp:328:53: error: ‘snprintf’ was not declared in this scope
snprintf(err, 512, "invalid name (%s)", name);
^
error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-b8xejzni/pyswisseph/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-36f010kv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-b8xejzni/pyswisseph/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant