[PyQt] Importing marble fails

heathmatlock heathmatlock at gmail.com
Sat Jan 28 08:12:19 GMT 2012


I compiled one of the newer marble commits,
10c910a9cae3c4e8eb9be442d80125b7e7338e67, and copied the marble.so
into  /usr/lib/python2.7/dist-packages/PyKDE4 and when I go to import
marble within a python interpreter, this error is
given:http://paste.kde.org/194432/

The error is mentioned in swig's docs:
http://www.swig.org/Doc1.3/Python.html"This error is almost always
caused when a bad name is given to the shared object file. For
example, if you created a file example.so instead of _example.so you
would get this error. Alternatively, this error could arise if the
name of the module is inconsistent with the module name supplied with
the %module directive. Double-check the interface to make sure the
module name and the shared object filename match. Another possible
cause of this error is forgetting to link the SWIG-generated wrapper
code with the rest of your application when creating the extension
module."

Maybe it's one of the latter causes?

-- 
Heath Matlock
+1 256 274 4225


More information about the PyQt mailing list