Bug 1163198

Summary: spyder3 missing dependency spyder3-lang
Product: [openSUSE] openSUSE Tumbleweed Reporter: Giacomo Comes <comes>
Component: OtherAssignee: Sebastian Wagner <sebix+novell.com>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: alynx.zhou, code, sebix+novell.com
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
See Also: https://bugzilla.suse.com/show_bug.cgi?id=1204931
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Giacomo Comes 2020-02-08 19:14:38 UTC
I have installed spyder3. When I start it I get the error:

Traceback (most recent call last):
  File "/usr/bin/spyder3", line 2, in <module>
    from spyder.app import start
  File "/usr/lib/python3.7/site-packages/spyder/app/start.py", line 25, in <module>
    from spyder.config.base import (get_conf_path, running_in_mac_app,
  File "/usr/lib/python3.7/site-packages/spyder/config/base.py", line 424, in <module>
    _ = get_translation("spyder")
  File "/usr/lib/python3.7/site-packages/spyder/config/base.py", line 395, in get_translation
    language = load_lang_conf()
  File "/usr/lib/python3.7/site-packages/spyder/config/base.py", line 368, in load_lang_conf
    lang = get_interface_language()
  File "/usr/lib/python3.7/site-packages/spyder/config/base.py", line 333, in get_interface_language
    spyder_languages = get_available_translations()
  File "/usr/lib/python3.7/site-packages/spyder/config/base.py", line 288, in get_available_translations
    listdir = os.listdir(locale_path)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.7/site-packages/spyder/locale'

Once I install spyder3-lang spyder will start without error.
This problem can be fixed adding:
  Requires:       %{name}-lang
in the spec file.
Comment 1 Giacomo Comes 2020-02-16 16:05:39 UTC
The new spyder3-4.0.1 still has the spyder3-lang dependency missing.
But I have found also the following issue:
if I install spyder3 with the command:
  zypper in --no-recommends spyder3
spyder3 does not start because three packages are missing:
  spyder3-breakpoints, spyder3-profiler and spyder3-pylint
In the spec file they are recommended, but instead they should be required.

Once spyder3 starts, is shows a popup window complaining about python3-jedi. The installed version is 0.16.0 but spyder3 wants 0.14.1.
Comment 2 Sebastian Wagner 2020-02-18 19:56:26 UTC
If you add me as assignee I can react more quickly :)

(In reply to Giacomo Comes from comment #0)
> Once I install spyder3-lang spyder will start without error.
> This problem can be fixed adding:
>   Requires:       %{name}-lang
> in the spec file.

(In reply to Giacomo Comes from comment #1)
> But I have found also the following issue:
> if I install spyder3 with the command:
>   zypper in --no-recommends spyder3
> spyder3 does not start because three packages are missing:
>   spyder3-breakpoints, spyder3-profiler and spyder3-pylint
> In the spec file they are recommended, but instead they should be required.

Thanks for your report. I adapted the specfile with your suggestions.

> Once spyder3 starts, is shows a popup window complaining about python3-jedi.
> The installed version is 0.16.0 but spyder3 wants 0.14.1.
That's something I can't change :/
Comment 3 Benjamin Greiner 2020-03-23 16:38:23 UTC
fixed a few weeks ago