← Back to team overview

launchpad-dev team mailing list archive

Re: combo loader update

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12-01-22 11:59 PM, Ian Booth wrote:
> AttributeError: 'module' object has no attribute 'argv'
> 
> Yes, it was claiming that module sys has no argv attribute. And
> sure enough, doing a "print dir(sys)" showed that argv is gone.
> WTF. I'd love to know what could possibly cause something to
> effectively execute what appears to be "del sys.argv".

I believe it's more a case of sys.argv having never existed in that
context.  This can happen when Python is loaded as an extension, IIRC.
 I tripped over this a few months ago, but the details are hazy.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAk8da3EACgkQ0F+nu1YWqI1jdgCVEw+POxOqyk2S1I9ZL5kd5l1r
LQCeMNqGT1dSckFJISi8WlBp3s5NASI=
=n0c3
-----END PGP SIGNATURE-----


References