简体   繁体   中英

How to solve this traceback error in pdfquery

I'm getting following error when I try try to execute tests.py in pdfquery

Traceback (most recent call last):
  File "C:\workspace-php\test\pdfminer\pdfminer\tests.py", line 2, in <module>
    import pdfquery
  File "C:\workspace-php\test\pdfminer\pdfminer\pdfquery.py", line 19, in <module>
    from pyquery import PyQuery
  File "C:\workspace-php\test\pdfminer\pdfminer\pyquery.py", line 6, in <module>
    from cssselectpatch import JQueryTranslator
  File "C:\workspace-php\test\pdfminer\pdfminer\cssselectpatch.py", line 7, in <module>
    from cssselect import xpath as cssselect_xpath
ImportError: No module named cssselect

Any body know which causes this error.

You do not look for a solution for the Traceback error. You look for the error at the bottom.

ImportError: No module named cssselect

The error suggests that the python interpreter could not find the cssselect library on your system. If the library is not installed on your machine, install it as per the instructions here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM