Error when loading `spyder-line-profiler` with Spyder master
dalthviz opened this issue · 2 comments
dalthviz commented
Issue Report Checklist
Problem Description
Using latest master (8dc6d1828a) I'm unable to load the spyder-line-profiler
plugin
Paste Traceback/Error Below (if applicable)
File "C:\Users\dalth\anaconda3\envs\spyder-env-manager\lib\site-packages\spyder_line_profiler\spyder\plugin.py", line 29, in <module>
from spyder_line_profiler.spyder.confpage import SpyderLineProfilerConfigPage
File "C:\Users\dalth\anaconda3\envs\spyder-env-manager\lib\site-packages\spyder_line_profiler\spyder\confpage.py", line 19, in <module>
from .widgets import SpyderLineProfilerWidget
File "C:\Users\dalth\anaconda3\envs\spyder-env-manager\lib\site-packages\spyder_line_profiler\spyder\widgets.py", line 37, in <module>
from spyder.plugins.run.widgets import get_run_configuration
ImportError: cannot import name 'get_run_configuration' from 'spyder.plugins.run.widgets' (e:\acer\documentos\spyder\spyder\spyder\plugins\run\widgets.py)
Versions
- Spyder version: 6.0.0.dev0 8dc6d1828 (conda)
- Python version: 3.9.15 64-bit
- Qt version: 5.15.2
- PyQt5 version: 5.15.7
- Operating System: Windows 10
ccordoba12 commented
Hey @dalthviz, thanks for reporting. This error is caused by the new Run architecture implemented on PR spyder-ide/spyder#17467.
There are two things that need to be done to fix it:
- Add an upper limit to the Spyder version supported by Spyder-line-profiler (right now it requires
spyder >=5.2.0
here). - Adapt Spyder-line-profller to use the new Run architecture, so that it can work when Spyder 6 is released.
ccordoba12 commented
Since those things can't be addressed here, I'm going to move this issue to the Spyder-line-profiler repo.