Bug 28013 - spyder3 crashed on start (MGA8)
Summary: spyder3 crashed on start (MGA8)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-04 17:59 CET by Luděk Janča
Modified: 2022-02-16 07:03 CET (History)
3 users (show)

See Also:
Source RPM: spyder-3.3.6-2.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Luděk Janča 2021-01-04 17:59:40 CET
There is a problem with dependencies in Spyder which was installed via Mageia Welcome.

$ spyder3
Traceback (most recent call last):
  File "/usr/bin/spyder3", line 3, in <module>
    start.main()
  File "/usr/lib/python3.8/site-packages/spyder/app/start.py", line 178, in main
    from spyder.app import mainwindow
  File "/usr/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 49, in <module>
    requirements.check_spyder_kernels()
  File "/usr/lib/python3.8/site-packages/spyder/requirements.py", line 64, in check_spyder_kernels
    show_warning("Please check Spyder installation requirements:\n"
  File "/usr/lib/python3.8/site-packages/spyder/requirements.py", line 24, in show_warning
    raise RuntimeError(message)
RuntimeError: Please check Spyder installation requirements:
spyder-kernels < 1.0 is required (found 1.9.4).
Comment 1 Lewis Smith 2021-01-04 21:39:32 CET
Thank you for reporting this.
I was going to try it, but ... 162pkgs, 1/3Gb download, perhaps not!
FWIW
 $ urpmq --requires spyder
python(abi)[== 3.8]
python3-qt5
python3dist(cloudpickle)
python3dist(jedi)
python3dist(nbconvert)
python3dist(pep8)
python3dist(pickleshare)
python3dist(psutil)
python3dist(pycodestyle)
python3dist(pyflakes)
python3dist(pygments)
python3dist(pylint)
python3dist(pyzmq)
python3dist(qtawesome)
python3dist(qtconsole)
python3dist(qtpy)
python3dist(rope)
python3dist(sphinx)
python3dist(spyder-kernels)
 but the requires-recursive list is very long (694), including texlive.

Spyder has no evident maintainer, so assigning this globally.
CC'ing philippem (registered) and DavidG (committer version: 3.3.6).

Assignee: bugsquad => pkg-bugs
Source RPM: (none) => spyder-3.3.6-2.mga8.src.rpm
CC: (none) => geiger.david68210, makowski.mageia

Comment 2 Philippe Makowski 2021-01-05 15:26:48 CET
so we need to update spyder to 4.x
4.2.1 is the latest stable.
Comment 3 David GEIGER 2021-01-05 15:40:57 CET
And also python-spyder-kernels to latest 1.10.1.
Comment 4 David GEIGER 2021-01-06 17:29:13 CET
Please test from Core/Updates_testing repo spyder-4.2.1-1.mga8 and python-spyder-kernels-1.10.1-1.mga8.
Comment 5 Luděk Janča 2021-01-06 18:24:50 CET
[test@localhost ~]$ spyder
Traceback (most recent call last):
  File "/usr/bin/spyder", line 3, in <module>
    start.main()
  File "/usr/lib/python3.8/site-packages/spyder/app/start.py", line 209, in main
    from spyder.app import mainwindow
  File "/usr/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 67, in <module>
    import qdarkstyle
ModuleNotFoundError: No module named 'qdarkstyle'


[test@localhost ~]$ pip install qdarkstyle
Defaulting to user installation because normal site-packages is not writeable
Collecting qdarkstyle
  Using cached QDarkStyle-2.8.1-py2.py3-none-any.whl (217 kB)
Requirement already satisfied: helpdev>=0.6.10 in ./.local/lib/python3.8/site-packages (from qdarkstyle) (0.7.1)
Requirement already satisfied: qtpy>=1.9 in /usr/lib/python3.8/site-packages (from qdarkstyle) (1.9.0)
Installing collected packages: qdarkstyle
Successfully installed qdarkstyle-2.8.1


[test@localhost ~]$ spyder
Traceback (most recent call last):
  File "/usr/bin/spyder", line 3, in <module>
    start.main()
  File "/usr/lib/python3.8/site-packages/spyder/app/start.py", line 209, in main
    from spyder.app import mainwindow
  File "/usr/lib/python3.8/site-packages/spyder/app/mainwindow.py", line 67, in <module>
    import qdarkstyle
ModuleNotFoundError: No module named 'qdarkstyle'
Comment 6 David GEIGER 2021-01-06 19:47:24 CET
python3-qdarkstyle imported on Cauldron, please test next spyder update!
Comment 7 Luděk Janča 2021-01-07 06:08:10 CET
ModuleNotFoundError: No module named 'diff_match_patch'
Comment 8 David GEIGER 2021-01-07 14:26:11 CET
So ok next spyder-4.2.1-1.2.mga8 update should added all missing required dependencies, please test.
Comment 9 Luděk Janča 2021-01-07 17:45:25 CET
Nice. For now, it starts. Will be nice to add python3-keyring as dependecie too. 

But there is another message inside:

You have missing dependencies!


# Mandatory:
jedi =0.17.2 : 0.18.0 (NOK)
parso =0.7.0 : 0.8.1 (NOK)
pyls_spyder >=0.3.0 : 0.2.1 (NOK)
qtawesome >=0.5.7 : 0.5.6 (NOK)
qtconsole >=5.0.1 : 4.6.0 (NOK)

Please install them to avoid this message.

Note: Spyder could work without some of these dependencies, however to have a smooth experience when using Spyder we strongly recommend you to install all the listed missing dependencies.

Failing to install these dependencies might result in bugs. Please be sure that any found bugs are not the direct result of missing dependencies, prior to reporting a new issue.
Comment 10 David GEIGER 2021-01-07 18:13:39 CET
So just update pyls_spyder, qtawesome and qtconsole. Also added missing python3-keyring and python3-jsonschema.
Comment 11 Luděk Janča 2021-01-07 19:34:13 CET
Thanks, looks good
Comment 12 David GEIGER 2021-01-08 07:06:21 CET
Good good :)

So a freeze move is now requested to move packages to Core/Release repo!
Comment 13 David GEIGER 2021-01-08 21:02:10 CET
So closing this bug now as fixed!

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 14 Kenneth Marcy 2022-02-16 06:56:57 CET
I just installed Spyder from the Mageia Welcome app onto a fully updated Mageia 8. The first screen after clicking the Launch button contained a dialog box with Error: You have missing dependencies

#Mandatory
jedi  =0.17.2 : 0.18.0 (NOK)
parso =0.7.0 : 0.8.1 (NOK)

A following dialog box stated Spyder 5.2.2 is available, and suggested please go to _this page_ to download it. There was also a filled-in block box to check for updates at startup.

It is bad enough getting a missing dependencies message for a fresh install onto a new Mageia 8 installation on a freshly reformatted drive, but it is pretty snarky for messages to appear as if they come from developers outside of Mageia giving the impression that they have captured and taken over the Mageia Welcome application and software installation process.  Not cool at all.

CC: (none) => kmmos1

Comment 15 Kenneth Marcy 2022-02-16 07:03:39 CET
By the way, considering the current (14 Feb 2022) work being done with python in Mageia, I decided to wait a bit until that settles down before using Spyder.  However, I would like to check out, and maybe use, a newer Python IDE.

Note You need to log in before you can comment on or make changes to this bug.