Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icecream and python #159

Open
t57042 opened this issue Oct 22, 2023 · 1 comment
Open

icecream and python #159

t57042 opened this issue Oct 22, 2023 · 1 comment

Comments

@t57042
Copy link

t57042 commented Oct 22, 2023

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

@Muhammad-Musab
Copy link

Muhammad-Musab commented Nov 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants