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
ic| Error: Failed to access the underlying source code for analysis. #169
Comments
Works for me with python 3.11.6 on Windows. You could test if executing works first e.g. import inspect
import executing
def test(expr):
source = executing.Source.executing(inspect.currentframe().f_back)
print(source.text()) # should print `test(a + b)`
a = 3
b = 4
test(a + b) If it doesn't work then the problem is in executing, then you could debug the |
I think it might be an incompatibility with some library or so. In Python 3.10 and 3.12 the print is as expected, in my 3.11.6 the print is empty. |
Please close this issue if it is solved to prevent comment cluttering. TQ |
I had the same problem with a fresh venv and Python 3.11.7. I resolved it by replacing the complete /site-packages/executing folder by the most recent source distribution 2.0.1 |
This was already in the issues but nevertheless I face this currently.
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?
Windows 10, Python 3.11.6. On the same machine Python 3.10 and Python 3.12 work fine, but 3.11 not.
The text was updated successfully, but these errors were encountered: