-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/14/2011 11:39 PM, Phil Thompson wrote: > On Mon, 14 Feb 2011 14:35:42 +0100, Sébastien Petitdemange > <[email protected]> wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Hi All, >> >> I'm trying to port to Windows platform some sip module we previously >> used with Linux. >> There is two modules one depend of the other: >> - module A and >> - module B import module A. >> >> My problem is that when I import those two module, I've got a RunTime >> exception in Python. >> i.e: >> >> import A >> import B #It's generate the following exception >> >> RuntimeError: the sip module has already registered a module called A >> >> Those import work perfectly with Linux platform! >> Is there an extra keyword to add into sip file or a work around... > > SIP generates the same code for all platforms (given the same .sip file > and the same command line flags). > > Phil > Hi Phil,
I just find what was the problem... As I play with sys.path, python try to reload a already loaded sip module. And it's seams that Windows prevent to load two dll with the same name. It's was just a mistake with __init__ file. Thanks again, SEB -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJNWm98AAoJEEtktDVosZgUlPAH/0X0cWHCZ0+oSjqgNiMYD3qX +b44Gl4MK34w7r+Ch14gQrLAsMhviXBy+Ct5E5XKp57NOzDXc3YpNE3yI7vSw2Xw JMXFZmX9qt+P9Ymk9lKbIMLC6b+mhnvWp6U+RVwfbl2jiATBofgC7PtYa+0klWjn +9VfjGVxx9PXlhnvXIe1ZkcQAHJMLONXyZcZ+El9jIrCyNntN+JuGnwDhRu7g5hI bGXpdaE/X9alCnL6+PY8m/ZFlmXa463NpQ+l5noBP3zNo31rUY2DM3SQrIRP9tY6 Qku9jYGoOS5/qIzw23Brm+xbe1efOdhb0qnYtQ/RMWMt01g6voDYrMJ7qz9JeP8= =TOq4 -----END PGP SIGNATURE-----
<<attachment: sebastien_petitdemange.vcf>>
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
