icecream icon indicating copy to clipboard operation
icecream copied to clipboard

icecream and python

Open t57042 opened this issue 1 year ago • 1 comments

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

t57042 avatar Oct 22 '23 10:10 t57042

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.

Muhammad-Musab avatar Nov 15 '23 06:11 Muhammad-Musab