Potential fix here: https://github.com/stephenmcd/cartridge/commit/1aa5bf11dcb4e0b8955f4236a3b0c85b2f8b6f1d
On Tue, Mar 11, 2014 at 11:06 PM, Philip Southwell <[email protected]>wrote: > Hi there, > > I've just started using Mezzanine and I love it (my first Mezzanine site > here <http://www.philipsouthwell.com>!) > > Now I'm trying out Cartridge according to the installation > instructions<http://cartridge.jupo.org/overview.html#installation>. > My problem is that I cannot view the actual site due to a TypeError - > although I can access the admin backend. I'm relatively new to > Python/Django web development and I may have missed something obvious. In > case it matters I'm developing on Windows, and have exactly the same > problem whether I install Cartridge from source or using pip. Any help > would be much appreciated! > > Kind Regards, Phil > > The error message that I get follows: > > TypeError at / > > decoding str is not supported > > Request Method:GET Request URL:http://127.0.0.1:8000/ Django > Version:1.6.2Exception > Type: TypeErrorException Value: > > > decoding str is not supported > > Exception > Location:c:\Code\venvs\shop\lib\site-packages\cartridge-0.9.2-py3.3.egg\cartridge\shop\templatetags\shop_tags.py > in currency, line 28 Python Executable: > c:\Code\venvs\shop\Scripts\python.exe Python Version:3.3.3Python Path: > > ['c:\\Code', > 'c:\\Code\\shop', > > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\psycopg2-2.5.2-py3.3-win-amd64.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\cartridge-0.9.2-py3.3.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\pisa-3.0.33-py3.3.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\mezzanine-3.0.9-py3.3.egg', > > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\pillow-2.3.0-py3.3-win-amd64.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\future-0.9.0-py3.3.egg', > > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\requests_oauthlib-0.4.0-py3.3.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\requests-2.2.1-py3.3.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\bleach-1.4-py3.3.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\tzlocal-1.0-py3.3.egg', > > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\filebrowser_safe-0.3.2-py3.3.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\django-1.6.2-py3.3.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\oauthlib-0.6.1-py3.3.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\six-1.5.2-py3.3.egg', > 'c:\\Code\\venvs\\shop\\lib\\site-packages\\pytz-2013.9-py3.3.egg', > 'C:\\Python27', > 'C:\\Python27\\Scripts', > 'C:\\Python27\\Lib\\site-packages\\django\\bin', > 'C:\\windows\\system32\\python33.zip', > 'c:\\Code\\venvs\\shop\\DLLs', > 'c:\\Code\\venvs\\shop\\lib', > 'c:\\Code\\venvs\\shop\\Scripts', > 'c:\\python33\\Lib', > 'c:\\python33\\DLLs', > 'c:\\Code\\venvs\\shop', > 'c:\\Code\\venvs\\shop\\lib\\site-packages'] > > Server time: Tue, 11 Mar 2014 22:25:03 +1030 > Error during template rendering > > In template > c:\Code\venvs\shop\lib\site-packages\cartridge-0.9.2-py3.3.egg\cartridge\shop\templates\includes\user_panel.html, > error at line *9* > decoding str is not supported 1{% load i18n future shop_tags > mezzanine_tags %} 2 <div class="panel panel-default user-panel"> 3 <div > class="panel-body"> 4 {% spaceless %} 5 <a href="{% url "shop_cart" %}"> > 6<span class="glyphicon glyphicon-shopping-cart"></span> > 7 {% blocktrans count request.cart.total_quantity as cart_quantity %}1 > item{% plural %}{{ cart_quantity }} items{% endblocktrans %} 8 {% trans > "in cart" %}: 9 {{ request.cart.total_price|currency }}</a><br> 10 {% if > request.cart.total_quantity != 0 %} 11 <a href="{% url "shop_checkout" > %}" class="btn btn-primary"> 12 {% if request.session.order.step %}{% > trans "Return to Checkout" %}{% else %}{% trans "Go to Checkout" %}{% endif > %} 13 </a><br> 14 {% endif %} 15 {% if settings.SHOP_USE_WISHLIST %} 16<a > href="{% url "shop_wishlist" %}" class="btn-wishlist"> > 17 <span class="glyphicon glyphicon-star"></span> 18 {% blocktrans count > request.wishlist|length as wishlist_count %}Wishlist contains 1 item{% > plural %} Wishlist contains {{ wishlist_count }} items{% endblocktrans > %}</a> 19 {% endif %} > > -- > 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/d/optout. > -- Stephen McDonald http://jupo.org -- 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/d/optout.
