Skip to content
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

Problems getting it up and running #88

Open
RodogInfinite opened this issue Dec 13, 2016 · 2 comments
Open

Problems getting it up and running #88

RodogInfinite opened this issue Dec 13, 2016 · 2 comments

Comments

@RodogInfinite
Copy link

RodogInfinite commented Dec 13, 2016

First started with a SQLite database but couldn't get it running properly. Switched to MySQL and everything runs until this traceback occurs

Traceback (most recent call last):
File "consolidate.py", line 182, in
join('disambiguator.csv')
File "consolidate.py", line 167, in join
old[0] = old[0].astype(str)
File "/home/user/patentprocessor/venv/local/lib/python2.7/site-packages/pandas/core/frame.py", line 2003, in getitem
return self._get_item_cache(key)
File "/home/user/patentprocessor/venv/local/lib/python2.7/site-packages/pandas/core/generic.py", line 667, in _get_item_cache
values = self._data.get(item)
File "/home/user/patentprocessor/venv/local/lib/python2.7/site-packages/pandas/core/internals.py", line 1655, in get
_, block = self._find_block(item)
File "/home/user/patentprocessor/venv/local/lib/python2.7/site-packages/pandas/core/internals.py", line 1935, in _find_block
self._check_have(item)
File "/home/user/patentprocessor/venv/local/lib/python2.7/site-packages/pandas/core/internals.py", line 1942, in _check_have
raise KeyError('no item named %s' % com.pprint_thing(item))
KeyError: u'no item named 0'

It turns out that line 165 and 166

old = s.execute('select uuid, inventor_id from rawinventor where inventor_id != "";')
old = pd.DataFrame.from_records(old.fetchall())

produce an empty dataframe because there are no recorded inventor_ids in the table.

@RodogInfinite
Copy link
Author

Note: these are no longer accessible
loctbl
NBER_asg

@Bernaz
Copy link

Bernaz commented Mar 5, 2019

Hi @RodogInfinite, I had the same error. Did you manage to fix the problem?

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

2 participants