Re: Help me in error of importing psycopg2 in python

Federico Di Gregorio <fog-NGVKUo/i/[email protected]>
Newsgroups gmane.comp.python.db.psycopg.devel
Organization initd.org
Message-ID <1251452392.4082.6.camel@mila>
Il giorno ven, 28/08/2009 alle 16.30 +0700, Vu Hong Thuan ha scritto:
> I've noticed that: in the first time i import psycopg2, i've got the
> error, dll load failed. If i retype "import psycopg2", i've got the
> error about import tz

That's because the Python module psycopg2 imported and then there was
the error when it tried to import the C module. So you end up with an
empty psycopg2 and on the new import you get a new error (stupid Python,
module importing should be atomic.)

federico

-- 
Federico Di Gregorio                         http://people.initd.org/fog
Debian GNU/Linux Developer                                [email protected]
INIT.D Developer                                           fog-NGVKUo/i/[email protected]
 La mia nuova versione del mondo prevede una consapevolezza
  distribuita e insapore.                             -- sisterconfusion

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/[email protected]
http://lists.initd.org/mailman/listinfo/psycopg
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkqXpegACgkQvcCgrgZGjeuJYwCeIUR9+CKV226WpJRYIqA/g+AF
xBIAoJdPFjimB5zloIo+VD8jta++O4Jh
=rzLc
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.