Open talentlb opened 1 year ago
executing
?After I upgrade python 3.8 to python 3.11, the IC cannot be used The code has not changed
Do you have the latest version of executing?
icecream==2.1.3
Do you have the latest version of executing?
python3.11.0 icecream==2.1.3
Sorry, it was kinda interesting to see how long your brain would autocorrect without you noticing, but I pushed it too far. I'm asking about your version of executing
, the library underlying icecream
, which only started supporting 3.11 recently.
Besides that, your screenshot is precisely in the REPL that the error message is asking about, so that won't work anyway. Hence my first question "How did you run the code?" What happens when you run a script?
ic| Error: Failed to access the underlying source code for analysis. Was ic() invoked in a REPL (e.g. from the command line), a frozen application (e.g. packaged with PyInstaller), or did the underlying source code change during execution?