It looks like WebOb and requests are optional dependencies for pyquery. http://pypi.python.org/pypi/requests http://pypi.python.org/pypi/WebOb
--Larry On Fri, Dec 28, 2012 at 3:54 PM, Larry Hajali <larryh...@gmail.com> wrote: > Hi, > > 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. https://github.com/gawel/pyquery), the new > version looks to be compatible with the new lxml with cssselect and > distribute as new dependencies. > > All that needs to be done is download the latest version of pyquery ( > http://pypi.python.org/packages/source/p/pyquery/pyquery-1.2.4.tar.gz), > 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. > > 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. > > --Larry > > On Fri, Dec 28, 2012 at 9:16 AM, ____________ ________ <rwx...@tut.by>wrote: > >> 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). >> >> _______________________________________________ >> SlackBuilds-users mailing list >> SlackBuilds-users@slackbuilds.org >> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users >> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/ >> FAQ - http://slackbuilds.org/faq/ >> >> >> >
_______________________________________________ SlackBuilds-users mailing list SlackBuilds-users@slackbuilds.org http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/ FAQ - http://slackbuilds.org/faq/