lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

JSON Module is not installed by default until Python 2.6 #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Install on a system with python less than 2.6 
2. >>> import couchdb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.macosx-10.5-i386/egg/couchdb/__init__.py", line 9, in
<module>
  File "build/bdist.macosx-10.5-i386/egg/couchdb/client.py", line 34, in
<module>
ImportError: No module named json

Original issue reported on code.google.com by PeterBra...@gmail.com on 24 Dec 2008 at 9:31

GoogleCodeExporter commented 8 years ago
Actually, after looking at the source:

try:
    import simplejson as json
except ImportError:
    import json # Python 2.6

I guess the code isn't really at fault, but it should be made more explicit that
simplejson is a prerequisite to installing this - some sort of alert should be 
thrown
on install.

Original comment by PeterBra...@gmail.com on 24 Dec 2008 at 9:38

GoogleCodeExporter commented 8 years ago
I guess setup.py could be updated to add simplejson to the dependencies if 
Python <=
2.5 is used.

Original comment by jason.da...@gmail.com on 1 Jan 2009 at 3:49

GoogleCodeExporter commented 8 years ago

Original comment by randall....@gmail.com on 5 Mar 2009 at 5:09

GoogleCodeExporter commented 8 years ago

Original comment by randall....@gmail.com on 5 Mar 2009 at 5:09

GoogleCodeExporter commented 8 years ago
Fixed in r139

Original comment by randall....@gmail.com on 22 Mar 2009 at 11:11