-
Notifications
You must be signed in to change notification settings - Fork 435
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
"Failed to find a python interpreter in the .data section"/"Failed to get line number" #164
Comments
Hmm - I can't seem to replicate. Can you enable logging and paste the output here?
Note that if the program immediately exits (like just importing a package and then returning) py-spy might not initialize in time to profile it - which is why I added the sleep call above. The errors returned in that case should be different though |
Output attached (with the sleep): log.txt fwiw I cannot repro this either with an Arch Linux distro-packaged python. |
Thanks for the bug report! I've managed to reproduce this and figure out what's happening here. The problem is that the colorcet This bug is also timing dependant - since as soon as the 'import colorcet' line we can initialize py-spy. The problem is that on the system I repro'ed on - this import takes > 500ms and we timeout the py-spy initialization process before then =( I will have a fix in the next version of py-spy (this week? 0.2.0 is basically ready to go, I just need to update the documentation). The fix is trivial but the error logging really could be improved here. |
If a function or module scope had more than 4k lines, we would fail to load the line number table. #164 . Fix by increasing the limit, and just logging a warning and skipping the line number if we're over this.
Thanks :) |
fixed in v0.2.0 |
I'm getting the error in the title above when trying to profile a program that import the colorcet (https://github.com/pyviz/colorcet) package:
or occasionally
This is on fedora with a conda python 3.7, py-spy 0.1.11 or 0.2.0dev3 (and colorcet 2.0.2, fwiw).
I have found a similar issue in #1, but I'm not sure it's really the same thing? The OS is different, and you say in #1 that its root cause has been fixed.
Thanks for the great package :)
The text was updated successfully, but these errors were encountered: