I now tried the following. Python3 initializes a module by using the C function 
PyInit_{MODULE_NAME}, inside which I only initialize the Python3 stuff using 
the C Py_Initialize function like so: 
    
    
    # The imported Python3 initialization function
    proc initialize*(){.cdecl, importc: "Py_Initialize" dynlib: 
"libpython3.5m.so.1".}
    
    # The module's init function
    proc PyInit_nim_module() {.cdecl, exportc.} =
      {.emit: """NimMain();""".}
      initialize() # <--- ERROR
    

and already the error appears! I have no idea why? Is it maybe something that 
the **NimMain()** call does?

Reply via email to