ushahidi / geograpy

Extract countries, regions and cities from a URL or text
219 stars 133 forks source link

ImportError: No module named 'extraction' #9

Open acquayefrank opened 8 years ago

acquayefrank commented 8 years ago

Hi, I just came across this library and was trying it out but every time I try to....

import geograpy

I get this error: Traceback (most recent call last): File "", line 1, in File "/Users/Larry/miniconda3/envs/fido/lib/python3.5/site-packages/geograpy/init.py", line 1, in from extraction import Extractor ImportError: No module named 'extraction'

acquayefrank commented 8 years ago

Apparently the library depends on .... https://pypi.python.org/pypi/extraction/ I think it should be added as a dependency

acquayefrank commented 8 years ago

I just realised it does not depend on https://pypi.python.org/pypi/extraction/ ... but rather it's not compatible with python3 hence it's an import issue

thomas-hervey commented 8 years ago

Has this been fixed? If I need to import this package, is there something that I can do to run it in Python2 so that it will load correctly?

tekavw commented 6 years ago

Any solution guys please ?

thomas-hervey commented 6 years ago

@tekavw last time I tried (several months ago), I wasn't able to get this to work, even after correcting the dependency. I would suggest looking at the [https://github.com/ushahidi/geograpy/issues/21](other issue involving Python3) and see if you can instead get this to work with Python3. Let me know how it goes.

ChristianFrisson commented 6 years ago

Installing extractor with python 3 from pull request https://github.com/lethain/extraction/pull/5 works.

WolfgangFahl commented 3 years ago

you might want to use the more recent https://github.com/somnathrakshit/geograpy3