Skip to content
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

catch a reason to crash on startup #2233

Merged
merged 1 commit into from
Mar 11, 2015
Merged

catch a reason to crash on startup #2233

merged 1 commit into from
Mar 11, 2015

Conversation

RafiKueng
Copy link

Added catch of AttributeError caused by try to read old format on loading .spyderproject files when actually is loading new format project file.

fixes #1845

@ccordoba12 ccordoba12 added this to the v2.3.4 milestone Mar 11, 2015
@ccordoba12
Copy link
Member

Thanks a lot for your PR. Seems simple enough, so I'm merging it :-)

ccordoba12 added a commit that referenced this pull request Mar 11, 2015
Avoid a crash on startup related to the Project Explorer
@ccordoba12 ccordoba12 merged commit e65581a into spyder-ide:master Mar 11, 2015
@RafiKueng
Copy link
Author

well, to be honest, I just applied the patch someone else posted on the google code site.
I didn't find out where the bug comes from, but the patch does allow a clean startup and the affected projects now load up just fine.
I think it was an issue that a new style .spyderproject file gets loaded using the old way (open(fname, 'U') instead of open(, 'rb'), but I couldn't confirm it, mostly because of lacking knowledge of the code and time to invest..
But if the comments in the code are not missleading, then this should be a proper fix to the problem.

@ccordoba12
Copy link
Member

@RafiKueng, thanks for looking into it :-)

@RafiKueng RafiKueng deleted the patch1845 branch March 11, 2015 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spyder crashes on launch trying to load the project config file (.spyderproject)
2 participants