leontx
leontx

Reputation: 1195

pydev debugger: CRITICAL WARNING: This version of python seems to be incorrectly compiled

I can't figure out how to fix this PyCharm warning. I started getting it after I migrated my account to a new Mac. (I also just updated PyCharm.)

Another symptom is the PyCharm editor is complaining about references to methods on commands like "logging.info()". Even though when I run my app, it seems to run fine.

And... I'm also getting PyCharm failed to generate skeletons. I did unload and reload the 2.5 interpreter and still getting the same.

Thanks.

Upvotes: 6

Views: 15430

Answers (3)

John
John

Reputation: 6648

I just found this error coming from PyCharm Pro, 2021.1. It was in the python console tab, only.

I was using python 3.11 and it was just too new, though worked fine with both run and debug configurations.

I changed my virtual environment to one using 3.10.

The python console works now. The run/debug configurations took persuasion to update. I ended up recreating those too.

Upvotes: 5

leontx
leontx

Reputation: 1195

Re-cloning my entire repository to a fresh location, and then re-installing Google app engine caused this error to go away. Also note, I tried reinstalling OSX first to get a fresh copy of the Python interpreters, although by itself, that didn't seem to affect it.

EDIT

Ran into the same problem when switching to 2.7 and the conclusive fix, as I found here

https://stackoverflow.com/a/11753554/497357

was to install Apple's Command Line Tools (which seems to install the Python interpreter source that has evidently been removed from the standard Mountain Lion install). I installed from within Xcode at

Xcode>Preferences>Downloads pane>Install.

Upvotes: 1

Dmitry Trofimov
Dmitry Trofimov

Reputation: 7601

That can be caused by corrupted .pyc files. See http://bugs.python.org/issue1180193 for details.

You can try to remove all .pyc files from your project and reinstall your Python.

Upvotes: 3

Related Questions