Opened 17 years ago

Closed 16 years ago

Last modified 13 years ago

#3089 closed defect (fixed)

Gnome-desktop 2.28 build failure ; ImportError: No module named xml2po

Reported by: Le Hoang Long Owned by: Randy McMurchy
Priority: normal Milestone:
Component: BOOK Version: SVN
Severity: medium Keywords: xml2po, Gnome-desktop 2.28
Cc:

Description

this is the error Traceback (most recent call last):

File "/opt/gnome/bin/xml2po", line 185, in <module>

main(sys.argv[1:])

File "/opt/gnome/bin/xml2po", line 88, in main

from xml2po import Main

ImportError: No module named xml2po

and how to fix

ln -sfv $GNOME_PREFIX/lib/python2.6/site-packages/xml2po \ /usr/lib/python2.6/site-packages

Change History (8)

comment:1 by Randy McMurchy, 17 years ago

Milestone: 7.0 → 6.5
Priority: high → normal
Type: task → defect

Instead of a symlink, I believe using PYTHONPATH is the preferred method.

comment:2 by DJ Lucas, 16 years ago

IIRC, there were problems using $PYTHONPATH in this instance, hardcoded path or some such. Please have somebody verify with an /opt/gnome build before commit. I wish I had time to complete the GNOME_CONFIG changes...it simplified a lot WRT /opt/gnome builds vs. /usr builds...more specifically WRT the libexec dir, but this particular instance was accounted for via symlink as suggested above. The argument for this approach is simple, if the /opt/gnome directory is removed/moved, no problem.

comment:3 by DJ Lucas, 16 years ago

Properly setting PYTHONPATH after installing gnome-doc-utils works as expected.

comment:4 by (none), 16 years ago

Milestone: 6.5

Milestone 6.5 deleted

comment:5 by Randy McMurchy, 16 years ago

Milestone: → 6.7

Updated milestone to 6.7

comment:6 by Randy McMurchy, 16 years ago

Owner: changed from blfs-book@… to Randy McMurchy
Status: new → assigned

So bottom line is we can close this ticket after the Gnome Doc Utils instructions are updated to mention about PYTHONPATH if $GNOME_PREFIX is not /usr.

comment:7 by Randy McMurchy, 16 years ago

Resolution: → fixed
Status: assigned → closed

Closing this ticket because there are now instructions in the GNOME Pre-Installation instructions to set PYTHONPATH.

comment:8 by bdubbs@…, 13 years ago

Milestone: 6.7

Milestone 6.7 deleted

Note: See TracTickets for help on using tickets.