8000 TypeError: __init__() takes exactly 1 positional argument (2 given) · Issue #12 · tsgates/pylookup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

TypeError: __init__() takes exactly 1 positional argument (2 given) #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ghost opened this issue Nov 7, 2011 · 1 comment
Open

Comments

@ghost
Copy link
ghost commented Nov 7, 2011

I've just downloaded pylookup and I want to update the database but I have this error, even with local files:

python3 pylookup.py -u http://docs.python.org/

Wait for a few seconds ..
Fetching htmls from 'http://docs.python.org/'
Traceback (most recent call last):
File "pylookup.py", line 241, in
update(opts.db, opts.url, opts.append)
File "pylookup.py", line 165, in update
parser = IndexProcessor(writer, dirname(url))
File "pylookup.py", line 88, in init
htmllib.HTMLParser.init( self, formatter.NullFormatter() )
TypeError: init() takes exactly 1 positional argument (2 given)

Thanks,

@tsgates
Copy link
Owner
tsgates commented Nov 7, 2011

in fact, pylook doesn't work with python3 yet -- just solve syntax problem in current version. we have to find a way to make it compatible way of parsing instead of using old htmlparser. I will update when I have some free time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0