techouse / mysql-to-sqlite3

Transfer data from MySQL to SQLite
https://techouse.github.io/mysql-to-sqlite3/
MIT License
222 stars 31 forks source link

AttributeError: module 'slugify' has no attribute '__version__' #24

Closed leonidumanskiy closed 2 years ago

leonidumanskiy commented 2 years ago

Describe the bug mysql-to-sqlite3 does not work anymore since python-slugify update to 6.0.0 yesterday that removed __version__ from __init__.py

Expected behaviour Running mysql2sqlite should succeed with no errors

Actual result Running mysql2sqlite throws an exception:

mysql2sqlite --version
Traceback (most recent call last):
  File "c:\users\username\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\username\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\Scripts\mysql2sqlite.exe\__main__.py", line 4, in <module>
  File "c:\users\username\appdata\local\programs\python\python39\lib\site-packages\mysql_to_sqlite3\cli.py", line 116, in <module>
    message=tabulate(info(), headers=["software", "version"], tablefmt="github")
  File "c:\users\username\appdata\local\programs\python\python39\lib\site-packages\mysql_to_sqlite3\debug_info.py", line 97, in info
    ["python-slugify", slugify.__version__],
AttributeError: module 'slugify' has no attribute '__version__'

System Information

$ mysql2sqlite --version
mysql2sqlite --version
Traceback (most recent call last):
  File "c:\users\username\appdata\local\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\username\appdata\local\programs\python\python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\Scripts\mysql2sqlite.exe\__main__.py", line 4, in <module>
  File "c:\users\username\appdata\local\programs\python\python39\lib\site-packages\mysql_to_sqlite3\cli.py", line 116, in <module>
    message=tabulate(info(), headers=["software", "version"], tablefmt="github")
  File "c:\users\username\appdata\local\programs\python\python39\lib\site-packages\mysql_to_sqlite3\debug_info.py", line 97, in info
    ["python-slugify", slugify.__version__],
AttributeError: module 'slugify' has no attribute '__version__'
techouse commented 2 years ago

Thanx for the bug report!