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
Spyder Version: 2.2.1
Python Version: 2.7.3
Qt Version: 4.8.4, PyQt4 (API v2) 4.9.6 on Windows
What steps will reproduce the problem?
Make a workspace with many project
Close spyder.
Re-open spyder.
Some of the project in my workspace have disapeard. I found a log in one of my project, maybe relevant:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 2094, in main
mainwindow = run_spyder(app, options, args)
File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 1989, in run_spyder
main.setup()
File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 773, in setup
self.projectexplorer = ProjectExplorer(self)
File "C:\Python27\lib\site-packages\spyderlib\plugins\projectexplorer.py", line 36, in init
self.load_config()
File "C:\Python27\lib\site-packages\spyderlib\plugins\projectexplorer.py", line 136, in load_config
self.set_workspace(self.get_option('workspace', None))
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 1265, in set_workspace
self.treewidget.set_workspace(path)
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 669, in set_workspace
self.workspace.set_root_path(root_path)
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 277, in set_root_path
self.load()
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 306, in load
setattr(self, attr, data[attr])
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 256, in _set_project_paths
self.add_project(root_path)
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 381, in add_project
project.set_root_path(root_path)
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 85, in set_root_path
self.load()
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 124, in load
data = cPickle.loads(fdesc.read())
TypeError: ("'str' object is not callable", 'related_projects', ([], 'relative_pythonpath', [u'lib'], 'name', u'TestFramew'))
I have tried to check the .spyderworkspace and .spyderproject using IPython and pickle.
From antoine....@gmail.com on 2013-07-19T05:05:14Z
Spyder Version: 2.2.1
Python Version: 2.7.3
Qt Version: 4.8.4, PyQt4 (API v2) 4.9.6 on Windows
What steps will reproduce the problem?
Some of the project in my workspace have disapeard. I found a log in one of my project, maybe relevant:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 2094, in main
mainwindow = run_spyder(app, options, args)
File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 1989, in run_spyder
main.setup()
File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 773, in setup
self.projectexplorer = ProjectExplorer(self)
File "C:\Python27\lib\site-packages\spyderlib\plugins\projectexplorer.py", line 36, in init
self.load_config()
File "C:\Python27\lib\site-packages\spyderlib\plugins\projectexplorer.py", line 136, in load_config
self.set_workspace(self.get_option('workspace', None))
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 1265, in set_workspace
self.treewidget.set_workspace(path)
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 669, in set_workspace
self.workspace.set_root_path(root_path)
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 277, in set_root_path
self.load()
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 306, in load
setattr(self, attr, data[attr])
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 256, in _set_project_paths
self.add_project(root_path)
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 381, in add_project
project.set_root_path(root_path)
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 85, in set_root_path
self.load()
File "C:\Python27\lib\site-packages\spyderlib\widgets\projectexplorer.py", line 124, in load
data = cPickle.loads(fdesc.read())
TypeError: ("'str' object is not callable", 'related_projects', ([], 'relative_pythonpath', [u'lib'], 'name', u'TestFramew'))
I have tried to check the .spyderworkspace and .spyderproject using IPython and pickle.
In [6]: f = open('.spyderworkspace')
In [7]: pickle.load(f)
Out[7]:
{'name': u'spyder_workspace',
'project_paths': [u'DMS-RegresionTests',
u'signalDAQ',
u'LogLogger',
u'regExpert']}
and
In [13]: with open('.spyderproject') as f:
...: data = pickle.load(f)
...:
In [14]: data
Out[14]:
{'name': u'TestFramework',
'opened': True,
'related_projects': [],
'relative_pythonpath': [u'lib']}
This seems correct to me
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1489
The text was updated successfully, but these errors were encountered: