Giter Site home page Giter Site logo

Comments (11)

skorokithakis avatar skorokithakis commented on July 22, 2024

Odd, we fixed that. Can you see if the latest version in the repo works for you? If it does, I'll make a new release.

from django-annoying.

natecox avatar natecox commented on July 22, 2024

@skorokithakis
OK, so I ran:

pip install -e [email protected]:skorokithakis/django-annoying.git#egg=django-annoying

Which I beleive has given me a clean install. I no longer get the simplejson error when loading a template, but I do get:

AttributeError at /
'dict' object has no attribute 'iteritems'

From my view which looks like

from annoying.decorators import render_to


@render_to('interface/index.html')
def index(request):
    return {}

I believe that this may be because I'm using python 3.3.2? Maybe?

from django-annoying.

skorokithakis avatar skorokithakis commented on July 22, 2024

Hmm yes, that might be because of a different Python version. We really should get the library working with 3.x, I'll make it a priority. Do you get the simplejson import problem with 2.x?

from django-annoying.

natecox avatar natecox commented on July 22, 2024

I'm fairly certain that the simplejson issue popped up with Django 1.7 and isn't an issue with the python version. I've been using django-annoying with Django 1.6/Python 2.7.5 for a while and never saw a json error.

from django-annoying.

skorokithakis avatar skorokithakis commented on July 22, 2024

Sounds like it, but I need to know if you get the error on 2.x, since you get a different error which might crash your app before getting to the simplejson error. Does the current repo HEAD run without errors on Python 2.x and Django 1.7?

from django-annoying.

natecox avatar natecox commented on July 22, 2024

OK, I set up a new virtualenv for this and can confirm that Django 1.7 running on Python 2.7.5 works without any issues if I install django-annoying using pip install -e [email protected]:skorokithakis/django-annoying.git#egg=django-annoying.

Exact same setup running python 3.3.2 gives me the iteritems issue detailed above.

from django-annoying.

natecox avatar natecox commented on July 22, 2024

By the way, I updated my previous comment to actually have the view code, rather than a copy of the error again.

from django-annoying.

skorokithakis avatar skorokithakis commented on July 22, 2024

Right, thank you. I'll make a new release now and push it to PyPI, thanks for the report.

from django-annoying.

skorokithakis avatar skorokithakis commented on July 22, 2024

There was a missing merge to develop, can you try the new PyPI version (0.7.8)? It should fix both the simplejson and the iteritems issues with Python 3.x. Can you let me know if you still have trouble with 3.x? Thanks!

from django-annoying.

natecox avatar natecox commented on July 22, 2024

Success! No issues with the new PyPI version. Thanks!

from django-annoying.

skorokithakis avatar skorokithakis commented on July 22, 2024

Great, thanks for letting me know, I wouldn't have seen that unmerged commit otherwise!

from django-annoying.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.