I'm working on a web app with a friend. We're using Git, and we're on the same part of the same branch. We're both running the app in a virtualenv, and we've got the same dependencies installed, which we pulled from a requirements file.
All was fine, until of course it wasn't. The following error came about when I added some logic to handle some forms. I'm working on this using a Macbook Pro using OS X 10.8.4 and he is using Ubuntu 12:04LTS. I can run the app with no problems, but when he runs it he gets the following error.
from flask.json import dumps, JSONEncoder
ImportError: No module named json
Traceback (most recent call last):
File "../run.py", line 1, in <module>
from app import app
File "/home/nadil/really-scrapable-web-app/app/_init_.py", line 6, in <module>
from app import views
File "/home/nadil/really-scrapable-web-app/app/views.py", line 3, in <module>
from forms import LoginForm
File "/home/nadil/really-scrapable-web-app/app/forms.py", line 1, in <module>
from flask.ext.wtf import Form, TextField, BooleanField
File "/home/nadil/v/scrapable/local/lib/python2.7/site-packages/flask_wtf/_init_.py", line 16, in <module>
from .recaptcha import *
File "/home/nadil/v/scrapable/local/lib/python2.7/site-packages/flask_wtf/recaptcha/_init_.py", line 2, in <module>
from .fields import *
File "/home/nadil/v/scrapable/local/lib/python2.7/site-packages/flask_wtf/recaptcha/fields.py", line 3, in <module>
from . import widgets
File "/home/nadil/v/scrapable/local/lib/python2.7/site-packages/flask_wtf/recaptcha/widgets.py", line 5, in <module>
from flask.json import dumps, JSONEncoder
ImportError: No module named json
The code is located here: https://github.com/matthewhughes/really-scrapable-web-app
We have no idea what is going on. Any help would be really appreciated!