Countries table #75
Replies: 1 comment
-
Sorry, I just found issue #59 that covers this problem! I should have searched closed issues. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, thank you to somnathrakshit for writing this useful tool. I am having a problem getting it to run, which is most likely specific to my set up, so I am asking this as a discussion question rather than an issue.
If I run the example:
url='https://en.wikipedia.org/wiki/2012_Summer_Olympics_torch_relay'
places = geograpy.get_geoPlace_context(url = url)
I encounter an sqlite3.OperationalError:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "~/packages/miniconda/lib/python3.7/site-packages/geograpy/__init__.py", line 24, in get_geoPlace_context places=get_place_context(url, text, labels=Labels.geo, debug=debug) File "~/packages/miniconda/lib/python3.7/site-packages/geograpy/__init__.py", line 46, in get_place_context pc = PlaceContext(places) File "~/packages/miniconda/lib/python3.7/site-packages/geograpy/places.py", line 32, in __init__ self.setAll() File "~/packages/miniconda/lib/python3.7/site-packages/geograpy/places.py", line 87, in setAll self.set_countries() File "~/packages/miniconda/lib/python3.7/site-packages/geograpy/places.py", line 98, in set_countries country=self.getCountry(place) File "~/packages/miniconda/lib/python3.7/site-packages/geograpy/locator.py", line 1140, in getCountry countryRecords=self.sqlDB.query(query,params) File "~/packages/miniconda/lib/python3.7/site-packages/lodstorage/sql.py", line 223, in query for record in self.queryGen(sqlQuery, params): File ~/packages/miniconda/lib/python3.7/site-packages/lodstorage/sql.py", line 195, in queryGen query = cur.execute(sqlQuery,params) sqlite3.OperationalError: no such table: countries
I am using python 3.7.15 with Ubuntu 22.04.2, in a Conda base env.
It might be a path issue, or I am missing a dependency. If you have any suggestions as to remove the error, please let me know.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions