yglukhov / nimpy

Nim - Python bridge
MIT License
1.48k stars 60 forks source link

Error: type mismatch: nimpy.nim(223, 37) #290

Closed inv2004 closed 1 year ago

inv2004 commented 1 year ago
👑 INim 0.6.1
Nim Compiler Version 2.0.0 [Linux: amd64] at /home/u/.nimble/bin/nim
nim> import nimpy
/home/u/.nimble/pkgs/nimpy-#c9757f3c49523e2503fa0ed4be35e91cf1e76d22/nimpy.nim(223, 37) Error: type mismatch: got <string, PPyObject, typeof(nil)>
but expected one of:
proc (name: cstring, base: PPyObject, dict: PPyObject): PPyObject{.cdecl, gcsafe.}
inv2004 commented 1 year ago

Looks like some versions mess: rm -rf ~/.nimble/pkg/* and rm -rf ~/.nimble/pkg2/* helped. I cannot understand why nim2 referred to .nimble/pkgs