giggls / osml10n

Localization functions for Openstreetmap
https://tile.openstreetmap.de
GNU General Public License v3.0
14 stars 7 forks source link

Error when make tests is used #34

Closed mxdog closed 6 months ago

mxdog commented 6 months ago

your readme asked for an issue when make tests is giving errors . i had a few problems getting this set up at all on Debian bookworm. files not going to right places, requires not installed, etc .. sorry didn't doc it .. any way I have the server running with .. ./geo-transcript-srv.py -p 8033 -b 127.0.0.1 .. the actual service still needs tweeked to work because will not start with default options i.e 8033 and localhost . "error cannot bind to port 8033"

back to the subject : I run the command /temp/osml10n# make test cd lua_osml10/tests/ && ./runtests.lua /usr/bin/lua: error loading module 'osml10n.get_localized_name_from_tags' from file './osml10n/get_localized_name_from_tags.lua': ./osml10n/get_localized_name_from_tags.lua:193: too many C levels (limit is 200) in function at line 80 near 'tags' stack traceback: [C]: in ? [C]: in function 'require' /usr/local/share/lua/5.2/unaccent/init.lua:4: in function 'import' /usr/local/share/lua/5.2/unaccent/init.lua:14: in main chunk [C]: in function 'require' ./osml10n/get_localized_name_from_tags.lua:1: in main chunk [C]: in function 'require' /usr/local/share/lua/5.2/unaccent/init.lua:4: in function 'import' /usr/local/share/lua/5.2/unaccent/init.lua:14: in main chunk [C]: in function 'require' ... /usr/local/share/lua/5.2/unaccent/init.lua:14: in main chunk [C]: in function 'require' ./osml10n/get_localized_name_from_tags.lua:1: in main chunk [C]: in function 'require' ./osml10n/init.lua:4: in function 'import' ./osml10n/init.lua:14: in main chunk [C]: in function 'require' ./osml10n.lua:1: in main chunk [C]: in function 'require' ./runtests.lua:6: in main chunk [C]: in ? make: *** [Makefile:28: test] Error 1

it looks like circular reference error to me but i haven't dug into it yet . A note ** I am not sure I have all the files copied to the correct places on this system before i moved unaccent.lua to one of the error places i got a bunch of files not found errors .. also not sure if all the needed files for tests are in the build directories .. or if the test calls from system file locations.

this is the error before that ... /usr/bin/lua: ./osml10n/get_localized_name_from_tags.lua:1: module 'unaccent' not found: no field package.preload['unaccent'] no file '/usr/local/share/lua/5.2/unaccent.lua' no file '/usr/local/share/lua/5.2/unaccent/init.lua' no file '/usr/local/lib/lua/5.2/unaccent.lua' no file '/usr/local/lib/lua/5.2/unaccent/init.lua' no file '/usr/share/lua/5.2/unaccent.lua' no file '/usr/share/lua/5.2/unaccent/init.lua' no file './unaccent.lua' no file '/usr/local/lib/lua/5.2/unaccent.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.2/unaccent.so' no file '/usr/lib/lua/5.2/unaccent.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './unaccent.so'

and before that there where a lot more files not found which unfortunately i do not have the error list from .. so make install isn't getting it done and neither is the deb packages it seems ... at least on this system ...

mxdog commented 6 months ago

I am so sorry ... I just re-read the INSTALL.md and must have totally missed the line This code will not work with lua versions below 5.3!

lua 5.3 has a bug that when installed it does not update the default compiler link(s) on Debian .. i manually updated from 5.2 to 5.3 and make tests ran without a problem ... again sorry for the bad report ...