icecream
icecream copied to clipboard
icecream and python
Hello, just installed icecream and tested with this code:
from icecream import ic def foo(i): return i + 333 ic(foo(123))
I get this: 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?
when I remove ic(foo(123)) it runs
thanks Richard
ive tested the same code on my laptop, and it is running as intended, and showing the following output.
ic| foo(123): 456
Try to reinstall the icecream package and hope it works fine.