maurerle / eralchemy2

Entity Relation Diagrams generation tool based on https://github.com/Alexis-benoist/eralchemy
Apache License 2.0
63 stars 15 forks source link

No module named 'importlib.metadata' for Python 3.7 #13

Closed o-aleks closed 1 year ago

o-aleks commented 1 year ago

Hello, There is an issue with Python 3.7 and eralchemy2:

  File ".....lib/site-packages/eralchemy2/main.py", line 22, in <module>
    from importlib.metadata import version
ModuleNotFoundError: No module named 'importlib.metadata'

Is it possible to use some modifications like this:

try:
    from importlib.metadata import version
except ImportError: # for Python<3.8
    from importlib_metadata import version

Thank you.

maurerle commented 1 year ago

This is already fixed on the main branch (https://github.com/maurerle/eralchemy2/commit/6f35f4a69a3d9de2aebf4a06ccd8e5b1bfd7ce17), but I did not release yet, sorry. Will do it today

o-aleks commented 1 year ago

Thank you, @maurerle! BTW is there some issue with releasing it?

Regards.

maurerle commented 1 year ago

Waited for the pipeline but forgot to push to pypi then.. I just did, so its available on pypi as 1.3.5.

o-aleks commented 1 year ago

Thank you!!