gawel / pyquery

A jquery-like library for python
http://pyquery.rtfd.org/
Other
2.3k stars 182 forks source link

Error when install pyquery 1.2.8 in python 3.4 #79

Closed cuongdn closed 10 years ago

cuongdn commented 10 years ago

I try to install pyquery in python 3.4 but I am getting these errors (it works when installing in python 2.7.8). Here's the error log. Any idea to fix this?

python setup.py install running install running bdist_egg running egg_info writing pyquery.egg-info\PKG-INFO writing top-level names to pyquery.egg-info\top_level.txt writing dependency_links to pyquery.egg-info\dependency_links.txt writing requirements to pyquery.egg-info\requires.txt writing entry points to pyquery.egg-info\entry_points.txt reading manifest file 'pyquery.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'docs_build' warning: no previously-included files matching '*.pyc' found anywhere in distrib ution warning: no previously-included files matching 'pycache' found anywhere in d istribution writing manifest file 'pyquery.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py creating build\bdist.win-amd64\egg creating build\bdist.win-amd64\egg\pyquery copying build\lib\pyquery\ajax.py -> build\bdist.win-amd64\egg\pyquery copying build\lib\pyquery\cssselectpatch.py -> build\bdist.win-amd64\egg\pyquery

copying build\lib\pyquery\openers.py -> build\bdist.win-amd64\egg\pyquery copying build\lib\pyquery\pyquery.py -> build\bdist.win-amd64\egg\pyquery copying build\lib\pyquery\rules.py -> build\bdist.win-amd64\egg\pyquery copying build\lib\pyqueryinit.py -> build\bdist.win-amd64\egg\pyquery byte-compiling build\bdist.win-amd64\egg\pyquery\ajax.py to ajax.cpython-34.pyc byte-compiling build\bdist.win-amd64\egg\pyquery\cssselectpatch.py to cssselectp atch.cpython-34.pyc byte-compiling build\bdist.win-amd64\egg\pyquery\openers.py to openers.cpython-3 4.pyc byte-compiling build\bdist.win-amd64\egg\pyquery\pyquery.py to pyquery.cpython-3 4.pyc byte-compiling build\bdist.win-amd64\egg\pyquery\rules.py to rules.cpython-34.py c byte-compiling build\bdist.win-amd64\egg\pyqueryinit.py to init.cpython -34.pyc creating build\bdist.win-amd64\egg\EGG-INFO copying pyquery.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO copying pyquery.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO copying pyquery.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-I NFO copying pyquery.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO copying pyquery.egg-info\not-zip-safe -> build\bdist.win-amd64\egg\EGG-INFO copying pyquery.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO copying pyquery.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO creating 'dist\pyquery-1.2.8-py3.4.egg' and adding 'build\bdist.win-amd64\egg' t o it removing 'build\bdist.win-amd64\egg' (and everything under it) Processing pyquery-1.2.8-py3.4.egg removing 'c:\program files\python\lib\site-packages\pyquery-1.2.8-py3.4.egg' (an d everything under it) creating c:\program files\python\lib\site-packages\pyquery-1.2.8-py3.4.egg Extracting pyquery-1.2.8-py3.4.egg to c:\program files\python\lib\site-packages pyquery 1.2.8 is already the active version in easy-install.pth

Installed c:\program files\python\lib\site-packages\pyquery-1.2.8-py3.4.egg Processing dependencies for pyquery==1.2.8 Searching for lxml>=2.1 Reading https://pypi.python.org/simple/lxml/ Best match: lxml 3.3.5 Downloading https://pypi.python.org/packages/source/l/lxml/lxml-3.3.5.tar.gz#md5 =88c75f4c73fc8f59c9ebb17495044f2f Processing lxml-3.3.5.tar.gz Writing C:\Users\Admin\AppData\Local\Temp\easy_install-tn4yet_9\lxml-3.3.5\setup .cfg Running lxml-3.3.5\setup.py -q bdist_egg --dist-dir C:\Users\Admin\AppData\Local \Temp\easy_install-tn4yet_9\lxml-3.3.5\egg-dist-tmp-vtla5mx8 Building lxml version 3.3.5. Building without Cython. ERROR: b"'xslt-config' is not recognized as an internal or external command,\r\n operable program or batch file.\r\n" \ make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt C:\Program Files\Python\lib\distutils\dist.py:260: UserWarning: Unknown distribu tion option: 'bugtrack_url' warnings.warn(msg) error: Setup script exited with error: Unable to find vcvarsall.bat

gawel commented 10 years ago

the error occured when installing lxml (as a dependency), not pyquery

you probably need libxml2/libxslt headers (-dev packages)