MacHu-GWU / uszipcode-project

USA zipcode programmable database, includes up-to-date census and geometry information.
MIT License
231 stars 49 forks source link

cannot import name 'SearchEngine' from 'uszipcode' #69

Open BolieRide opened 1 year ago

BolieRide commented 1 year ago

Describe the problem

cannot import name 'SearchEngine' from 'uszipcode' I am trying to use in a conda ArcGIS environment.

Sample code to reproduce the problem

from uszipcode import SearchEngine

package info

SQLAlchemy 1.4.46 sqlalchemy-mate 1.4.28.3 uszipcode 1.0.1

Thanks.

MacHu-GWU commented 1 year ago

Looks like it is the sqlalchemy-mate API issue, let me look into it.

SCristelI commented 1 year ago

I'm having the same problem with "from uszipcode import SearchEngine" ImportError: cannot import name 'SearchEngine' from 'uszipcode' (C:\Users\s_cri\anaconda3\lib\site-packages\uszipcode__init__.py)

stajdini commented 1 year ago

So, I figured it out. In my case, attempting to import uszipcode.search would lead to error ImportError: Numba needs NumPy 1.21 or less. So, all I had to do was to upgrade numba and downgrade Numpy to 1.20