[Zope-dev] Old traceback errors

Ross Boylan RossBoylan@stanfordalumni.org
Wed, 17 Nov 1999 11:07:24 -0800


While working on a Zope product, I kept getting traceback errors referring
to earlier versions of the code--that is, they gave an error for a line I
had deleted.

Specifically, my __init__.py had
import OrgUser

and OrgUser.py used to have the line
import somethingItCouldNotFind

I kept getting a broken product and a traceback indicating failure on the
import somethingItCouldNotFind
line.

I know python will not import something if it already has it, so I took all
the following steps
* shutdown zope
* verify python is not running
* delete .pyc files for __init__ and OrgUser
* logoff and login

When I add a deliberately bogus line, I get a traceback for it, so it does
seem the new file is getting read.

My current theory is that the product definition was failing for some other
reason, and the error message I am receiving is bogus.  Perhaps no new error
message is generated, so I get the most recent one?

I'm running Zope 2.1.0b2, which I installed over a previous version.
Windows NT 4, SP4.
I had a separate installation of python 1.5.2 (and pythonwin) before I
installed Zope.
AMD K6-2 processor, 256Mg Ram.

I ran zope as a service, and also shut it down and tried running it
manually.