SEL-Columbia / formhub

Mobile Data Collection made easy.
http://formhub.org
BSD 2-Clause "Simplified" License
259 stars 163 forks source link

Python 2.6.6 deploy errors #1236

Closed alanorth closed 10 years ago

alanorth commented 11 years ago

I'm attempting to build and deploy formhub (at e74187ef) on a CentOS 6 box with Python 2.6.6 and I get the following error when I try to python manage.py syncdb --noinput: https://gist.github.com/alanorth/6463867/raw/e6a7350cb3c49b7136907617f0513373cd1ad628/gistfile1.txt

Removing the audit entries from the LOGGING dict allows the syncdb to complete, but I'm not sure if it has larger implications as I'm a brand new formhub user and have no idea what the audit loggers are actually for!

alanorth commented 11 years ago

Ok, I I just compiled Python 2.7.5 on my CentOS 6 box and re-created my virtualenv and now the syncdb works. Might be worth putting a note that Python 2.7.5 is required.

Also, there are errors with OrderedDict on Python 2.6.6:

$ python
Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import OrderedDict
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name OrderedDict
>>> 

I saw in another project that they had this same issue (https://github.com/mher/flower/issues/4), and that the following works for Python 2.6.6:

>>> from celery.utils.compat import OrderedDict
>>> 

But again, all of this is rather moot if we just use Python 2.7.5...

prabhasp commented 10 years ago

Note added in wiki.