python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -
i'm trying give django-easy-pdf go, i'm having problems installing dependencies.
i importerror: no module named xhtml2pdf.default when running django.
to attempt fixing, did pip install xhtml2pdf, yields could not find downloads satisfy requirement pypdf (from xhtml2pdf).
so let's pip install --allow-unverified pypdf pypdf around that. completed without issues. when repeating pip install xhtml2pdf, software gets installed without issue.
however, when launching django 1.6, get: importerror: reportlab version 2.1+ needed!.
i have reportlab 2.2 or higher installed though, since pip freeze lists 3.0.
it looks hardcoded in few files (util.py , __init__.py):
if not (reportlab.version[0] == "2" , reportlab.version[2] >= "1"): raise importerror("reportlab version 2.1+ needed!") if not reportlab22: raise importerror, "reportlab toolkit version 2.2 or higher needed" how can fixed (except remove these checks source)?
the author mentions on https://github.com/nigma/django-easy-pdf:
django-easy-pdf depends on: django>=1.5.1 git+https://github.com/chrisglass/xhtml2pdf.git that specific version needs installed, , not 1 available in pypi. first uninstall xhtml2pdf , pypdf using pip uninstall, do:
pip install git+https://github.com/chrisglass/xhtml2pdf.git
Comments
Post a Comment