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 api changend in version 3.0 #424

Open
MarcusZuber opened this issue Mar 15, 2019 · 3 comments
Open

Spyder api changend in version 3.0 #424

MarcusZuber opened this issue Mar 15, 2019 · 3 comments
Assignees

Comments

@MarcusZuber
Copy link
Member

The spyder api changed when reaching 3.0 which made it incompatible to the current spyder session implementation.

The spyderlib package was renamed to spyder and the structure was changed.

spyderlib.config seams to be now spyder.config.main
spydxerlib.app seams to be now spyder.app.mainwindow

@tfarago
Copy link
Contributor

tfarago commented Mar 20, 2019

Please test it with the update-for-spyder-3-api branch. For me it works for both spyder 2 & 3.

@MarcusZuber
Copy link
Member Author

I get this error (spyder version 3.2.6):

Traceback (most recent call last):
File "/usr/local/bin/concert", line 4, in
import('pkg_resources').run_script('concert==0.11.0.dev0', 'concert')
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 658, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1438, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/concert-0.11.0.dev0-py2.7.egg/EGG-INFO/scripts/concert", line 537, in
main()
File "/usr/local/lib/python2.7/dist-packages/concert-0.11.0.dev0-py2.7.egg/EGG-INFO/scripts/concert", line 533, in main
func(**vars(args))
File "/usr/local/lib/python2.7/dist-packages/concert-0.11.0.dev0-py2.7.egg/concert/ext/cmd/spyder_plugin.py", line 44, in run
spyder.run_spyder(app, Bunch(opts), [cs.path(session)])
File "/usr/lib/python2.7/dist-packages/spyder/app/mainwindow.py", line 3021, in run_spyder
main = MainWindow(options)
File "/usr/lib/python2.7/dist-packages/spyder/app/mainwindow.py", line 283, in init
self.open_project = options.open_project
AttributeError: 'Bunch' object has no attribute 'open_project'

@tfarago
Copy link
Contributor

tfarago commented Mar 25, 2019

Also when you delete build, concert.egg-info and dist directories before you re-install?

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

2 participants