[Twisted-Python] Confusing traceback from mktap.py

Bradley Duane Peters twisted at moberley.com
Wed Mar 12 00:12:37 EST 2003

On 11 Mar 2003 at 19:10, Jp Calderone wrote:
> Perhaps you have "cPickle.py" in your source, with "dump = None" in
> it?  Could you try this interactively, preferably in your package's
> directory, and/or where you ran mktap from?
>     import cPickle
>     print cPickle.__file__, cPickle.dump

Unless it's part of something imported from Twisted, I haven't used 
cPickle.py in my source and I can't find anything like "dump = None". 
I tried the two lines above in the Python shell starting from where I 
run mktap from, and from my package's directory. In all cases, it 
resulted in the following traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute '__file__'

> Did you upgrade your app, or Twisted?

I had just made some modifications to my app, and was running it 
through mktap so I could test them. I didn't make any changes to 
Twisted itself.

Bradley Peters.  

More information about the Twisted-Python mailing list