barseghyanartur / transliterate

Bi-directional transliterator for Python. Transliterates (unicode) strings according to the rules specified in the language packs.
https://pypi.python.org/pypi/transliterate
296 stars 50 forks source link

The module doesn't work when built using pyinstaller #70

Open Vazgen005 opened 6 months ago

Vazgen005 commented 6 months ago

Traceback:

  File "transliterate\utils.py", line 75, in translit
  File "transliterate\utils.py", line 41, in ensure_autodiscover
  File "transliterate\discover.py", line 26, in autodiscover
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\vaz05\\AppData\\Local\\Temp\\_MEI249722\\transliterate\\contrib\\languages'
[27356] Failed to execute script '__main__' due to unhandled exception!
fgfalll commented 2 months ago

Easy way out is just copy transliterate folder from site-packages and place in _internal (that if you using one folder option)