The following packages also have lxml as a dependency.  But looking through the source code it looks like only pyquery is affected by the updated lxml version.<br><br>compiz-boxmenu<br>calibre<br>mythtv<br>pyquery<br>inkscape<br>
weboob<br>w3af<br>openerp-server<br><br>--Larry<br><br><div class="gmail_quote">On Fri, Dec 28, 2012 at 4:13 PM, Larry Hajali <span dir="ltr"><<a href="mailto:larryhaja@gmail.com" target="_blank">larryhaja@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It looks like WebOb and requests are optional dependencies for pyquery.<br><br><a href="http://pypi.python.org/pypi/requests" target="_blank">http://pypi.python.org/pypi/requests</a><br>
<a href="http://pypi.python.org/pypi/WebOb" target="_blank">http://pypi.python.org/pypi/WebOb</a><span class="HOEnZb"><font color="#888888"><br>
<br>--Larry</font></span><div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On Fri, Dec 28, 2012 at 3:54 PM, Larry Hajali <span dir="ltr"><<a href="mailto:larryhaja@gmail.com" target="_blank">larryhaja@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br><br>Between lxml version 2.x and 3.x, lxml broke out the cssselect module into its own separate package.  The version on SBo is definitely outdated and incompatible (w/out patching) with the new lxml.  Looking at the setup.py file on the github page (ie. <a href="https://github.com/gawel/pyquery" target="_blank">https://github.com/gawel/pyquery</a>), the new version looks to be compatible with the new lxml with cssselect and distribute as new dependencies.<br>



<br>All that needs to be done is download the latest version of pyquery (<a href="http://pypi.python.org/packages/source/p/pyquery/pyquery-1.2.4.tar.gz" target="_blank">http://pypi.python.org/packages/source/p/pyquery/pyquery-1.2.4.tar.gz</a>), install the new dependencies and change the version number in the slackbuild to 1.2.4.  I'm providing a patch with the changes I made to get things working.  Now using 'import pyquery' at the python command prompt works.<br>



<br>On a side note, there isn't a dependency listed for pysetuptools or distribute for version 0.6.1 of pyquery.  It is optional for lxml and not listed for BeautifulSoup.<br><br>--Larry<br><br><div class="gmail_quote">

<div><div>

On Fri, Dec 28, 2012 at 9:16 AM, ____________ ________ <span dir="ltr"><<a href="mailto:rwxrwx@tut.by" target="_blank">rwxrwx@tut.by</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div>

I am sending it here since my attempt to contact the buildscript maintainer directly resulted in this:<br><br>Delivery to the following recipient failed permanently:<br>
<br> <email address of the pyquery buildscript maintainer><br>
<br>
Technical details of permanent failure:<br>
DNS Error: DNS server returned general failure<br>
<br>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:<br>




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




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




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




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




----> 6 from lxml.cssselect import Pseudo, XPathExpr, XPathExprOr, Function, css_to_xpath, Element<br>      7 from lxml import cssselect<br>      8<br><br>/usr/lib64/python2.7/site-packages/lxml/cssselect.py in <module>()<br>




     16     external_cssselect = __import__('cssselect')<br>     17 except ImportError:<br>---> 18     raise ImportError('cssselect seems not to be installed. '<br>     19                       'See <a href="http://packages.python.org/cssselect/" target="_blank">http://packages.python.org/cssselect/</a>')<br>




     20<br><br>ImportError: cssselect seems not to be installed. See <a href="http://packages.python.org/cssselect/" target="_blank">http://packages.python.org/cssselect/</a><br>--- snip ---<br><br>Just "import lxml" works.<br>




<br>I am using Slackware64-14.0 (no multilib).<br>
<br></div></div>_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank">SlackBuilds-users@slackbuilds.org</a><br>
<a href="http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" target="_blank">http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="http://lists.slackbuilds.org/pipermail/slackbuilds-users/" target="_blank">http://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="http://slackbuilds.org/faq/" target="_blank">http://slackbuilds.org/faq/</a><br>
<br>
<br></blockquote></div><br>
</blockquote></div><br>
</div></div></blockquote></div><br>