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


Question: 

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.




2 Answers: 

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.

 

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

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.
 

More Articles


plone - How can I get rid of spam users

The company I work for have a small Plone blog. But we have a problem with spam accounts. We use captcha on the site and Plone sends a mail to the users that they must confirm before they can edit the user profile. Still about 600 spam users are created every day. In the Plone user profile they past

How do I access my website (IIS) from the internet?

I have installed IIS. I have browsed to my website on IIS using the 'Browse *:80 (http)' link in IIS. This navigates to http://localhost. That link is only going to work on my own machine.I don't care about my IP address changing (I'm going to show my website for a few hours max every now and the

Revert from Python 2.7 to Python 2.6 in Mac OSX 10.6.8 doesn't work even though I've uninstalled Python 2.7

I have mac OSX 10.6.8. My system came with Python 2.6I recently installed Python 2.7 but experienced many problems with it so decided to revert back to Python 2.6 by executing $ sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7I also removed Python 2.7 from my Applications folder. Still


scala - Should I use collectionAsScalaIterable({java collection}) or Seq({java collection}).flatten?

We're starting to use Scala Test to test our Java application, and I want to test the contents of a Java Collection. We came up with 2 possibilities:JavaConversions.collectionAsScalaIterable(getJavaCollection()) must contain(allOf(item1, item2).inOrder)orSeq(getJavaCollection()).flatten mustEqual Se

authentication - Sitecore - Prevent access to a page, but still show it in the navigation

In Sitecore I have denied access to a particular page for the anonymous user. This works correctly, but it also means that the page does not appear in the navigation menus and sitemap (both XSLT).What I would like is for the user to be able to see the link, but be redirected to a Register/Login page

How can I use a Java List with Scala's foreach?

This question already has an answer here: Iterating over Java collections in Scala 9 answers


mapreduce - Hadoop difficultie with composite key

I'm using Hadoop to analyze GSOD data (ftp://ftp.ncdc.noaa.gov/pub/data/gsod/).I chose 5 years to executed my experiments (2005 - 2009).I've configured a little cluster and executed a simple MapReduce program that gets the maximum temperature registered for a year.Now I have to create a new MR progr

php - Magento Ajax Shipping Calculation?

See http://www.gymandfitness.com.au, goto a general product and on the top left of the product info section theres a field where you enter your local POSTCODE and and it instantly gets the shipping cost without refreshing the page.Is there a good Magento Module that will do that?Or How would I go ab

dplyr - aggregate from weekly to monthly data frame for a grouped data in R

My df had different states associated with their cities of weekly data with value_1 and value_2 structure(list(city_id = c("FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS030", "FS

ios - Disable apps for iPhone 4s in apple store

I want my apps to be available for phones above 4s i-e iPhone 5,6 and iPad. How can i disable app store to make it available for iPhone 4s. It asks me to put iPhone 4s and the app is not made for its screens.