Closed HugoGranstrom closed 2 years ago
Please make absolutely sure you're using latest nimpy (delete and reinstall). Otherwise I cannot reproduce this.
It seems like it was the pyInitLibPath("/home/hugo/miniconda3/lib/libpython3.9.so.1.0")
that was the trouble. I fixed the thing that required me to have it, and now it works :) So it was just some local problems I guess.
I tried running the hello world example:
I compiled it like this:
nim c --app:lib --out:mymodule.so --threads:on mymodule.nim
And the Python code:
But I'm getting this error when running the python file:
It somehow seems to be the
string
(seq
also fails, so feels like something with the GC) that's causing this, because if I change the function to this version with anint
instead, it works:I have tried compiling with
arc
as well, but the same error. Any idea why this is happening?Versions