import error
herschelrs opened this issue · 2 comments
herschelrs commented
Tried to run this myself, running arch
(web2pdf) $ python main.py
Fontconfig error: "/etc/fonts/local.conf", line 1: XML declaration not well-formed // I believe this is unrelated
Traceback (most recent call last):
File "/~~~/p/web2pdf/main.py", line 7, in <module>
from readability import Document
ImportError: cannot import name 'Document' from 'readability' (/~~~/.local/share/virtualenvs/web2pdf-VRO491p1/lib/python3.9/site-packages/readability/__init__.py)
with:
pipenv, version 2023.12.1
Python 3.9.18
I also checked, I don't see a Document
property on readability
if I just open a shell and import it. Just from a glance at your code I'm pretty confused what's going wrong here.
dvcoolarun commented
Ah, I think there is an extra import for package readability. In actuality, I have used readability-lxml.
Please check https://pypi.org/project/readability-lxml/
herschelrs commented
Ok, removing readability from the pipfile and then reinstalling
dependencies fixed it.
…On Sat, Feb 10, 2024 at 9:15 AM Arun ***@***.***> wrote:
Ah, I think there is an extra import for package readability. In
actuality, I have used readability-lxml.
Please check https://pypi.org/project/readability-lxml/
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXFGMNL5SSCL5X56XSLB3WTYS6TMRAVCNFSM6AAAAABDCMMJVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXGA3TKMRXG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>