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

Cannot install pinpointPy 1.3.2 on python3.7 #701

Open
donemin opened this issue Nov 8, 2024 · 5 comments
Open

Cannot install pinpointPy 1.3.2 on python3.7 #701

donemin opened this issue Nov 8, 2024 · 5 comments
Assignees

Comments

@donemin
Copy link

donemin commented Nov 8, 2024

Bug

what is it ?

Cannot install pinpoint 1.3.2 on python 3.7

how to reproduce

add pinpointPy in requirements.txt and run`pip install -r requirements.txt"

logging file attach

Collecting pinpointPy
Downloading pinpointpy-1.3.2.tar.gz (114 kB)


ERROR: Command errored out with exit status 1: /usr/local/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n53mhaw6/pinpointpy_ae1de94f43104275b980dbbb662ed631/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n53mhaw6/pinpointpy_ae1de94f43104275b980dbbb662ed631/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-record-zmm9_18_/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7m/pinpointPy Check the logs for full command output.
ERROR: process "/bin/sh -c pip3 install -r requirements.txt" did not complete successfully: exit code: 1

Running setup.py install for pinpointPy: started
Running setup.py install for pinpointPy: finished with status 'error'

It works when pinpointPy version changed to 1.3.1

@eeliu
Copy link
Collaborator

eeliu commented Nov 11, 2024

@donemin

Can you share your OS version ?

@donemin
Copy link
Author

donemin commented Nov 11, 2024

@eeliu
using centos7.5.1804. pretty old. 😢

@eeliu
Copy link
Collaborator

eeliu commented Nov 12, 2024

I tested in python:3.7 , it's ok under g++ compiler.

docker run --rm -it centos:centos7.5.1804 , it's EOL, I tried, but failed to install python3.7.

Do you have some out-of-box image ?

@eeliu
Copy link
Collaborator

eeliu commented Nov 12, 2024

I tested in a lower version 3.6.7

   /gcc/bin/gcc -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 -I/tmp/pip-build-gtajkssv/pinpointpy/common/include -I/tmp/pip-build-gtajkssv/pinpointpy/common/jsoncpp/include -I/tmp/pip-build-gtajkssv/pinpointpy/common/src -I/usr/include/python3.6m -c src/PY/_pinpoint_py.cpp -o build/temp.linux-x86_64-3.6/src/PY/_pinpoint_py.o -std=c++11
    src/PY/_pinpoint_py.cpp:18:10: fatal error: Python.h: No such file or directory
       18 | #include <Python.h>
          |          ^~~~~~~~~~
    compilation terminated.
    error: command '/gcc/bin/gcc' failed with exit status 1
    

if you got the same error, try https://stackoverflow.com/a/21530768

@donemin
Copy link
Author

donemin commented Nov 13, 2024

Also can see Using legacy 'setup.py install' for pinpointPy, since package 'wheel' is not installed. in build log.

should I install wheel?
No problems when I set pinpointPy version to 1.3.1 instead not figured version.

in requirements.txt

pinpointPy==1.3.1

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

2 participants