You are not logged in.

#1 2021-12-28 10:06:14

AlexP11223
Member
Registered: 2021-12-28
Posts: 2

No python2 modules in libxml2?

Is libxml2 no longer supposed to provide the python2 modules?

I get only this:

$ pacman -Ql libxml2 | grep 'lib/python'
libxml2 /usr/lib/python3.10/
libxml2 /usr/lib/python3.10/site-packages/
libxml2 /usr/lib/python3.10/site-packages/__pycache__/
libxml2 /usr/lib/python3.10/site-packages/__pycache__/drv_libxml2.cpython-310.opt-1.pyc
libxml2 /usr/lib/python3.10/site-packages/__pycache__/drv_libxml2.cpython-310.pyc
libxml2 /usr/lib/python3.10/site-packages/__pycache__/libxml2.cpython-310.opt-1.pyc
libxml2 /usr/lib/python3.10/site-packages/__pycache__/libxml2.cpython-310.pyc
libxml2 /usr/lib/python3.10/site-packages/drv_libxml2.py
libxml2 /usr/lib/python3.10/site-packages/libxml2.py
libxml2 /usr/lib/python3.10/site-packages/libxml2mod.so

$ pacman -Q libxml2
libxml2 2.9.12-6
python2
Python 2.7.18 (default, Oct 10 2021, 22:29:32) 
[GCC 11.1.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxml2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named libxml2

Offline

#2 2021-12-28 10:08:55

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 4,867

Re: No python2 modules in libxml2?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2021-12-28 10:42:32

AlexP11223
Member
Registered: 2021-12-28
Posts: 2

Re: No python2 modules in libxml2?

It seems to be a different Python library. What if I need to build an old project that uses "import libxml2"?

Offline

#4 2021-12-28 11:50:31

a821
Member
Registered: 2012-10-31
Posts: 290

Re: No python2 modules in libxml2?

Indeed, python2 support was removed. You could rebuild the package from the previous version.

Offline

Board footer

Powered by FluxBB