You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon updating to 2.0.0.0.1 I started seeing this diagnostic:
$ python -c 'from uszipcode import SearchEngine'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/jhanley/miniconda3/envs/problems/lib/python3.12/site-packages/uszipcode/__init__.py", line 21, in <module>
from .search import (
File "/Users/jhanley/miniconda3/envs/problems/lib/python3.12/site-packages/uszipcode/search.py", line 26, in <module>
from .model import ZipcodeTypeEnum, SimpleZipcode, ComprehensiveZipcode
File "/Users/jhanley/miniconda3/envs/problems/lib/python3.12/site-packages/uszipcode/model.py", line 30, in <module>
class AbstractSimpleZipcode(Base, sam.ExtendedBase):
^^^^^^^^^^^^^^^^
AttributeError: module 'sqlalchemy_mate' has no attribute 'ExtendedBase'
I am using cPython 3.12.3 with uszipcode 1.0.1 and SQLAlchemy 2.0.30.
uszipcode has an unpinned dependency so is picking up the new version and breaking. Unfortunately, that library hasn't been updated for the new api yet. In the meantime, I recommend just pinning sqlalchemy_mate to an earlier version.
It appears I tried to pin blame on the wrong component, and the bug should be logged against the uszipcode package. This issue #5 can be closed out with WONTFIX.
Some very nice code improvements are available in uszipcode PR 81, awaiting maintainer approval for merge / pypi release.
Upon updating to 2.0.0.0.1 I started seeing this diagnostic:
I am using cPython 3.12.3 with uszipcode 1.0.1 and SQLAlchemy 2.0.30.
Downgrading immediately fixes the problem:
The text was updated successfully, but these errors were encountered: