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

Spyder crashes at startup because of errors when importing Sympy #3738

Closed
TheTinka opened this issue Nov 24, 2016 · 14 comments
Closed

Spyder crashes at startup because of errors when importing Sympy #3738

TheTinka opened this issue Nov 24, 2016 · 14 comments

Comments

@TheTinka
Copy link

Hello everybody,
If I'm trying to start Spyder it always crashes and shows the attached error. It worked fine for weeks, I have no idea what it is about.
I did the reset and deleted the spyder.lock and updated spyder.
Could you please help?

Versions and main components

  • Spyder Version: 3.0.2
  • Python Version: 3.5.2
  • Operating system: Windows 7

Thanks in advance
Tinka
spyder

@Tuzi12
Copy link

Tuzi12 commented Nov 24, 2016

I have got the same error here after upgrading to spyder3, the crash-log is as below:

Traceback (most recent call last):
File "c:\python27\lib\site-packages\spyder\app\mainwindow.py", line 3001, in main
mainwindow = run_spyder(app, options, args)
File "c:\python27\lib\site-packages\spyder\app\mainwindow.py", line 2905, in run_spyder
main.setup()
File "c:\python27\lib\site-packages\spyder\app\mainwindow.py", line 1010, in setup
from xy.config import DOC_PATH as xy_doc_path
File "c:\python27\lib\site-packages\xy\config.py", line 40, in
CONF = UserConfig('xy', defaults=DEFAULTS, version=version, subfolder='.xy')
File "c:\python27\lib\site-packages\xy\userconfig.py", line 110, in init
if version != self.get_version(version):
File "c:\python27\lib\site-packages\xy\userconfig.py", line 130, in get_version
return self.get(self.DEFAULT_SECTION_NAME, 'version', version)
File "c:\python27\lib\site-packages\xy\userconfig.py", line 269, in get
value = cp.ConfigParser.get(self, section, option, raw=self.raw)
File "c:\python27\lib\site-packages\backports\configparser_init_.py", line 811, in get
d)
File "c:\python27\lib\site-packages\backports\configparser_init_.py", line 384, in before_get
self.interpolate_some(parser, option, L, value, section, defaults, 1)
File "c:\python27\lib\site-packages\backports\configparser_init.py", line 397, in _interpolate_some
rawval = parser.get(section, option, raw=True, fallback=rest)
TypeError: get() got an unexpected keyword argument 'raw'

I searched around for a fix, but had no luck :(

@ccordoba12
Copy link
Member

@Tuzi12, as you reported in Anaconda issues, this is an issue with PythonXY and not with Spyder itself. Since PythonXY seems unmaintained, we recommend you to use WinPython or Anaconda.

@TheTinka, please open a terminal (i.e. cmd.exe), run this command

spyder --reset

and report the error is printed there.

@Tuzi12
Copy link

Tuzi12 commented Nov 24, 2016

@ccordoba12 Thanks for your reply and closed the other thread I opened.

But do I need to install WinPython or Anaconda first for spyder to work again?

@ccordoba12
Copy link
Member

You need to uninstall PythonXY and install either WinPython or Anaconda. Both are Python scientific distributions, meaning that they come with Python and a lot of other scientific libraries and applications (including Spyder and all its dependencies).

WinPython is more similar to PythonXY than Anaconda, although is more focused on Python 3 than 2.

@Tuzi12
Copy link

Tuzi12 commented Nov 24, 2016

@ccordoba12 Thank you for the suggestion.

One more thing, if I uninstall PythonXY, will the Python27 comes with it uninstall as well? Since I have got some py files written in Python2, I want to make sure that I can run these files without much changes to make.

@TheTinka
Copy link
Author

When I did the reset there is no error-message. Then Spyder is starting and shows the message from below.

@ccordoba12
Copy link
Member

@TheTinka, there has to be some error in the terminal where you started Spyder, else that window wouldn't appear.

@Tuzi12, then you need to install Anaconda because it has very good support for Python 2 and 3.

@TheTinka
Copy link
Author

Some hint what kind of error? I am using Anaconda and installed spyder that way to.

@TheTinka
Copy link
Author

The reset is looking like:
spyder

@ccordoba12
Copy link
Member

So sorry, my bad. The command is

spyder --show-console

@TheTinka
Copy link
Author

spyder

@ccordoba12
Copy link
Member

ccordoba12 commented Nov 24, 2016 via email

@TheTinka
Copy link
Author

You definitly saved my week. It works fine.
Thanks a lot.

@ccordoba12
Copy link
Member

Great!

@ccordoba12 ccordoba12 reopened this Nov 24, 2016
@ccordoba12 ccordoba12 changed the title Spyder only flashes but doesn't start Spyder crashes at startup because of errors when importing Sympy Nov 24, 2016
@ccordoba12 ccordoba12 added this to the v3.1 milestone Nov 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants