gruns / icecream

🍦 Never use print() to debug again.
MIT License
8.95k stars 184 forks source link

python3.11 #133

Open talentlb opened 1 year ago

talentlb commented 1 year ago

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?

alexmojaki commented 1 year ago
  1. How did you run the code?
  2. Do you have the latest version of executing?
talentlb commented 1 year ago

After I upgrade python 3.8 to python 3.11, the IC cannot be used The code has not changed

alexmojaki commented 1 year ago

Do you have the latest version of executing?

talentlb commented 1 year ago

icecream==2.1.3

alexmojaki commented 1 year ago

Do you have the latest version of executing?

talentlb commented 1 year ago

python3.11.0 icecream==2.1.3

image

alexmojaki commented 1 year ago

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?