mapzen-geohash icon indicating copy to clipboard operation
mapzen-geohash copied to clipboard

install from pyPi failing

Open bryonjacob opened this issue 6 years ago • 2 comments

I just tried to install mzgeohash from pypi, and I got the following

$ pip install mzgeohash
Collecting mzgeohash
  Using cached https://files.pythonhosted.org/packages/77/54/48e792a0fa9ff39550feed21c2c4e4bf583b2862a96e879bd1e3969c1e09/mzgeohash-1.0.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/3y/xcklh6_96zz_f9d4bmk86p0h0000gn/T/pip-install-zus2aeos/mzgeohash/setup.py", line 3, in <module>
        import mzgeohash
      File "/private/var/folders/3y/xcklh6_96zz_f9d4bmk86p0h0000gn/T/pip-install-zus2aeos/mzgeohash/mzgeohash/__init__.py", line 1, in <module>
        from geohash import encode, decode, adjacent, neighbors, neighborsfit
    ModuleNotFoundError: No module named 'geohash'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/3y/xcklh6_96zz_f9d4bmk86p0h0000gn/T/pip-install-zus2aeos/mzgeohash/

my version info:

$ python --version
Python 3.6.5
$ pip --version
pip 10.0.1 from /Users/bryon/.virtualenvs/adhoc/lib/python3.6/site-packages/pip (python 3.6)

Checking it out locally and installing had the same error - but with a one-line change in the __init__.py file fixed it - I made the change in a fork here:

https://github.com/bryonjacob/mapzen-geohash/commit/ce027d55d8afeca4a85bf2d6ee95c69a3253306e

LMK if I should submit a pull request - thanks!

bryonjacob avatar Apr 24 '18 18:04 bryonjacob

I am facing the same issue. Below is the version info:

$ python --version
Python 3.4.3
$ pip --version
pip 18.1

This has to be fixed, but it seems this library is not being maintained of late.

shahbazahmed1269 avatar Nov 15 '18 09:11 shahbazahmed1269

@jason-h-simplifi has a fix for this https://github.com/jason-h-simplifi/mapzen-geohash and repackaged as https://pypi.python.org/pypi/mz2geohash

agile avatar Jul 31 '19 16:07 agile