hotosm / oam-qgis-plugin

QGIS plugin to access and upload to OAM
10 stars 6 forks source link

The plugin is broken. Python said: cannot import name Nominatim #104

Closed pcav closed 4 years ago

pcav commented 7 years ago

Title says all. Thanks.

yojiyojiyoji commented 7 years ago

On what environment did you try to run the plugin? As far as I checked on my environment (Linux Mint 18 or Windows10 64bit with QGIS 2.18.x), it was working fine.

pcav commented 7 years ago

Debian sid. Perhaps we can ask for more extensive testing in other environments, to check whether it's a local issue. Thanks.

yojiyojiyoji commented 7 years ago

Basically, paths are set in two files below (init.py and module_geocoding.py). Please let me know if you find any problem.

  1. init.py file

path_root = os.path.join(os.path.dirname(file)) sys.path.append(path_root)

path to external libs

path_boto = os.path.join( os.path.dirname(file), 'ext_libs/boto-2.38.0') path_filechunkio = os.path.join( os.path.dirname(file), 'ext_libs/filechunkio-1.6') path_requests = os.path.join( os.path.dirname(file), 'ext_libs/requests-2.7.0') path_geopy = os.path.join( os.path.dirname(file), 'ext_libs/geopy-1.11.0')

sys.path.append(path_boto) sys.path.append(path_filechunkio) sys.path.append(path_requests) sys.path.append(path_geopy)

  1. module/module_geocoding.py file from geopy.geocoders import Nominatim
yojiyojiyoji commented 4 years ago

I don't like to write something strict, but I am ctually wondering how much knowledge or experience you have on software development. My understanding is that if you are using Debian (especially SID), you should have minimum knowledge, such as editing python script and modifying the paths and removing the embedded libraries, etc. by yourself. (At least, you should be able to explore the problem and give the developers key information for debug.) If you can't do it, you should not use Debian-sid. Anyway, I will close this issue, since I don't think I can expect any progress.