From: Hazen B. <hba...@ma...> - 2017-04-22 21:55:50
|
On 04/21/2017 03:42 AM, Alan W. Irwin wrote: > > Hi Hazen: > > Could you please test commit 578b028? For that commit I made some > modest progress with Python 3 for both pyqt4 and pyqt5, but I have hit > a roadblock with a run-time error saying the plplot_pyqt[45] extension > modules are not initialized properly when the script tries to import > one of those modules. The sip, pyqt[45], and python3 software > packages are all supposed to work well together for their latest > versions according to my google search results, but it is possible the > Debian Jessie versions of these software packages are too old and > buggy which is why I am asking you to test this commit by attempting > to build the test_pyqt[45]_example target (depending on whether your > build system finds Qt4 or Qt5) for both the python2 and python3 cases > (where the former builds and runs plplot_pyqt[45] without issues here, > but the latter case only builds these extension modules without > obvious issues but runs into initialization errors at run time). > > The test_pyqt4_example target build all > prerequisites with success but fails the final run-time test. > > Here is the relevant error message if I attempt to do the > run-time test by hand: > > software@raven> python3 examples/python/pyqt4_example.py Traceback (most > recent call last): > File "examples/python/pyqt4_example.py", line 33, in <module> > import plplot_pyqt4 > ImportError: dynamic module does not define init function > (PyInit_plplot_pyqt4) > > Do you get a similar error there or success? It works for me with Python3 and pyqt5. My understanding is that error messages like you are seeing mean that the C library was built for the wrong version of Python. I've attached my CMakeCache.txt file. -Hazen |