maurerle / eralchemy2

Entity Relation Diagrams generation tool - DEPRECATED
https://github.com/eralchemy/eralchemy
Apache License 2.0
70 stars 17 forks source link

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

Closed o-aleks closed 2 years ago

o-aleks commented 2 years 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 2 years 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 2 years ago

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

Regards.

maurerle commented 2 years 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 2 years ago

Thank you!!