Opened 8 years ago

Closed 8 years ago

#197 closed defect (fixed)

libxml2-python 2.7.7-6 lacks symlink for libxml2mod.pyd

Reported by: Lewis Rosenthal Owned by:
Priority: minor Milestone:
Component: python Version:
Severity: low Keywords:
Cc:

Description

The package does contain libxml2m.pyd, however, when running createrepo, I get:

[j:\devel\yumie-extras\bootstrap]sh -c "createrepo q:/repo"
Traceback (most recent call last):
  File "/@unixroot/usr/share/createrepo/genpkgmetadata.py", line 27, in <module>

    import libxml2
  File "/@unixroot/usr/lib/python2.7/site-packages/libxml2.py", line 1, in <module>
    import libxml2mod
ImportError: No module named libxml2mod

Indeed, line 1 of libxml2.py does include libxml2mod, but this file cannot be found.

Added symlink to libxml2m.pyd, and createrepo completed without error.

Additional notes:

I recently ran a full yum replace to swap out remaining i386 and i686 packages for pentium4. This is the first time I have run createrepo since making this change, so it is possible that the previous arch I had for this included the symlink or perhaps the previous libxlm2.py included libxml2m instead of libxml2mod.

Change History (2)

comment:1 by Lewis Rosenthal, 8 years ago

Confirming that this is repeatable on a fresh install of i686 (new AN bootstrap), where createrepo was not already present.

Selecting createrepo 0.4.11-2 noarch requires libxml2-python 2.7.7-6 i386. Installing those two and subsequently running createrepo, the same failure to find libxml2mod is reported. Creating the symlink resolves the error.

comment:2 by Silvan Scherrer, 8 years ago

Resolution: fixed
Status: newclosed

latest libxml2 from exp repo fixes this.
r905

Note: See TracTickets for help on using tickets.