incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svilen ...@svilendobrev.com>
Subject Re: Sample couchdb data
Date Wed, 07 Aug 2013 13:03:40 GMT
that looks like issue with your Python installation (site.py ... _sre
builtin library), nothing to do with the app (it can't start even it).. 

try if python itself runs - interactively or whatever.

On Wed, 7 Aug 2013 08:48:49 -0400
"Yves S. Garret" <yoursurrogategod@gmail.com> wrote:

> On Mon, Aug 5, 2013 at 1:46 AM, Simon Metson <simon@cloudant.com>
> wrote:
> 
> > I wrote [1] a while back. It lets you create a schema for your data
> > then generates random but realistic data like that schema, which is
> > nice if you want to fool around with different data models, make
> > views that look kinda realistic etc.
> >
> > [1] https://github.com/cloudant-labs/etc/blob/master/gen_docs.py
> >
> >
> > On Monday, 5 August 2013 at 04:59, Dave Cottlehuber wrote:
> >
> > > On 5 August 2013 04:41, Yves S. Garret
> > > <yoursurrogategod@gmail.com>
> > wrote:
> > > > Is there any free couchdb data that I can load up into my
> > > > database and
> > play
> > > > with it? Say I'd like
> > > > 1000 documents of recipes/song names/city names or something.
> > > > Any
> > ideas?
> > > >
> > >
> > >
> > > Use http://json-generator.appspot.com/ and do a _bulk_docs upload
> > >
> > https://couchdb.readthedocs.org/en/latest/api/database.html#post-db-bulk-docs
> > > 1000 docs can be done in 1 POST easily.
> > >
> > > Alternatively you can replicate the npm registry (boooooring data
> > > I know) from http://isaacs.iriscouch.com/registry and cancel the
> > > replication after you get ~ 1000 docs. It's a 35GiB db so you
> > > don't want to finish.
> > >
> > > A+
> > > Dave
> > >
> > >
> >
> >
> >
> Hi Simon, I tried that little python app and this is the issue that I
> encountered:
> 
> % python gen_docs.py
> Traceback (most recent call last):
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
> line 548, in <module>
>     main()
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
> line 530, in main
>     known_paths = addusersitepackages(known_paths)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
> line 266, in addusersitepackages
>     user_site = getusersitepackages()
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
> line 241, in getusersitepackages
>     user_base = getuserbase() # this will also set USER_BASE
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py",
> line 231, in getuserbase
>     USER_BASE = get_config_var('userbase')
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py",
> line 516, in get_config_var
>     return get_config_vars().get(name)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sysconfig.py",
> line 449, in get_config_vars
>     import re
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py",
> line 105, in <module>
>     import sre_compile
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_compile.py",
> line 14, in <module>
>     import sre_parse
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_parse.py",
> line 17, in <module>
>     from sre_constants import *
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/sre_constants.py",
> line 18, in <module>
>     from _sre import MAXREPEAT
> ImportError: cannot import name MAXREPEAT

Mime
View raw message