Bug 27457

Summary: No wx module in python2-wxpython4
Product: Mageia Reporter: Herbert Poetzl <herbert>
Component: RPM PackagesAssignee: QA Team <qa-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: andrewsfarm, herman.viaene, jani.valimaa, ouaurelien, sysadmin-bugs, tarazed25
Version: 7Keywords: advisory, validated_update
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA7-64-OK
Source RPM: python-wxpython4-4.0.4-1.mga7.src.rpm CVE:
Status comment:
Attachments: test fie

Description Herbert Poetzl 2020-10-21 03:19:22 CEST
Description of problem:
After installing python2-wxpython4 the python2 interpreter fails to import 'wx' 

Version-Release number of selected component (if applicable):
python-wxpython4-4.0.4-1

How reproducible:
always

Steps to Reproduce:
1. urpmi python2-wxpython4
2. python2 -c 'import wx'
3.

Note: the same steps for python3 work as expected and the wx module is available.
Comment 1 Jani Välimaa 2020-10-21 18:53:32 CEST
Python2 modules are installed into a path that isn't in PYTHONPATH. Pushed fixed python-wxpython4-4.0.4-1.1.mga7 to core/updates_testing. Please test.

SRPMS:
python-wxpython4-4.0.4-1.1.mga7

RPMS:
python2-wxpython4-4.0.4-1.1.mga7
python2-wxpython4-media-4.0.4-1.1.mga7
python2-wxpython4-webview-4.0.4-1.1.mga7
python3-wxpython4-4.0.4-1.1.mga7
python3-wxpython4-media-4.0.4-1.1.mga7
python3-wxpython4-webview-4.0.4-1.1.mga7
python-wxpython4-doc-4.0.4-1.1.mga7

Assignee: bugsquad => qa-bugs
CC: (none) => jani.valimaa

Comment 2 Herman Viaene 2020-10-23 11:02:07 CEST
MGA7-64 Plasma on Lenovo B50
No installation issues
No wiki, no previous updates, so googling for a  test case brings me https://www.techiediaries.com/python-gui-wxpython-tutorial-urllib-json/
Trying to do a minimum test I get to the second step and created a test file (will attach it)
Then running
$ strace -o wxpythontest.txt python wxpythontest.py

shows on item in the trace
writev(3, [{iov_base="\22\0\n\0\1\0@\t\"\0\0\0\37\0\0\0\10\0\n\0\20\0\0\0wxpython"..., iov_len=260}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 260

Thay's beyond my knowledge to judge whether this is a sufficient demo, otherwise OK on clean install as often with developer stuff???

CC: (none) => herman.viaene

Comment 3 Herman Viaene 2020-10-23 11:02:41 CEST
Created attachment 11954 [details]
test fie
Comment 4 Len Lawrence 2020-10-23 19:59:40 CEST
@Herman, comment 2.

Looks good.
You could also have run the 
$ python2 -c 'import wx'
command before and after the update.  It fails before updating and should be OK afterwards.  Have not got round to trying it here but you are good to go.

CC: (none) => tarazed25

Herman Viaene 2020-10-24 09:01:39 CEST

Whiteboard: (none) => MGA7-64-OK

Comment 5 Thomas Andrews 2020-10-24 16:08:17 CEST
Thanks, guys. Validating. Information for an advisory in Comment 1.

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

Comment 6 Aurelien Oudelet 2020-10-24 18:42:59 CEST
Below advisory pushed to SVN.

Advisory:
-------------------------------------------------------------------
Updated python-wxpython4 packages fix incorrect path


Python2 modules are installed into a path that isn't in PYTHONPATH.
The updated python-wxpython4 packages make sure that they are in
PYTHONPATH.

SRPMS:
python-wxpython4-4.0.4-1.1.mga7

RPMS:
python2-wxpython4-4.0.4-1.1.mga7
python2-wxpython4-media-4.0.4-1.1.mga7
python2-wxpython4-webview-4.0.4-1.1.mga7
python3-wxpython4-4.0.4-1.1.mga7
python3-wxpython4-media-4.0.4-1.1.mga7
python3-wxpython4-webview-4.0.4-1.1.mga7
python-wxpython4-doc-4.0.4-1.1.mga7

-------------------------------------------------------------------

CC: (none) => ouaurelien

Aurelien Oudelet 2020-10-24 18:43:09 CEST

Keywords: (none) => advisory

Comment 7 Mageia Robot 2020-10-24 19:53:01 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0219.html

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