You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code compiles; but when I type invalid python in repl, this happens:
...
/home/user/Documents/Nim/repl.nim(82) repl (It's the `echo $output` line)
/home/user/.nimble/pkgs/nimpy-0.2.0/nimpy.nim(435) $
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
Why it is happening? And how can I fix it?
Also, I wanted to be able to catch different python exceptions like I was doing it in Python, but nimpy only raise one type of Exception for all cases, is there anything I can do about it?
The text was updated successfully, but these errors were encountered:
M-MAD-Official
changed the title
SIGSEGV: Illegal storage access error when trying to echo py.exec("invalid python")SIGSEGV: Illegal storage access error when trying to echo py.exec("invalid python")Apr 11, 2022
I think I figured it out; I needed to assign output to py.None when initializing.
But I think it is necessary to do something in nimpy so we won't need to initialize PyObject variables.
And I still could not figure out how to catch different Python Exceptions
This code compiles; but when I type invalid python in repl, this happens:
Why it is happening? And how can I fix it?
Also, I wanted to be able to catch different python exceptions like I was doing it in Python, but nimpy only raise one type of Exception for all cases, is there anything I can do about it?
The text was updated successfully, but these errors were encountered: