Bug 25006 - Openshot fails to start, but starts after installing python3-setuptools
Summary: Openshot fails to start, but starts after installing python3-setuptools
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7TOO MGA7-32-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2019-06-26 10:00 CEST by Sébastien Morin
Modified: 2019-07-10 12:45 CEST (History)
5 users (show)

See Also:
Source RPM: openshot-qt-2.4.4-1.mga7
CVE:
Status comment:


Attachments

Description Sébastien Morin 2019-06-26 10:00:40 CEST
Description of problem:

OpenShot does not start when the launched from the menu.
It doesn't start either from CLI and the error message is:

$ openshot-qt 
Traceback (most recent call last):
  File "/usr/bin/openshot-qt", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

1. Install Mageia7 (from the currently tested Mageia-7-Live-Plasma-x86_64.iso)
2. Run updates (urpmi --auto-update)
3. Install openshot (urpmi openshot)
4. Try to run openshot
Comment 1 Jybz 2019-06-26 10:22:12 CEST
I found some package containing a a file with the name of the module 
(urpmf pkg_resources)
list of packages:
  editra
  wxPython
  python2-pip
  python3-astroid
  python2-pkg-resources
  python3-pkg-resources
  python2-setuptools
  python3-setuptools
  python3-mypy

I looked which one is installed on my computer :
  python2-pip-19.0.3-1.mga7
  python3-setuptools-41.0.0-1.mga7
  python2-pkg-resources-41.0.0-1.mga7
  python3-pkg-resources-41.0.0-1.mga7
  python2-setuptools-41.0.0-1.mga7

I installed openshot-qt, it has some python dep :
  python2-reportlab              3.5.19       1.mga7        x86_64  (recommandé)
  python3-audaspace              1.3.0        18.mga7       x86_64  (recommandé)
  python3-libopenshot            2.4.4        2.mga7        x86_64  
  python3-pillow                 5.4.1        1.mga7        x86_64  
  python3-pyxdg                  0.26         4.mga7        noarch  
  python3-pyzmq                  17.0.0       4.mga7        x86_64  

It start well here. I could read this line :
      launch:INFO ------------------------------------------------
      launch:INFO    OpenShot (version 2.4.4)
      launch:INFO ------------------------------------------------
         app:INFO openshot-qt version: 2.4.4
         app:INFO libopenshot version: 0.2.3
         app:INFO platform: Linux-5.1.11-desktop-1.mga7-x86_64-with-mageia-7-Official
         app:INFO processor: x86_64
         app:INFO machine: x86_64
         app:INFO python version: 3.7.3

and note python 3 is used.

Can you give us the result of this command ?
rpm -qa | grep -i -e "editra" -e "wxPython" -e "python2-pip" -e "python3-astroid" -e "python2-pkg-resources" -e "python3-pkg-resources" -e "python2-setuptools" -e "python3-setuptools" -e "python3-mypy"

CC: (none) => j.biernacki

Comment 2 Jybz 2019-06-26 10:32:23 CEST
it seems that python3 pkg-resources and setuptools is not in the dependencies list of openshot-qt :

[jibz@jabztop ~]$ urpmq --requires-recursive openshot-qt | grep python
lib64python2.7
lib64python2.7-stdlib
lib64python3.7
lib64python3.7-stdlib
python
python-pip-wheel
python-rpm-macros
python-setuptools-wheel
python2-lxml
python2-olefile
python2-pillow
python2-pip
python2-pkg-resources
python2-reportlab
python2-rpm-macros
python2-setuptools
python3
python3-audaspace
python3-cairo
python3-chardet
python3-dbus
python3-gobject3
python3-httplib2
python3-idna
python3-libopenshot
python3-numpy
python3-pillow
python3-pyqt5-sip
python3-pyxdg
python3-pyzmq
python3-qt5-core
python3-qt5-gui
python3-qt5-multimedia
python3-qt5-network
python3-qt5-opengl
python3-qt5-printsupport
python3-qt5-svg
python3-qt5-webkit
python3-qt5-webkitwidgets
python3-qt5-widgets
python3-requests
python3-rpm-macros
python3-six
python3-urllib3
Comment 3 Sébastien Morin 2019-06-26 19:05:37 CEST
(In reply to Jybz from comment #1)
> Can you give us the result of this command ?
> rpm -qa | grep -i -e "editra" -e "wxPython" -e "python2-pip" -e
> "python3-astroid" -e "python2-pkg-resources" -e "python3-pkg-resources" -e
> "python2-setuptools" -e "python3-setuptools" -e "python3-mypy"

$ rpm -qa | grep -i -e "editra" -e "wxPython" -e "python2-pip" -e "python3-astroid" -e "python2-pkg-resources" -e "python3-pkg-resources" -e "python2-setuptools" -e "python3-setuptools" -e "python3-mypy"
python2-setuptools-41.0.0-1.mga7
python2-pip-19.0.3-1.mga7
python2-pkg-resources-41.0.0-1.mga7
Comment 4 Sébastien Morin 2019-06-26 19:13:22 CEST
It seems python3-setuptools needs to be installed, then Openshot starts both from the menu and in CLI.
Comment 5 Marja Van Waes 2019-06-26 19:13:57 CEST
Assigning to our registered openshot-qt maintainer.

Assignee: bugsquad => geiger.david68210
CC: (none) => marja11

Marja Van Waes 2019-06-26 19:14:28 CEST

Summary: Openshot fails to start => Openshot fails to start, but starts after installing python3-setuptools

Comment 6 David GEIGER 2019-06-27 07:24:52 CEST
Done with openshot-qt-2.4.4-2.mga7 in Cauldron/Core/Updates_testing repo!
Comment 7 Manuel Hiebel 2019-06-30 21:47:43 CEST
the rpm was removed from the repo, it needs to be rebuild

Whiteboard: (none) => mga7too

Comment 8 Sébastien Morin 2019-07-01 19:46:11 CEST
I've just tested the new openshot-qt-2.4.4-1.1.mga7 package from core/updates_testing and now Openshot works fine.
Closing as fixed.
Thank you very much!

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

Comment 9 David GEIGER 2019-07-01 21:10:51 CEST
Assigning to QA now,


Advisory:
========================

There's a missing required dependency on the openshot-qt package from Mageia 7.
If no other packages pulling 'python3-pkg-resources' are installed on the computer, openshot-qt can't start. This update adds this missing dependency.

========================

Packages in 7/core/updates_testing:
========================
openshot-qt-2.4.4-1.1.mga7.noarch.rpm

Source RPM: 
========================
openshot-qt-2.4.4-1.1.mga7.src.rpm


How to test this update request:
========================
- Install a system and make sure you don't have 'python3-pkg-resources' installed.
- Install 'openshot-qt' from core/release and see if you can open it,
  normally you can't.

- Install now 'openshot-qt' from core/updates_testing and check if it will install 'python3-pkg-resources' and if now you can open and use it.

Assignee: geiger.david68210 => qa-bugs
Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

David GEIGER 2019-07-01 21:11:13 CEST

CC: (none) => geiger.david68210
Version: Cauldron => 7

Comment 10 Herman Viaene 2019-07-08 13:09:13 CEST
MGA7-32 MATE on IBM Thinkpad R50e
No installation issues.
I had to remove python3-pkg-resources because this comes with pitivi which was included in the default MATE installation.
Thereafter I confirm the procedure as described in Comment 9, so OK for me.

CC: (none) => herman.viaene
Whiteboard: mga7too => MGA7TOO MGA7-32-OK

Comment 11 Rémi Verschelde 2019-07-10 11:34:50 CEST
Advisory uploaded, validating.

Keywords: (none) => advisory, validated_update
CC: (none) => sysadmin-bugs

Comment 12 Mageia Robot 2019-07-10 12:45:31 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2019-0052.html

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


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