You are not logged in.

#1 2020-10-19 22:51:29

Huub900
Member
Registered: 2009-11-02
Posts: 13

python & libxslt

I have tried to google, but I have no idea what is going on:

libxslt-1.1.34-3

Python 2.7.18 (default, Sep  5 2020, 11:17:26) 
[GCC 10.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxslt
>>> 

libxslt-1.1.34-5

Python 2.7.18 (default, Sep  5 2020, 11:17:26) 
[GCC 10.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxslt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named libxslt

Offline

#2 2020-10-19 23:07:25

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 8,344

Re: python & libxslt

Python2 is being dropped wherever possible. If nothing in the official repos needs it, it's gone ASAP. https://github.com/archlinux/svntogit-p … 5eb9b7203a

Offline

#3 2020-10-20 14:47:12

Huub900
Member
Registered: 2009-11-02
Posts: 13

Re: python & libxslt

I have exactly the same problem with Python 3.

Offline

#4 2020-10-20 14:59:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,106
Website

Re: python & libxslt

Libxslt never included python3 bindings.  It formerly was built with python2 bindings, but as noted above, python2 support is being dropped and that was removed from the package.  I'm not sure if libxslt can be built with python3 bindings - try it out.  If it works, then you could submit a feature request asking for it to be added in the repo version.

EDIT: FYI, I just rebuilt the package simply changing "--without-python" to "--with-python=/usr/bin/python" and after installing it, I could import the module in python3, but it was effectively an empty module and wasn't functional.

Last edited by Trilby (2020-10-20 15:06:29)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2020-10-20 23:11:39

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,939

Re: python & libxslt


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB