The error is coming from sx/pisa3/__init__.py, line 43 which says:

{{{
    if not REPORTLAB22:
        raise ImportError, "Reportlab Toolkit Version 2.2 or higher needed"
}}}

Now, obviously you do have reportlab of a version higher than 2.2 but there was a bug mentioned on the cartridge issues a few weeks ago which seemed to indicate that reportlab 3.0 isn't reporting its version correctly as higher than 2.2.

See https://github.com/stephenmcd/cartridge/issues/174#issuecomment-35755887

It seems like it's a known bug in pisa.

Hope this helps.

Seeya. Danny.

On 27/02/2014 9:52 AM, Tom Brander wrote:
Hmm did not have reportlab, so I installed it but no change, here is the
pip list
(myvenv3) tom@tom-sam:~/whiteplume$ pip list
bleach (1.4)
Cartridge (0.9.2)
Django (1.6.2)
filebrowser-safe (0.3.2)
future (0.9.0)
grappelli-safe (0.3.6)
html5lib (0.999)
Mezzanine (3.0.9)
oauthlib (0.6.1)
Pillow (2.3.0)
pip (1.5.4)
pisa (3.0.33)
pytz (2013.9)
reportlab (3.0)
requests (2.2.1)
requests-oauthlib (0.4.0)
setuptools (2.2)
six (1.5.2)
tzlocal (1.0)


On Wednesday, February 26, 2014 3:43:49 PM UTC-6, Danny S wrote:

    On 27/02/2014 7:29 AM, Tom Brander wrote:
     > Went to create a pdf invoice and got this error:
     > I am using Python #.3 if that makes a diff??
     > Does not give me much to go on the "view" invoice is working fine...

    Can you do a pip list for us?

    Do you have pisa and reportlab both installed? What versions?


     >
     > Traceback:
     > File
     >
    "/home/tom/myvenv3/lib/python3.3/site-packages/django/core/handlers/base.py"

     > in get_response
     >    107.                     response = middleware_method(request,
     > callback, callback_args, callback_kwargs)
     > File
     >
    
"/home/tom/myvenv3/lib/python3.3/site-packages/mezzanine/pages/middleware.py"

     > in process_view
     >    78.             response = view_func(request, *view_args,
    **view_kwargs)
     > File
     >
    "/home/tom/myvenv3/lib/python3.3/site-packages/cartridge/shop/views.py"
     > in invoice
     >    358.         import ho.pisa
     > File
    "/home/tom/myvenv3/lib/python3.3/site-packages/ho/pisa/__init__.py"
     > in <module>
     >    26. from sx.pisa3.pisa import *
     >
     > Exception Type: SyntaxError at /shop/invoice/1/
     > Exception Value: invalid syntax (__init__.py, line 43)
     >
     > --
     > You received this message because you are subscribed to the Google
     > Groups "Mezzanine Users" group.
     > To unsubscribe from this group and stop receiving emails from it,
    send
     > an email to [email protected] <javascript:>.
     > For more options, visit https://groups.google.com/groups/opt_out
    <https://groups.google.com/groups/opt_out>.



    --
    Email: [email protected] <javascript:>




--
Email: [email protected]

--
You received this message because you are subscribed to the Google Groups "Mezzanine 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to