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

Error while shutting down Spyder #1528

Closed
spyder-bot opened this issue Feb 17, 2015 · 4 comments
Closed

Error while shutting down Spyder #1528

spyder-bot opened this issue Feb 17, 2015 · 4 comments

Comments

@spyder-bot
Copy link
Collaborator

From tak...@gmail.com on 2013-08-21T19:15:06Z

Running with Python 3.3 using bootstrap.py --debug, when I close Spyder using the regular window manager close button, an error like this is shown at the terminal:

Traceback (most recent call last):
File "/home/takluyver/Code/spyderlib/spyderlib/spyder.py", line 1401, in closeEvent
if self.closing(True):
File "/home/takluyver/Code/spyderlib/spyderlib/spyder.py", line 1423, in closing
self.save_current_window_settings(prefix)
File "/home/takluyver/Code/spyderlib/spyderlib/spyder.py", line 1180, in save_current_window_settings
CONF.set(section, prefix+'state', qbytearray_to_str(qba))
File "/home/takluyver/Code/spyderlib/spyderlib/py3compat.py", line 240, in qbytearray_to_str
return str(bytes(qba.toHex()).decode())
TypeError: 'bytes' object cannot be interpreted as an integer
Error in atexit._run_exitfuncs:
TypeError: 'bytes' object cannot be interpreted as an integer
QThread: Destroyed while thread is still running
QProcess: Destroyed while process is still running.
Segmentation fault

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1528

@spyder-bot
Copy link
Collaborator Author

From tak...@gmail.com on 2013-08-21T17:22:54Z

This appears to be a difference between PySide and PyQt4. With a PySide QByteArray, calling bytes() on it fails with the error above. Changing the last line of the traceback to this appears to fix it:

return str(bytes(qba.toHex().data()).decode())

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2013-08-28T10:38:28Z

Thanks Thomas, I'll take a look at it.

Status: Accepted
Labels: Component-PySide Cat-SpyderGUI MS-v2.3

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2013-09-15T18:53:23Z

This issue was updated by revision a9955db66df5 .

  • Thanks to Thomas Kluyver for the patch

Status: Fixed

@spyder-bot
Copy link
Collaborator Author

From tak...@gmail.com on 2013-09-16T11:24:23Z

Thanks Carlos.

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

1 participant