-
Notifications
You must be signed in to change notification settings - Fork 26
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
fil-profile run failed with symbol lookup error: <lib root>/filprofiler/_filpreload.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyBytes_Size #333
Comments
Some notes:
When you say "you tried Python 3.8", did you recompile with Python 3.8? My first guess here is that you are compiling with a different version than the one you're importing with. You can explicitly set a path to a Python binary to build with by setting (Unrelatedly, I suggest stopping using Python 3.6: https://pythonspeed.com/articles/stop-using-python-3.6/) |
Hi, @itamarst thanks a lot for your quick response.
|
In theory when you compile Python extensions they shouldn't be sensitive to minor version changes like that. |
What Linux distribution are you using? Had someone report a similar issue with Nix. |
Hi, @itamarst Thanks for your kind response with more findings. Here is what linux information I used: I sshed into my AWS EC2 machine and ran
And my linux kernal version is: Let me know if you need any more info for you to identify the root cause and fix. Thanks, |
Hi, @itamarst Just to follow up, do you have the plan to fix this issue (if this is actually an issue for some linux distribution)? |
I guess I should do some testing on Amazon Linux and see if I can reproduce with binaries. |
Hi, @itamarst Do you by any chance have update on this issue? I see you have put it to NEXT stage. Just to check whether pythonspeed has the plan to check and fix this issue. |
I have limited time for Fil (mostly spending time on my profiler for production use, https://pythonspeed.com/sciagraph/), and having others compiling from scratch is not a top priority for Fil either. There's people having issues on macOS that are higher priority. But I will get to it eventually hopefully. |
Hi,
I imported filprofiler into our gitfarm and built it (through setuptools setup.py). The built artifacts are the same as what I get from
pip install filprofiler
. However, when I runfil-profile run
within our python env, it failed withsymbol lookup error: <lib root>/filprofiler/_filpreload.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyBytes_Size
. I have investigated quite a long time and below are my findings:undefined symbol: PyBytes_Size
.nm -D libpython3.8.so.1.0
)I wonder if there is any incompatibility for filprofiler on higher minor version for python3.6(.14), 3.7(.11) and 3.8(.11)? And why filprofiler cannot find the symbol while the symbol exists in the libpython.so file?
The text was updated successfully, but these errors were encountered: