uber-archive / pyflame

🔥 Pyflame: A Ptracing Profiler For Python. This project is deprecated and not maintained.
Apache License 2.0
2.98k stars 240 forks source link

Failed to PTRACE_PEEKDATA - in miniconda environment #165

Open nitishgupta opened 5 years ago

nitishgupta commented 5 years ago

pyflame 1.6.6 linux-gnu x86_64 (ABI list: 26 34 36) Python 3.6.7

Following error when I try to profile a code running in a miniconda environment. Any ideas?

Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
Unexpected ptrace(2) exception: Failed to PTRACE_PEEKDATA (pid 1604, addr 0x55b68223b508): Input/output error
ghost commented 5 years ago

Just fixed the same issue with mine.

Although pyflame is tested with python 3.6, it only works up until version 3.6.5, I am unsure why, but from reading other tickets I think it is because of the headers maybe????

To fix the errors just downgrade your python with: conda install python=3.6.5 The errors should be gone, but it will downgrade some incompatible libraries, so your code itself may error out if it is using dependencies that are only supported by later versions of python.

nitishgupta commented 5 years ago

I found that I get this error when I run my code within a conda environment. Is there a fix for that?

ghost commented 5 years ago

I found that I get this error when I run my code within a conda environment. Is there a fix for that?

You have to downgrade your python version.

pyflame is currently incompatible with python version 3.6.7, the latest version it is compatible with is python version 3.6.5

you can install it with conda install python=3.6.5 after that your code should work

mycpuorg commented 5 years ago

I found that I get this error when I run my code within a conda environment. Is there a fix for that?

You have to downgrade your python version.

pyflame is currently incompatible with python version 3.6.7, the latest version it is compatible with is python version 3.6.5

you can install it with conda install python=3.6.5 after that your code should work

@bellershaw1 This does not seem to work for me even with python=2.7 Not sure what I'm missing.

ubuntu@xxx-home:~/pyflame/pyflame/src$ ./pyflame --version pyflame 1.6.6 linux-gnu x86_64 (ABI list: 26 34)

Can somebody please help?