lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

_replicator database cannot be used #220

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Connect to the dbs (couchdb = couchdb.Server('http://localhost:5984)
2. Try to use the '_replicator' to create replication documents (db = 
couch['_replicator'] . '_users' is usable so looks like the "_" is not the 
problem.

What is the expected output? What do you see instead?
'_replicator' should be used without problems. This is the error:

  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/CouchDB-0.8-py2.7.egg/couchdb/client.py", line 136, in __getitem__
    db = Database(self.resource(name), validate_dbname(name))
  File "/usr/local/lib/python2.7/dist-packages/CouchDB-0.8-py2.7.egg/couchdb/client.py", line 1075, in validate_dbname
    raise ValueError('Invalid database name')
ValueError: Invalid database name

What version of the product are you using? On what operating system?
CouchDB.0.8 from easy_install. OS is Mint 14, but also failed on Debian 6

Original issue reported on code.google.com by rei...@gmail.com on 6 Apr 2013 at 3:32

GoogleCodeExporter commented 8 years ago
Looks like CouchDBKit also had this problem

http://comments.gmane.org/gmane.comp.db.couchdb.couchdbkit.general/196

Original comment by rei...@gmail.com on 6 Apr 2013 at 3:35

GoogleCodeExporter commented 8 years ago
Fixed in r00d6a78a44cf.

Original comment by kxepal on 6 Apr 2013 at 6:08

GoogleCodeExporter commented 8 years ago

Original comment by kxepal on 6 Apr 2013 at 6:09

GoogleCodeExporter commented 8 years ago
Oh, actual fix was in r43d8da1f4b27, but r00d6a78a44cf solved whole problem 
with system databases.

Original comment by kxepal on 6 Apr 2013 at 6:14

GoogleCodeExporter commented 8 years ago
Thanks for your reply. Maybe it will be need a new version release of the lib, 
i've compiled the latest version and works OK

Original comment by rei...@gmail.com on 7 Apr 2013 at 2:27