Traceback oddity
Emile van Sebille
emile at fenx.com
Fri Oct 19 10:21:12 EDT 2001
More information about the Python-list mailing list
Fri Oct 19 10:21:12 EDT 2001
- Previous message (by thread): Traceback oddity
- Next message (by thread): Traceback oddity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I expect you've played with sys.path. Consider, eg: >>> os.__file__ 'f:\\python21\\lib\\os.pyc' >>> sys.path.insert(0,'f:\\Python21\\Lib') >>> reload(os) <module 'os' from 'f:\Python21\Lib\os.pyc'> >>> os.__file__ 'f:\\Python21\\Lib\\os.pyc' >>> Check to see if duplicate versions of the same directory are in sys.path, then back track where they were added. HTH, Emile van Sebille emile at fenx.com --------- ----- Original Message ----- From: "Dale Strickland-Clark" <dale at riverhall.NOTHANKS.co.uk> Newsgroups: comp.lang.python Sent: Friday, October 19, 2001 3:51 AM Subject: Traceback oddity > This may not be a Traceback issue at all but somewhere in the depths, > Python's handling of file paths is strangely inconsistent. > > Here's my traceback report (wrapped, unfortunately): > > Traceback (most recent call last): > > File "S:\JOBS\Gibson\Library Manager\librarymanager\cli\lb.py", line > 31, in main > handler.execute() > File "S:\JOBS\Gibson\Library > Manager\librarymanager\cli\lbCLICommand.py", line 52, in execute > func() > File "S:\JOBS\Gibson\Library > Manager\librarymanager\cli\lbCLIStory.py", line 41, in doNew > xmlStory = lbXMLStory.lbXMLStory(self.work, > lbs.lbStory(self.work)) > File "s:\jobs\gibson\library manager\librarymanager\lbStory.py", > line 27, in __init__ > lbdbPubBase.__init__(self, self.work, ID, seq, Parent=Parent) > File "s:\jobs\gibson\library manager\librarymanager\lbdbTable.py", > line 77, in __getattr__ > return self._fields[field] > File "s:\jobs\gibson\library manager\librarymanager\lbdbTable.py", > line 75, in __getattr__ > assert field != '_fields' > > The observant will have noticed that the first few filepaths are in > mixed case whereas the last are all lower case. > > I only noticed because I'm trying to post-process this report. > > Any ideas why? > > Cheers. > -- > Dale Strickland-Clark > Riverhall Systems Ltd
- Previous message (by thread): Traceback oddity
- Next message (by thread): Traceback oddity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list