-
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
can't open file '/lib/python3.9/site-packages/STATmain.py' #42
can't open file '/lib/python3.9/site-packages/STATmain.py' #42
Comments
The stat-cl and stat-gui wrapper scripts use the following command to run the actual executable:
And earlier in those scripts, ${prefix} should be set like this for example:
Can you see if your stat-cl and stat-gui scripts are setting prefix properly? |
Ok, following our lead I found that PYTHON_PREFIX was not defined. Spack should have fix it, anyway. 2711156: /lus/h2resw01/hpcperm/la/Tools/spack/opt/spack/linux-rhel8-zen/gcc-8.4.1/gdk-pixbuf-2.42.6-lm3clg77j3q3dpmhogldhwgpctus7fv5/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: error: symbol lookup error: undefined symbol: g_module_check_init (fatal) Cheers, Lucian |
Can you try running:
That symbol should be defined in the libgtk library:
|
ldd output looks fine but some of the symbols are not found by nm. But I think that the missing symbols messages are a red herring. I see them also when I run stat-gui installed previously. This one works. I should mention perhaps that when I launch stat-gui the STAT the start window appears for a fraction of a second and then it crashes. |
I got a core file from the crash. Do you know which executable I have to pass to gdb together with the core file? |
You can pass it the python executable. |
with export PYTHONDEVMODE=1 I get the following label = gtk.Label("Please Wait...") Current thread 0x000015330427f740 (most recent call first): the source code in Gtk.py:580 is
` |
It might help if you run gdb on the core file or run STAT under gdb so we can see where in the GTK implementation it is seg faulting. Based on the python trace, though, this looks like it is not a STAT bug, but rather a GTK bug. |
I don't understand this. I build with python 3.9.9 which works on another system (same SW stack) and I get the the crash. Not many other version diffs in the spack dependencies between the two installations. The first problem with the new install is that PYTHON_PREFIX is not defined, hence the first failure. Do you know if this variable is comes form spack environment or it belongs to STAT package? |
I was able to poke at this a bit, but didn't reach any conclusions. First, I will caution you to be careful when attributing the cause of the problem. It is not the python version that is causing this. I found that the problem occurs with 3.9.9 and 3.9.12. There may be another dependence in the spack dependence chain that is contributing to this issue. The PYTHON_PREFIX variable is a macro that should be expanded during the configure step. I will have to do some more debugging/research to figure out why this isn't being expanded properly. |
I was able to track the change to moving from automake 1.15 to automake 1.16. With that in mind, can you `spack uninstall -a stat' to remove your current stat installations and then reinstall stat with spack adding ^automake@1.15. Let me know if that fixes it for you. If so, I will update the spack package to reflect this until I can fix the issue in the STAT build system itself. |
the spack PR was merged. If you do a git pull in your spack directory, you should get an updated stat package.py that forces automake version 1.15 (and also dyinst 11.X). Please let me know if this works for you. |
Hi, Also I google about gtk seg fault and I found this issue which could be relevant |
OK, I'm glad the PYTHON_PREFIX issue is fixed. I too see seg faults with stat-gui. It's not clear if the crash in the link you sent is related. FWIW, here is part of the trace for the STAT GUI crash:
|
Based on a diff of your outputs and a google search of the stack trace, I found https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/283 and figured out that this issue is with the move from libffi@3.3 to libffi@3.4.2. If you add |
Tested on my system. Works fine. |
Hi,
I have installed with spack the latest STAT and the launch fails with the message from below:
/lus/h2resw01/hpcperm/la/Tools/spack/opt/spack/linux-rhel8-zen/gcc-8.4.1/python-3.9.12-5ac5g7upuz2pwa7x6oxpxvx7leq32a2q/bin/python3.9: can't open file '/lib/python3.9/site-packages/STATmain.py': [Errno 2] No such file or directory
An install that I have done on a similar system in February worked fine. the only difference I spotted is that the new install uses a slightly newer version of python: 3.9.12 vs 3.9.9
Any idea of what's going on here? Python should be looking in the spack dirs for the STATmain.py.
Lucian Anton
The text was updated successfully, but these errors were encountered: