Created
November 8, 2014 16:49
-
-
Save qknight/56abc0fcdb59a017395c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======================== summary ========================== | |
i've made many attempts of getting pyqwt to work and here is my newest fail: | |
SystemError: dynamic module not initialized properly | |
what i did was: | |
- now using qwt-5.2 bundled with pyqwt-5.2.0 implementation (for qwt) | |
- BUT i'm actually not using qw5 from the ${pkgs.qwt} directory but also the bundled one (don't ask, didn't get it working) | |
so this incarnation of Qwt.so seems to be working in regards to: | |
- readelf -s Qwt.so | |
- ldd -r Qwt.so | |
(which were failing most of the time with the attempt of using qwt-5.x other than the bundled one) | |
also note that i've added: -lpython2.7 which protects me from these errors using: | |
ldd -r Qwt.so: | |
undefined symbol: PyList_Type (/nix/store/vhkam9jkpn0i34r33qgkfkb2wgbk07sc-python2.7-pyqwt-5.2.0/lib/python2.7/site-packages/Qwt5/Qwt.so) | |
undefined symbol: PyCapsule_Type (/nix/store/vhkam9jkpn0i34r33qgkfkb2wgbk07sc-python2.7-pyqwt-5.2.0/lib/python2.7/site-packages/Qwt5/Qwt.so) | |
undefined symbol: PyCObject_Type (/nix/store/vhkam9jkpn0i34r33qgkfkb2wgbk07sc-python2.7-pyqwt-5.2.0/lib/python2.7/site-packages/Qwt5/Qwt.so) | |
which was still an issue in the ce73b8a39a2726947b83ef46dfc8af075af57acf commit of https://github.com/qknight/nixpkgs/commits/brickv-2.1.1 | |
========================================unit test ================================================== | |
joachim@lenovo-t530 ...a5v2lw-python2.7-pyqwt-5.2.0/examples % ./CPUplot.py | |
Traceback (most recent call last): | |
File "/nix/store/pixq2iwdj56fk8x78r3gmnzzzqa5v2lw-python2.7-pyqwt-5.2.0/examples/.CPUplot.py-wrapped", line 11, in <module> | |
import Qwt5 as Qwt | |
File "/nix/store/pixq2iwdj56fk8x78r3gmnzzzqa5v2lw-python2.7-pyqwt-5.2.0/lib/python2.7/site-packages/Qwt5/__init__.py", line 32, in <module> | |
from Qwt import * | |
SystemError: dynamic module not initialized properly | |
1 joachim@lenovo-t530 ...a5v2lw-python2.7-pyqwt-5.2.0/examples % http://stackoverflow.com/questions/2435125/trying-to-get-django-app-to-work-with-mod-wsgi-on-centos-5 | |
========================================ldd to the Qwt.so ================================================== | |
joachim@lenovo-t530 ...a5v2lw-python2.7-pyqwt-5.2.0/examples % ldd ../lib/python2.7/site-packages/Qwt5/Qwt.so | |
linux-vdso.so.1 (0x00007fff551fe000) | |
libpython2.7.so.1.0 => /nix/store/6l1bvljpy8gazlsw2aw9skwwp4pmvyxw-python-2.7.8/lib/libpython2.7.so.1.0 (0x00007fe6eac99000) | |
libQtCore.so.4 => /nix/store/7c85qvshhiwz23s1mmifv8hxlh6g2i5s-qt-4.8.6/lib/libQtCore.so.4 (0x00007fe6ea7a1000) | |
libpthread.so.0 => /nix/store/i11d0d4015p0vbdnjq7lb509v9pwp049-glibc-2.19/lib/libpthread.so.0 (0x00007fe6ea583000) | |
points to /nix/store/6l1bvljpy8gazlsw2aw9skwwp4pmvyxw-python-2.7.8/lib/libpython2.7.so.1.0 | |
and | |
========================================the CPUplot.py-wrapped interpreter ================================================== | |
cat /nix/store/pixq2iwdj56fk8x78r3gmnzzzqa5v2lw-python2.7-pyqwt-5.2.0/examples/.CPUplot.py-wrapped | |
#!/nix/store/6l1bvljpy8gazlsw2aw9skwwp4pmvyxw-python-2.7.8/bin/python | |
# The Python version of qwt-*/examples/cpuplot | |
import sys; sys.argv[0] = 'CPUplot.py' | |
import os | |
import sys | |
from PyQt4 import Qt | |
import Qwt5 as Qwt | |
from Qwt5.anynumpy import * | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
probably same cause as in this report:
http://lists.cairographics.org/archives/cairo/2013-May/024334.html