Why am I getting this error message when I try to open Python? "Unexpected error ParseError:Invalid line at line "1"." [closed]

StackOverflow https://stackoverflow.com/questions/20199717

Question

How can I fix this. Python is currently unaccessible for me because of this error. Everytime that I click on my python icon to begin programming, the error message pops up, and it will not allow me to run the program.

Was it helpful?

Solution 2

Known error, fixed in upcoming Canopy 1.2. Sorry!

Meantime, manual fix:

Delete preferences.ini file (which is corrupted). This file is located at:

Windows:

%APPDATA%\Enthought\Canopy

OSX or Linux:

~/.canopy

OTHER TIPS

Here's a link to an Enthought Knowledge Base article re-iterating Jonathan March's solution:

https://support.enthought.com/entries/23097479-Restarting-Canopy-after-Unexpected-error-ParseError

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top