icecream: ic Error: Failed to access the underlying source code for analysis.

My first try with icecream (Python 3.8)

ic| Error: Failed to access the underlying source code for analysis. Was ic() invoked in an interpreter (e.g. python -i), a frozen application (e.g. packaged with PyInstaller), or did the underlying source code change during execution?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 40 (3 by maintainers)

Most upvoted comments

1.0.0 is needed to fix a problem that often affects IPython users, hence this problem is bigger than icecream. I don’t know where to report the issue or how to construct a good report, I don’t use conda.

1.1.0 is needed for Python 3.11, hence the reports here.

2.0.1 is needed for Python 3.12.

Increasing the minimum version of executing here would be good, but it needs to be per Python version because 2.0.1 doesn’t support Python 2. A PR would be appreciated.

I would say not for a week+

I am terribly sorry, I really cant reproduce it now. It was my first try with ic so I assumed that this is regular behaviour.

Now, after few more tries, I see this package is stable. I cant reproduce the problem.