Bug ID | 1095747 |
---|---|
Summary | python-wxPython missing libraries |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Other |
Assignee | bnc-team-screening@forge.provo.novell.com |
Reporter | petr@cervinka.net |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
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