#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: | normal | 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 , 14 years ago
Milestone: | 7.0 → 6.5 |
---|---|
Priority: | high → normal |
Type: | task → defect |
comment:2 by , 14 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 , 14 years ago
Properly setting PYTHONPATH after installing gnome-doc-utils works as expected.
comment:6 by , 13 years ago
Owner: | changed from | to
---|---|
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 , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Closing this ticket because there are now instructions in the GNOME Pre-Installation instructions to set PYTHONPATH.
Instead of a symlink, I believe using PYTHONPATH is the preferred method.