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

python3.5.2 can't find the module #4

Open
DeoLeung opened this issue Mar 20, 2017 · 10 comments
Open

python3.5.2 can't find the module #4

DeoLeung opened this issue Mar 20, 2017 · 10 comments

Comments

@DeoLeung
Copy link

seems to be the problem of the capital package name

Python 3.5.2 (default, Feb  8 2017, 16:36:05)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import geohash
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'geohash'
>>> import Geohash
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/.virtualenvs/mdt-test/lib/python3.5/site-packages/Geohash/__init__.py", line 21, in <module>
    from geohash import decode_exactly, decode, encode
ImportError: No module named 'geohash'
@gd-inm
Copy link

gd-inm commented Apr 6, 2017

I had the same issue - if you rename the package name to be geohash rather than Geohash and then change __init__.py to import from .geohash (with a dot in front of the module name) rather than from geohash, the package should work for Python 3.5.2.

@bolerap
Copy link

bolerap commented Apr 7, 2017

same problem

@jerry153fish
Copy link

same issue

@TDilcy
Copy link

TDilcy commented Jun 28, 2017

@gd-inm it woks

@dayarian
Copy link

same issue

@Gpzim98
Copy link

Gpzim98 commented Sep 7, 2017

@gd-inm it works +1

@Maxence-BUNEL
Copy link

@gd-inm Solved the same issue with geoHash running in Azure ML 3.5 runtime. Thanks a lot !

@Demetrio92
Copy link

magic. Can it be fixed in some observable future?..

@jpds
Copy link

jpds commented Jun 26, 2019

I'd suggest just using https://github.com/wdm0006/pygeohash

@rogerganga
Copy link

Spyder or some python IDEs has issues when importing file from a local directory.

I copied the contents of geohash.py to init.py and removed 'from geohash import decode_exactly, decode, encode'.

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