ethanfurman / aenum

Advanced Enumerations for Python
183 stars 14 forks source link

aenum 3.1.13 fails to import if sqlite3 does not exist #30

Closed JelleZijlstra closed 1 year ago

JelleZijlstra commented 1 year ago

On a build of Python that lacks the _sqlite extension module, aenum._enum.SqliteEnum does not exist but it is still in __all__, breaking import:

>>> import aenum
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/.pyenv/versions/3.9.13/lib/python3.9/site-packages/aenum/__init__.py", line 10, in <module>
    from ._enum import *
AttributeError: module 'aenum._enum' has no attribute 'SqliteEnum'
ethanfurman commented 1 year ago

Thanks. Fixed in 3.1.14.