After further testing and help from jasonrbriggs, I found out that the error
appears on all Debian Linux distributions. It works on Windows and Arch Linux,
but on Ubuntu MATE (ARM), Lubuntu (x86) and Raspbian (ARM) it doesn't. Tried
Python versions from 3.4 to 3.6, Nim was at the latest github version.
Even this simple example (already shown above) like this throws an error:
# The imported Python3 initialization function
proc initialize*(){.cdecl, importc: "Py_Initialize" dynlib:
"libpython3.YOUR_VERSIONm.so.1.0".}
# The module's init function
proc PyInit_nim_module() {.cdecl, exportc.} =
{.emit: """NimMain();""".}
initialize() # <--- ERROR
Anyone know how the Python 3 installaion Debian distributions differs from
other distributions or other OS'es?