This is the error:
[CRITICAL] 'NoneType' object has no attribute 'rfind'
Traceback (most recent call last):
File "/usr/local/bin/couchapp", line 5, in <module>
pkg_resources.run_script('Couchapp==0.5.2', 'couchapp')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/
Extras/lib/python/pkg_resources.py", line 442, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/
Extras/lib/python/pkg_resources.py", line 1160, in run_script
execfile(script_filename, namespace, namespace)
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/EGG-
INFO/scripts/couchapp", line 28, in <module>
couchapp.dispatch.run()
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/dispatch.py", line 29, in run
sys.exit(dispatch(sys.argv[1:]))
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/dispatch.py", line 40, in dispatch
return _dispatch(ui, args)
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/dispatch.py", line 85, in _dispatch
return fun(ui, path, *args, **opts)
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/commands.py", line 73, in push
dbs = ui.get_dbs(dest)
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/ui.py", line 216, in get_dbs
return [client.Database(self, dburl, create=True) for dburl in
dburls]
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/couchdbclient.py", line 200, in __init__
if create and not self.dbname in server.all_dbs():
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/couchdbclient.py", line 83, in all_dbs
result = self.res.get('/_all_dbs', _raw_json=_raw_json)
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/couchdbresource.py", line 101, in get
return self.request('GET', path=path, headers=headers, **params)
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/couchdbresource.py", line 221, in request
resp, connection = self._request(method, uri, payload=payload,
headers=headers)
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/couchdbresource.py", line 143, in _request
http = self._get_connection(uri)
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/couchdbresource.py", line 129, in _get_connection
return pool.get()
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/couchdbresource.py", line 305, in get
connection = self.do_get()
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/couchdbresource.py", line 301, in do_get
return self.make_connection()
File "/Library/Python/2.6/site-packages/Couchapp-0.5.2-py2.6.egg/
couchapp/couchdbresource.py", line 291, in make_connection
connection = httplib.HTTPConnection(self.uri.hostname, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/httplib.py", line 656, in __init__
self._set_hostport(host, port)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/httplib.py", line 662, in _set_hostport
i = host.rfind(':')
AttributeError: 'NoneType' object has no attribute 'rfind'
What is the url you use ?
- benoit
When I specify the port in the url I get this error:
[CRITICAL] invalid literal for int() with base 10: ''
couchapp/couchdbresource.py", line 284, in make_connection
if self.uri.port:
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/urlparse.py", line 81, in port
return int(port, 10)
ValueError: invalid literal for int() with base 10: ''
On Dec 23, 12:49 pm, Benoit Chesneau <bchesn...@gmail.com> wrote:
> > For more options, visit this group athttp://groups.google.com/group/couchapp?hl=en.
http://name:password@http://writersblock.zensoftware.org:26607 isn't a
good url nor http://name:password@http://writersblock.zensoftware.org:26607/sofa
correct url is :
http://name:pass...@writersblock.zensoftware.org:26607/sofa
- benoît
$ couchapp push http://name:pass...@writersblock.zensoftware.org:26607/sofa
[CRITICAL] [Errno 61] Connection refused
Traceback (most recent call last):
File "/usr/local/bin/couchapp", line 5, in <module>
pkg_resources.run_script('Couchapp==0.5.2', 'couchapp')
couchapp/couchdbresource.py", line 154, in _request
http.endheaders()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/httplib.py", line 868, in endheaders
self._send_output()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/httplib.py", line 740, in _send_output
self.send(msg)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/httplib.py", line 699, in send
self.connect()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/httplib.py", line 683, in connect
self.timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/socket.py", line 512, in create_connection
raise error, msg
socket.error: [Errno 61] Connection refused
On Dec 23, 2:58 pm, Benoit Chesneau <bchesn...@gmail.com> wrote:
> On Wed, Dec 23, 2009 at 6:57 PM, Ripter <ripter...@gmail.com> wrote:
> > I tried : http://name:passw...@writersblock.zensoftware.org
> > and http://name:passw...@writersblock.zensoftware.org/sofa
> > andhttp://name:password@http://writersblock.zensoftware.org:26607
> > andhttp://name:password@http://writersblock.zensoftware.org:26607/sofa
>
> > When I specify the port in the url I get this error:
>
> > [CRITICAL] invalid literal for int() with base 10: ''
> > Traceback (most recent call last):
> > File "/usr/local/bin/couchapp", line 5, in <module>
> > pkg_resources.run_script('Couchapp==0.5.2', 'couchapp')
>
> http://name:password@http://writersblock.zensoftware.org:26607isn't a
> good url norhttp://name:password@http://writersblock.zensoftware.org:26607/sofa
>
> correct url is :
>
> http://name:passw...@writersblock.zensoftware.org:26607/sofa
>
> - benoît
> Now I get this error. I can log in if I go to http://writersblock.zensoftware.org/_utils
> and use my name/password so I'm not sure why this isn't working?
>
>
It should work. But in one case you use a port in other not. Not sure
if this is the error. What give you the same line with curl ?
- benoit
On Dec 23, 3:55 pm, Benoit Chesneau <bchesn...@gmail.com> wrote:
> On Wed, Dec 23, 2009 at 9:34 PM, Ripter <ripter...@gmail.com> wrote:
>
> > I feel dumb. I had to look at that for like 10 min before I saw the
> > extra "http://" in there.
>
> np :)
>
> > Now I get this error. I can log in if I go tohttp://writersblock.zensoftware.org/_utils