couchapp / couchapp

Utilities to make standalone CouchDB application development simple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

init command does not work

leolivier opened this issue · comments

Hi,
I'm trying to create a new couchapp on a raspberry pi 2 and it does not work (despite merge #227) :

/mnt/ssd/dev $ couchapp -v -d init naughtapp
2017-01-27 19:21:39 [ERROR] /mnt/ssd/dev/naughtapp directory doesn't exist.
2017-01-27 19:21:39 [CRITICAL] [Errno 2] No such file or directory: '/mnt/ssd/dev/naughtapp/.couchapprc'

If I create myself the directory, I only get 2 files created (which is not enough compared to what the getting started doc says):

/mnt/ssd/dev $ mkdir naughtapp
/mnt/ssd/dev $ couchapp -v -d init naughtapp
/mnt/ssd/dev $ tree -a naughtapp/
naughtapp/
├── .couchappignore
└── .couchapprc

0 directories, 2 files

So what's going wrong?

hmm.. I cannot reproduce that error on master branch.
Which version of couchapp are you using?

couchapp --version
Couchapp (version 1.0.2)
Copyright 2008-2010 Benoît Chesneau benoitc@e-engura.org
Licensed under the Apache License, Version 2.0.

I guess that I did not fix the initiation of new dir correctly until #229 merged.
How about giving master branch a try:

pip uninstall couchapp   # uninstall 1.0.2 first
pip install git+https://github.com/couchapp/couchapp.git

Works great this way!
Thanks iblis17