couchapp refactor branch

2 views
Skip to first unread message

Benoit Chesneau

unread,
May 26, 2009, 7:03:04 AM5/26/09
to couc...@googlegroups.com
Hi all,

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

AW GOOGLE

unread,
May 26, 2009, 7:17:38 AM5/26/09
to couc...@googlegroups.com
Benoit Chesneau schrieb:
> - benoīt

Hi benoit,

cool ;-) ... I can run a new installation tonight and give feedback ...

Cheers

Andy

Benoit Chesneau

unread,
May 26, 2009, 8:09:51 AM5/26/09
to couc...@googlegroups.com
2009/5/26 AW GOOGLE <andy...@googlemail.com>:

> 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

Andy Wenk

unread,
May 26, 2009, 11:05:39 AM5/26/09
to CouchApp
On 26 Mai, 14:09, Benoit Chesneau <bchesn...@gmail.com> wrote:
> 2009/5/26 AW GOOGLE <andy.w...@googlemail.com>:
>
> > 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?

Cheers

Andy

Benoit Chesneau

unread,
May 26, 2009, 11:52:23 AM5/26/09
to couc...@googlegroups.com
2009/5/26 Andy Wenk <andy...@googlemail.com>:

> 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.

Andreas Wenk

unread,
May 26, 2009, 3:04:16 PM5/26/09
to couc...@googlegroups.com

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

setup_couchapp_develop

Benoit Chesneau

unread,
May 26, 2009, 3:10:01 PM5/26/09
to couc...@googlegroups.com
2009/5/26 Andreas Wenk <andy...@googlemail.com>:
> running develop
> running egg_info
> writing requirements to 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
> Creating /usr/local/lib/python2.6/dist-packages/Couchapp.egg-link (link to python)
> Couchapp 0.2 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.2
> Searching for simplejson==2.0.9
> Best match: simplejson 2.0.9
> Processing simplejson-2.0.9-py2.6-linux-i686.egg
> simplejson 2.0.9 is already the active version in easy-install.pth
>
> Using /usr/local/lib/python2.6/dist-packages/simplejson-2.0.9-py2.6-linux-i686.egg
> /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
> Searching for CouchDB==0.5
> Best match: CouchDB 0.5
> Processing CouchDB-0.5-py2.6.egg
> CouchDB 0.5 is already the active version in easy-install.pth
> Installing couchdb-dump script to /usr/local/bin
> Installing couchpy script to /usr/local/bin
> Installing couchdb-load script to /usr/local/bin
> Installing couchdb-replicate script to /usr/local/bin
>
> Using /usr/local/lib/python2.6/dist-packages/CouchDB-0.5-py2.6.egg
> Searching for httplib2==0.4.0
> Best match: httplib2 0.4.0
> Processing httplib2-0.4.0-py2.6.egg
> httplib2 0.4.0 is already the active version in easy-install.pth
>
> Using /usr/local/lib/python2.6/dist-packages/httplib2-0.4.0-py2.6.egg
> Finished processing dependencies for Couchapp==0.2
>
>

Reading your log you are currently installing couchapp 0.2 and not the
refactor branch. That's why you have this deprecation warnings. Yes
httplib2 has bee integrated so as simplejson and couchdb client.

Just to be sure, here is a link that explain how to install remote branches :
http://github.com/guides/showing-and-tracking-remote-branches

- benoit

- benoit

Andreas Wenk

unread,
May 26, 2009, 3:16:51 PM5/26/09
to couc...@googlegroups.com
Benoit Chesneau wrote:
> 2009/5/26 Andreas Wenk <andy...@googlemail.com>:
>> Benoit Chesneau wrote:
>>> 2009/5/26 Andy Wenk <andy...@googlemail.com>:
>>>
>>>> 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.

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

Andreas Wenk

unread,
May 26, 2009, 3:35:12 PM5/26/09
to couc...@googlegroups.com
Benoit Chesneau wrote:
> 2009/5/26 Andreas Wenk <andy...@googlemail.com>:
>> Benoit Chesneau wrote:
>>> 2009/5/26 Andy Wenk <andy...@googlemail.com>:
>>>
>>>> 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.

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

Andy Wenk

unread,
May 26, 2009, 3:41:21 PM5/26/09
to CouchApp


On May 26, 9:35 pm, Andreas Wenk <andy.w...@googlemail.com> wrote:
> 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?

Ah sorry ... I forgot to install couchapp with python setup.py
install. Did now. After that I run couchapp init again and the result
is:

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 "/usr/local/lib/python2.6/dist-packages/Couchapp-0.3-py2.6-
linux-i686.egg/couchapp/bin/couchapp_cli.py", line 199, inmain
init(appdir, dburl, options.verbose)
NameError: global name 'init' is not defined

...

Benoit Chesneau

unread,
May 26, 2009, 3:44:20 PM5/26/09
to couc...@googlegroups.com
2009/5/26 Andy Wenk <andy...@googlemail.com>:

> NameError: global name 'init' is not defined
>

That was a bug. Fixed in lates tip. Thanks ! :)
- benoît

Andreas Wenk

unread,
May 26, 2009, 4:16:33 PM5/26/09
to couc...@googlegroups.com
> - 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 ;-)

Benoit Chesneau

unread,
May 26, 2009, 4:20:30 PM5/26/09
to couc...@googlegroups.com
2009/5/26 Andreas Wenk <andy...@googlemail.com>:

>
> Benoit Chesneau wrote:
>> 2009/5/26 Andy Wenk <andy...@googlemail.com>:
>>
>>> 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 ;-)
>
>
My bad... fixed and pushed . Thanks :)

Andreas Wenk

unread,
May 26, 2009, 4:34:59 PM5/26/09
to couc...@googlegroups.com
Benoit Chesneau wrote:
> 2009/5/26 Andreas Wenk <andy...@googlemail.com>:
>> Benoit Chesneau wrote:
>>> 2009/5/26 Andy Wenk <andy...@googlemail.com>:
>>>
>>>> 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 ;-)
>>
>>
> My bad... fixed and pushed . Thanks :)

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

...

Reply all
Reply to author
Forward
0 new messages