Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 231420 - dev-python/optik optparse.py conflicts with Python's
Summary: dev-python/optik optparse.py conflicts with Python's
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PMASKED
: 238170 (view as bug list)
Depends on:
Blocks: 238170
  Show dependency tree
 
Reported: 2008-07-10 15:39 UTC by Rob Cakebread (RETIRED)
Modified: 2009-09-21 08:49 UTC (History)
1 user (show)

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 Rob Cakebread (RETIRED) gentoo-dev 2008-07-10 15:39:11 UTC
optik installs /usr/lib/python2.5/site-packages/optparse.py which conflicts with the actual Python optparse module /usr/lib/python2.5/optparse.py

An example of breakage shows up with pybugz:

$ bugz search optik
Traceback (most recent call last):
  File "/usr/bin/bugz", line 3, in <module>
    import bugz
  File "/usr/lib/python2.5/site-packages/bugz.py", line 260, in <module>
    from optparse import OptionParser, make_option, BadOptionError
ImportError: cannot import name make_option

Here's whats found in optik's optparse.py so maybe we can just remove it since we don't support Python 2.2:

optparse -- forward-compatibility wrapper for use with Python 2.2.x and
earlier.  If you import from 'optparse' rather than 'optik', your code
will work on base Python 2.3 (and later), or on earlier Pythons with
Optik 1.4.1 or later installed.
"""

from optik import __version__, __all__
from optik import *
Comment 1 Rob Cakebread (RETIRED) gentoo-dev 2008-07-10 15:50:10 UTC
Actually optik shouldn't even be emerged if using >Python2.3 so I'll fix ebuilds like pyreverse that don't check that and update optik so it is blocked with Python>2.3
Comment 2 Ali Polatel (RETIRED) gentoo-dev 2008-07-17 17:38:30 UTC
Another idea is to mask & remove it since we don't care about 2.3 and below anymore ;)

Comment 3 Joerg Plate 2008-09-22 15:44:07 UTC
*** Bug 238170 has been marked as a duplicate of this bug. ***
Comment 4 Jesus Rivero (RETIRED) gentoo-dev 2009-09-21 03:11:55 UTC
Hello, 

   This package has been masked for removal in 30 days (Oct 20th 2009). It is not needed for Python versions higher than 2.4.

    Best regards,