Bug 1095747 - python-wxPython missing libraries
python-wxPython missing libraries
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Petr Cervinka
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-06-04 09:08 UTC by Petr Cervinka
Modified: 2022-03-28 19:17 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cervinka 2018-06-04 09:08:25 UTC
Libraries are missing and wxPython doesn't work: 
$ python3
Python 3.6.5 (default, Mar 31 2018, 19:45:04) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.6/site-packages/wx/__init__.py", line 17, in <module>
    from wx.core import *
  File "/usr/lib64/python3.6/site-packages/wx/core.py", line 12, in <module>
    from ._core import *
ModuleNotFoundError: No module named 'wx._core'

$wxdemo
Traceback (most recent call last):
  File "/usr/bin/wxdemo", line 11, in <module>
    load_entry_point('wxPython==4.0.1', 'console_scripts', 'wxdemo')()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load
    return self.resolve()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib64/python3.6/site-packages/wx/__init__.py", line 17, in <module>
    from wx.core import *
  File "/usr/lib64/python3.6/site-packages/wx/core.py", line 12, in <module>
    from ._core import *
ModuleNotFoundError: No module named 'wx._core'

Libraries are excluded from main package in files section in spec file:
%exclude %{python_sitearch}/wx/*.so

And put into devel package:
%files %{python_files devel}
%defattr(-,root,root)
%{python_sitearch}/wx/*.so
Comment 1 Petr Cervinka 2018-06-28 20:52:37 UTC
Update with fix was released in TW.
Comment 4 OBSbugzilla Bot 2022-03-08 02:00:03 UTC
This is an autogenerated message for OBS integration:
This bug (1095747) was mentioned in
https://build.opensuse.org/request/show/960115 Backports:SLE-15-SP3 / python-wxPython
Comment 5 Swamp Workflow Management 2022-03-28 19:17:57 UTC
openSUSE-RU-2022:0092-1: An update that has two recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1095747,1194593
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    rsyslog-8.2106.0-4.16.1
openSUSE Backports SLE-15-SP3 (src):    python-wxPython-4.0.7.post2-bp153.2.1