You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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:
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
The text was updated successfully, but these errors were encountered: