Message82032
As described here: http://james.wheare.org/notes/2009/02/import-site-
failed-use-v-for-traceback.php
The addpackage function will result in a TypeError being raised from os.path.exists(dir) -> from os.stat(path) if the contents of an
inspected .pth file contain binary data.
This can happen in OS X network environments where ._ AppleDouble files
are created to store resource forks and file metadata.
As this function is run whenever the interpreter is initialised, Python
should be robust enough to ignore invalid data in these files, either by
catching the TypeError in os.path.exists, or by detecting them at a
higher level, but should be careful of false positives.
Another alternative is to raise a different exception and use it to
display more helpful debugging info for those not familiar with pdb. |
|
Date |
User |
Action |
Args |
2009-02-14 12:36:05 | jwheare | set | recipients:
+ jwheare |
2009-02-14 12:36:04 | jwheare | set | messageid: <1234614964.94.0.514404315884.issue5258@psf.upfronthosting.co.za> |
2009-02-14 12:36:02 | jwheare | link | issue5258 messages |
2009-02-14 12:36:01 | jwheare | create | |
|