kbatsuren / wiktra

Wiktra - Python tool of Wiktionary Transliteration modules for 514 languages and its 102 different scripts (orthographies)
GNU General Public License v2.0
27 stars 5 forks source link

missing file wikt.mw #1

Closed drumilT closed 3 years ago

drumilT commented 3 years ago

lupa._lupa.LuaError: [string ""]:1: module 'wikt.mw' not found: is raised when trying to import translite

kbatsuren commented 3 years ago

I am sorry for the terribly late reply. I will look into this issue as soon as possible.

kbatsuren commented 3 years ago

I suppose the pull request fixes this issue? :)

drumilT commented 3 years ago

Hi, thanks for the reply, no the pull request wont fix this

kbatsuren commented 3 years ago

The file is actually not missing, but I must agree that I tested only the code from the command line, and it worked. This issue raises in all other environments—e.g., in the python notebook. This issue happens due to the Lua environment path parameters (Simply the tool couldn't locate where the file is). I will fix it asap.

kbatsuren commented 3 years ago

Please let me know if it solves your problem.

In Windows you can see similar error: image

Here all you need to do is two things. 1) create a folder 'lua' in 'C:\ProgramData\Miniconda3\' 2) copy the entire folder of wikt from this project and paste it into 'C:\ProgramData\Miniconda3\lua'

If you are using Linux or macOS, please send me the full lines of the error. Usually, the main directory is '/usr/local', and here you can create a folder 'lua/5.3/'. And the second step is the same.

I do apologize that it is an ugly fix. I will fix it properly but it takes time.

kbatsuren commented 3 years ago

@aryamccarthy Hi Arya,

Please let me know if you can use WikTra with this solution.