Comments (11)
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.
@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.
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.
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.
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.
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.
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.
Right, thank you. I'll make a new release now and push it to PyPI, thanks for the report.
from django-annoying.
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.
Success! No issues with the new PyPI version. Thanks!
from django-annoying.
Great, thanks for letting me know, I wouldn't have seen that unmerged commit otherwise!
from django-annoying.
Related Issues (20)
- Can we get Pypi updated with the thread safe changes? HOT 1
- Test don't run against Django 1.7+ HOT 2
- Django 1.9 HOT 6
- Django 1.9: Cannot import name SingleRelatedObjectDescriptor HOT 4
- JSONField is not working in Django 1.9+
- AutoOneToOne doesn't work HOT 14
- Remove pretty-print from the JSON field output or make it configurable HOT 2
- Django 1.11 middleware HOT 3
- Please add a release with a universal wheel to PyPI HOT 1
- Could you publish a new release? HOT 4
- AutoOneToOneField breaks Django admin lookups HOT 5
- Using AutoOneToOneField with proxy model HOT 2
- Race Condition Fix HOT 3
- Setting HTTP status code when using ajax_request HOT 3
- ImportError: cannot import name 'six' HOT 2
- I know this is ancient history but a breaking change in a point release? HOT 6
- Support for django v3 HOT 3
- Django 3.2 compatibility? HOT 1
- Django5 Support? HOT 1
- Possible to add support for types? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-annoying.