TypeError: _new_() takes exactly 3 arguments (2 given) - what does it mean?
Carl Banks
pavlovevidence at gmail.com
Wed May 26 15:04:53 EDT 2010
[Again, can't see the original, sorry]
On May 26, 11:30 am, Terry Reedy <tjre... at udel.edu> wrote:
> On 5/24/2010 2:52 PM, Jesse McDonnell wrote:
>
> > I'm attempting to install Powerlinehttp://code.google.com/p/powerline/,
> > a computer reservation software based on CherryPy/Python using a MYSql
> > database, at my local library and I've run up against an error that I
> > cannot google my way out of! The google groups for the application is
> > inactive so I'm posting on here in the hope that I can get some pointers
> > to get me beyond this issue. Any suggestions/pointers will be greatly
> > appreciated.
The most common reason for this message is trying to subclass a
module. (Very easy mistake when a module has the same name as a
class, which is part of why I don't like the practice, though the
modern PEP 8 reduces the issue.)
IOW, someone did something like this:
import foo
class bar(foo): pass
when they should have done this:
from foo import foo
class bar(foo): pass
Carl Banks
More information about the Python-list
mailing list