I added unitests to couchapp refactor branch and I think it's ready to
be merged with master. So if you have time to test it please let me
know if you find anything wrong.
- benoît
Hi benoit,
cool ;-) ... I can run a new installation tonight and give feedback ...
Cheers
Andy
> cool ;-) ... I can run a new installation tonight and give feedback ...
>
Thanks :) I will use it all this afternoon in production so will see
if I missed smth too.
- benoît
> by the way ... what is the best way to uninstall couchapp? Sure, I can
> delete all the folders and files .. but that's kind of annoying in a
> way ;-)
>
> Just a thought coming in my brain ... ideas?
>
I delete by hand :/ For testing it's always better to do python
setup.py develop.
- benoît.
ok I cloned from refactor branch and installed couchapp. Attached you
can find the output from python setup.py develop. Before that I deleted
/usr/local/lib/python2.6/dist-packages/Couchapp-0.2-py2.6.egg
/urs/local/bin/couchapp
But running couchapp gives still the same problem with httplib2:
$ couchapp
/usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:29:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
/usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg/httplib2/__init__.py:44:
DeprecationWarning: the sha module is deprecated; use the hashlib module
instead
Usage: couchapp [options] cmd
couchapp: error: incorrect number of arguments
I did not expect taht. Am I wrong or didn't you integrate httplib2? Or
what else is wrong here?
Thanks a lot
Cheers
Andy
benoit
that did it! Thanks a lot. Now I know how to checkout a branch! I've got
Couchapp==0.3 now and will test ;-)
Cheers
Andy
Her's my first report.
$ clone git://github.com/langalex/boom_amazing.git boom_amazing
$ cd boom_amazing
$ couchapp init
Traceback (most recent call last):
File "/usr/local/bin/couchapp", line 8, in <module>
load_entry_point('Couchapp==0.3', 'console_scripts', 'couchapp')()
File
"/home/duke/Documents/downloads/db/couchdb/couchapp/python/couchapp/bin/couchapp_cli.py",
line 125, in main
cli = CouchappCli(options.verbose)
File
"/home/duke/Documents/downloads/db/couchdb/couchapp/python/couchapp/bin/couchapp_cli.py",
line 37, in __init__
self.ui = UI(verbose=verbose, logging_handler=console)
File
"/home/duke/Documents/downloads/db/couchdb/couchapp/python/couchapp/ui.py",
line 42, in __init__
self.readconfig(rcpath())
NameError: global name 'rcpath' is not defined
Any idea what went wrong?
Installation report:
-----------------------------------------------------------------
$ sudo python setup.py develop
running develop
running egg_info
deleting python/Couchapp.egg-info/requires.txt
writing python/Couchapp.egg-info/PKG-INFO
writing top-level names to python/Couchapp.egg-info/top_level.txt
writing dependency_links to
python/Couchapp.egg-info/dependency_links.txt
writing entry points to python/Couchapp.egg-info/entry_points.txt
reading manifest file 'python/Couchapp.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python/Couchapp.egg-info/SOURCES.txt'
running build_ext
building 'couchapp/contrib/simplejson._speedups' extension
creating build
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/python
creating build/temp.linux-i686-2.6/python/couchapp
creating build/temp.linux-i686-2.6/python/couchapp/contrib
creating build/temp.linux-i686-2.6/python/couchapp/contrib/simplejson
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c
python/couchapp/contrib/simplejson/_speedups.c -o
build/temp.linux-i686-2.6/python/couchapp/contrib/simplejson/_speedups.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
build/temp.linux-i686-2.6/python/couchapp/contrib/simplejson/_speedups.o
-o python/couchapp/contrib/simplejson/_speedups.so
Creating /usr/local/lib/python2.6/dist-packages/Couchapp.egg-link (link
to python)
Couchapp 0.3 is already the active version in easy-install.pth
Installing couchapp script to /usr/local/bin
Installed /home/duke/Documents/downloads/db/couchdb/couchapp/python
Processing dependencies for Couchapp==0.3
Finished processing dependencies for Couchapp==0.3
-----------------------------------------------------------------
Cheers
Andy
> NameError: global name 'init' is not defined
>
That was a bug. Fixed in lates tip. Thanks ! :)
- benoît
After git fetch I got another error message:
Traceback (most recent call last):
File "/usr/local/bin/couchapp", line 8, in <module>
load_entry_point('Couchapp==0.3', 'console_scripts', 'couchapp')()
File
"/usr/local/lib/python2.6/dist-packages/Couchapp-0.3-py2.6-linux-i686.egg/couchapp/bin/couchapp_cli.py",
line 199, inmain
cli.init(appdir, dburl, options.verbose)
TypeError: init() takes exactly 3 arguments (4 given)
Just be sure i've got the newest version ... yes it is because it's
cli.init now ;-)
hey don't worry ... this is development. I got a new report here:
Traceback (most recent call last):
File "/usr/local/bin/couchapp", line 8, in <module>
load_entry_point('Couchapp==0.3', 'console_scripts', 'couchapp')()
File
"/usr/local/lib/python2.6/dist-packages/Couchapp-0.3-py2.6-linux-i686.egg/couchapp/bin/couchapp_cli.py",
line 199, inmain
cli.init(appdir, dburl)
File
"/usr/local/lib/python2.6/dist-packages/Couchapp-0.3-py2.6-linux-i686.egg/couchapp/bin/couchapp_cli.py",
line 51, in init
if verbose >= 1:
NameError: global name 'verbose' is not defined
...