Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213819 - dev-python/wxpython slotting changes break wxaddons module
Summary: dev-python/wxpython slotting changes break wxaddons module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-18 12:20 UTC by Vaclav Slavik
Modified: 2008-03-21 01:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vaclav Slavik 2008-03-18 12:20:36 UTC
Gentoo's changes to add version number to various wxWidgets-related files once again break things: this time, wxPython's "wxaddons" module is completely broken -- it is renamed to wxaddons-2.6 or wxaddons-2.8 (which isn't even a valid Python module name!) by the ebuilds, but alternatives_auto_makesym is *not* used to manage it. Obviously, this means "import wxaddons" now fails on Gentoo.

Reproducible: Always

Actual Results:  
$ python -c 'import wx ; import wxaddons'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named wxaddons
$


Expected Results:  
$ python -c 'import wx ; import wxaddons'
$
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2008-03-18 13:27:56 UTC
i'm starting to wonder how on earth different wxpython versions are meant to be installed on the same machine if half the files overwrite one another. :P

will alternatives_auto_makesym work in this case?  ie.  will "python -c 'import wxversion; wxversion.select("2.6"); import wx; import wxaddons'" work when wxaddons is symlinked to wxaddons-2.8?
Comment 2 Vaclav Slavik 2008-03-18 16:31:12 UTC
(In reply to comment #1)
> i'm starting to wonder how on earth different wxpython versions are meant to 
> be installed on the same machine if half the files overwrite one another. :P

Well, there's no reason to use any other wxversion than the latest one, for example...

> will alternatives_auto_makesym work in this case? 

It looks like 2.8's version is strict superset of 2.6's. If you don't want to take the risk, then moving wxaddons directory under [all of] version-specific directories for given version (wx-2.6-gtk2-unicode, wx-2.6-gtk2-ansi, ...) should be safe -- the latest one will be picked without wxversion and specific version if you use wxversion.
Comment 3 Vaclav Slavik 2008-03-18 17:50:08 UTC
Upstream commentary:
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?12:mss:3763:200803:ojmaacoenpieocelapee
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2008-03-21 01:56:43 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > i'm starting to wonder how on earth different wxpython versions are meant to 
> > be installed on the same machine if half the files overwrite one another. :P
> 
> Well, there's no reason to use any other wxversion than the latest one, for
> example...

which is why we symlink to the latest version.  this doesn't work for everything of course, which you've encountered.

i've moved wxaddons to the versioned directories.  thanks for the suggestion and sorry about the breakage.