[Slackbuilds-users] pyquery broken after lxml update

____________ ________ rwxrwx at tut.by
Fri Dec 28 17:16:00 UTC 2012


I am sending it here since my attempt to contact the buildscript maintainer
directly resulted in this:

Delivery to the following recipient failed permanently:

 <email address of the pyquery buildscript maintainer>

Technical details of permanent failure:
DNS Error: DNS server returned general failure

Recently buildscript for lxml at SBo got updated (from lxml 2.x to lxml
3.x). After building the new lxml package and upgrading, I have noticed
that pyquery (the version that's available on SBo as well and that didn't
change) is now broken - importing it fails. Here is the traceback from
ipython:

--- snip ---
In [1]: import pyquery
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-6c6972830b98> in <module>()
----> 1 import pyquery

/usr/lib64/python2.7/site-packages/pyquery/__init__.py in <module>()
      8     import webob
      9 except ImportError:
---> 10     from pyquery import PyQuery
     11 else:
     12     from ajax import PyQuery

/usr/lib64/python2.7/site-packages/pyquery/pyquery.py in <module>()
      4 #
      5 # Distributed under the BSD license, see LICENSE.txt
----> 6 from cssselectpatch import selector_to_xpath
      7 from lxml import etree
      8 import lxml.html

/usr/lib64/python2.7/site-packages/pyquery/cssselectpatch.py in <module>()
      4 #
      5 # Distributed under the BSD license, see LICENSE.txt
----> 6 from lxml.cssselect import Pseudo, XPathExpr, XPathExprOr,
Function, css_to_xpath, Element
      7 from lxml import cssselect
      8

/usr/lib64/python2.7/site-packages/lxml/cssselect.py in <module>()
     16     external_cssselect = __import__('cssselect')
     17 except ImportError:
---> 18     raise ImportError('cssselect seems not to be installed. '
     19                       'See http://packages.python.org/cssselect/')
     20

ImportError: cssselect seems not to be installed. See
http://packages.python.org/cssselect/
--- snip ---

Just "import lxml" works.

I am using Slackware64-14.0 (no multilib).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20121228/016b5c6f/attachment.html>


More information about the SlackBuilds-users mailing list