sensiblecodeio / scraperwiki-python

ScraperWiki Python library for scraping and saving data
https://scraperwiki.com
BSD 2-Clause "Simplified" License
159 stars 69 forks source link

TypeError on import (__init__() got an unexpected keyword argument 'adapt_and_convert' ) #13

Closed danohu closed 11 years ago

danohu commented 11 years ago

Using github checkouts of scraperwik-local and dumptruck, this is what happens when I try to import scraperwiki:

In [1]: import scraperwiki

TypeError Traceback (most recent call last) /home/cin/cinscrapers/ in () ----> 1 import scraperwiki

/home/dan/.virtualenvs/taxhaven/local/lib/python2.7/site-packages/scraperwiki/init.py in () 23 24 from .utils import log, scrape, pdftoxml, swimport ---> 25 import utils, sqlite 26 import geo

/home/dan/.virtualenvs/taxhaven/local/lib/python2.7/site-packages/scraperwiki/sqlite.py in () 9 dt = DumpTruck(dbname = dbname, adapt_and_convert = False) 10 ---> 11 _connect() 12 13 def execute(sqlquery, data=[], verbose=1):

/home/dan/.virtualenvs/taxhaven/local/lib/python2.7/site-packages/scraperwiki/sqlite.py in _connect(dbname) 7 'Initialize the database (again). This is mainly for testing' 8 global dt ----> 9 dt = DumpTruck(dbname = dbname, adapt_and_convert = False) 10 11 _connect()

TypeError: init() got an unexpected keyword argument 'adapt_and_convert'

pwaller commented 11 years ago

Hi @danohuiginn, does this still happen?

pwaller commented 11 years ago

Due to the age of the issue I'm going to close this since I can't reproduce locally. Please comment, re-open or make a new issue if you still encounter this problem.