Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259577 - rox-extra/memo should depend on dev-lang/python[xml]
Summary: rox-extra/memo should depend on dev-lang/python[xml]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Rox Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-19 09:44 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2009-05-21 17:03 UTC (History)
0 users

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


Attachments
/tmp/emerge--info (emerge--info,11.11 KB, text/plain)
2009-02-19 09:47 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2009-02-19 09:44:20 UTC
After world update, I am said by enotice:

Package: python-2.5.2-r7
 * You have configured Python without XML support.
 * This is NOT a recommended configuration as you
 * may face problems parsing any XML documents.
 * You have configured Python without XML support.
 * This is NOT a recommended configuration as you
 * may face problems parsing any XML documents.
 *
 * If you have just upgraded from an older version of python you will
 * need to run:
 *
 * /usr/sbin/python-updater
 *
 * This will automatically rebuild all the python dependent modules
 * to run with python-2.5.
 *
 * Your original Python is still installed and can be accessed via
 * /usr/bin/python2.x.

I ran it.

Now I have this problem:

dhp@moon-gen-3:~$ /usr/bin/Memo
Traceback (most recent call last):
  File "/usr/lib/ROX-Lib2/python/rox/options.py", line 161, in __init__
    doc = minidom.parse(path)
  File "/usr/lib/python2.5/xml/dom/minidom.py", line 1912, in parse
    from xml.dom import expatbuilder
  File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 32, in <module>
    from xml.parsers import expat
  File "/usr/lib/python2.5/xml/parsers/expat.py", line 4, in <module>
    from pyexpat import *
ImportError: No module named pyexpat
/usr/lib/rox/Memo/main.py:33: GtkDeprecationWarning: gtk.mainquit is deprecated, use gtk.main_quit instead
  g.mainquit()
ClientCall object destroyed without waiting for response!
Possible existing copy of Memo is not responding
Traceback (most recent call last):
  File "/usr/lib/rox/Memo/memos.py", line 119, in __init__
    doc = minidom.parse(path)
  File "/usr/lib/python2.5/xml/dom/minidom.py", line 1912, in parse
    from xml.dom import expatbuilder
  File "/usr/lib/python2.5/xml/dom/expatbuilder.py", line 32, in <module>
    from xml.parsers import expat
  File "/usr/lib/python2.5/xml/parsers/expat.py", line 4, in <module>
    from pyexpat import *
ImportError: No module named pyexpat
Traceback (most recent call last):
  File "/usr/lib/rox/Memo/AppRun", line 3, in <module>
    import main
  File "/usr/lib/rox/Memo/main.py", line 46, in <module>
    memo_list = memos.MasterList()
  File "/usr/lib/rox/Memo/memos.py", line 124, in __init__
    root = doc.documentElement
UnboundLocalError: local variable 'doc' referenced before assignment
dhp@moon-gen-3:~$


I have yet to check if there can be a bad interaction with some stuff I have in my user dir (I also installed Memo and Rox in ~/ using 0install ) but as this short log does not mention /home at all, I think there is a bug at the distro level.

python-updater *should* find that there is a problem. And does not.

Rebuilding Memo says I have preserved libs (I am using stable with portage 2.2). After rebuild, the problem still exists. But those libs are only related with media-video/mjpegtools-1.9.0 and media-video/transcode-1.0.7 . Rebuilding these will not help.

revdep-rebuild said everything is OK (normal since I am using portage 2.2).

Memo was working yesterday.

So the problem could be:
- python-updater not finding the problem
- Memo broken (rebuilding does not help)
- interaction with my user datas (I will try Memo under an other user to check this)
- portage 2.2 not being able to preserve required libs ?

I will feedback in few hours.
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2009-02-19 09:47:01 UTC
Created attachment 182535 [details]
/tmp/emerge--info

[ebuild   R   ] sys-apps/portage-2.2_rc23  USE="doc -build -epydoc (-selinux)" LINGUAS="-pl" 0 kB
[ebuild   R   ] dev-lang/python-2.5.2-r7  USE="berkdb doc examples gdbm ipv6 ncurses readline ssl threads -build -sqlite -tk -ucs2 -wininst -xml" 0 kB
[ebuild   R   ] rox-extra/memo-2.0-r1  USE="libnotify" 0 kB
[ebuild   R   ] app-admin/python-updater-0.5  0 kB
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2009-02-19 10:07:48 UTC
[ebuild   R   ] dev-libs/expat-2.0.1-r1  0 kB

was installed, but python was compiled without XML.

Please introduce a test and an eerror in Memo saying:
if python compiled without XML => error "in order to use Memo please rebuild Pythont with XML flag ON".

Problem fixed for me.

Thanks bye.
Comment 3 Jim Ramsay (lack) (RETIRED) gentoo-dev 2009-02-22 14:55:35 UTC
Indeed.  Though the python dep is in an eclass, and I suppose I'll have to figure out how to do perhaps to a multi-EAPI eclass....

But I digress.

Thanks for the report, and I'll put that dep in once I figure out the best way.
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2009-02-22 14:59:14 UTC
Of course a dep would be the best way, but, in the worst case, at begin of Memo compile, just check with which FLAGS, python had been compiled (many ebuilds do this, and it's easy).

It would not have prevent the problem, and the problem would not have been enlighted by "emerge -DaNuv world", but, it would have when I recompiled Memo. and this would have been nice.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2009-03-11 09:25:05 UTC
and also python-2.6.1 doesn't have a xml use flag.
Comment 6 Daniel Black (RETIRED) gentoo-dev 2009-03-11 11:17:22 UTC
(In reply to comment #5)
> and also python-2.6.1 doesn't have a xml use flag.
ignore - i had an old version on python-2.6.1 installed.
Comment 7 Jim Ramsay (lack) (RETIRED) gentoo-dev 2009-05-21 17:03:23 UTC
Okay, memo-2.1 now depends on python[xml], and once it goes stable memo-2.0 will go away... And everyone will be happy ;)