-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download PDF generates Import Error: Reportlab Version 2.1+ is needed! #174
Comments
That error doesn't come from cartridge. My best guess is the pisa lib that uses it for generating pdfs, suggest chasing it up with that project: |
Thanks. As suggested, I was able to find the help I needed on the "xhtml2pdf" googlegroup mailing list. FYI: I went into ./lib/python2.7/site-packages/sx/pisa3/pisa_util.py to implement this solution: "The problem is with the installation. if not (reportlab.Version[0] == "2" and reportlab.Version[2] >= "1"): This will fail as the reportlab version is now 3.0. Just replace this code segment with the following: if not (reportlab.Version[:3]>="2.1"): raise ImportError("Reportlab Version 2.1+ is needed!") REPORTLAB22 = (reportlab.Version[:3]>="2.1") |
Option 1 : Remove below in your requirements.txt file and add: -e git+https://github.com/rajanmandanka/pisa.git#egg=pisa Option 2:
|
Could you elaborate a bit? Which versions of Python / Django / Mezzanine |
I am using python 2.7 app-version==0.2.1 |
git+https://github.com/rajanmandanka/pisa.git#egg=pisa not found anymore |
Hi,
I'm a Django noob, and I'm generally out of my league when it comes to dependency issues. Thanks in advance for your help!
When I try to generate a PDF of the invoice, I receive this error:
"Reportlab Version 2.1+ is needed!"
I have Reportlab 3.0 installed.
I'm working in a clean virtualenv. This is my pip freeze:
Cartridge==0.9.2
Django==1.6.2
Drum==0.1.2
Mezzanine==3.0.9
PIL==1.1.7
Pillow==2.3.0
bleach==1.4
feedparser==5.1.3
filebrowser-safe==0.3.2
future==0.9.0
grappelli-safe==0.3.6
html5lib==1.0b3
oauthlib==0.6.1
pisa==3.0.33
pyPdf==1.13
pytz==2013.9
reportlab==3.0
requests==2.2.1
requests-oauthlib==0.4.0
six==1.5.2
sphinx-me==0.2.1
tzlocal==1.0
wsgiref==0.1.2
xhtml2pdf==0.0.5
The text was updated successfully, but these errors were encountered: