[Python Client] Error when running benchmark.py

Showing 1-1 of 1 messages
[Python Client] Error when running benchmark.py Joe Hillenbrand 9/28/12 2:37 PM
I'm trying out Couchbase for the first time. I tried reporting this in Jira, but I don't have permissions.

My setup is as follows:

Ubuntu Server 12.04.1 64-bit, Couchbase-2.0-beta, VirutalBox 4.2 VM, Python 2.7.3, 1GB RAM, 4 Cores

I just tried running benchmark.py from the github repo (ab3170959) on a fresh VM and it ran into an error.

joe@couchtest:~/couchbase-python-client (master)$ python couchbase/benchmarks/benchmark.py
Preparing data...
PythonMemcache
  Set data...
    cmds/sec: 1235.09524185
  Get data...
    cmds/sec: 1240.61652836
MemcachedClient
  Set data...
    cmds/sec: 1752.96316862
  Get data...
    cmds/sec: 2100.30476749
VBucketAwareClient
  Set data...
    cmds/sec: 2160.82053381
  Get data...
    cmds/sec: 2116.85847056
CouchbaseClient
  Set data...
    cmds/sec: 508.925204624
  Get data...
    cmds/sec: 487.211121589
Couchbase
[2012-09-28 14:11:20,309] - [rest_client] [140412629387008] - ERROR - http://127.0.0.1:8091/pools/default/buckets/default error 401 reason: 
Traceback (most recent call last):
  File "couchbase/benchmarks/benchmark.py", line 153, in <module>
    main()
  File "couchbase/benchmarks/benchmark.py", line 147, in main
    bench = getattr(sys.modules[__name__], name + 'Bench')()
  File "couchbase/benchmarks/benchmark.py", line 125, in __init__
    self.client = Couchbase(HOST, 'Administrator', 'asdasd')['default']
  File "/usr/local/lib/python2.7/dist-packages/couchbase/client.py", line 141, in __getitem__
    return self.bucket(key)
  File "/usr/local/lib/python2.7/dist-packages/couchbase/client.py", line 97, in bucket
    return Bucket(bucket_name, self)
  File "/usr/local/lib/python2.7/dist-packages/couchbase/client.py", line 196, in __init__
    self.info = rest.get_bucket(self.name)
  File "/usr/local/lib/python2.7/dist-packages/couchbase/rest_client.py", line 699, in get_bucket
    error=status)
couchbase.exception.BucketUnavailableException: unable to find bucket default on the host @ 127.0.0.1
Exception AttributeError: "'Bucket' object has no attribute 'mc_client'" in <bound method Bucket.__del__ of <couchbase.client.Bucket object at 0x2f051d0>> ignored

joe@couchtest:~$ curl http://127.0.0.1:8091/pools/default/buckets/default | python -mjson.tool
{
    "authType": "sasl",
    "autoCompactionSettings": false,
    "basicStats": {
        "dataUsed": 24348825,
        "diskFetches": 0.0,
        "diskUsed": 79856466,
        "itemCount": 100000,
        "memUsed": 70716824,
        "opsPerSec": 0.0,
        "quotaPercentUsed": 21.61564704699394,
        "viewOps": 0
    },
    "bucketCapabilities": [
        "touch",
        "couchapi"
    ],
    "bucketCapabilitiesVer": "",
    "bucketType": "membase",
    "controllers": {
        "compactAll": "/pools/default/buckets/default/controller/compactBucket",
        "compactDB": "/pools/default/buckets/default/controller/compactDatabases",
        "flush": "/pools/default/buckets/default/controller/doFlush"
    },
    "ddocs": {
        "uri": "/pools/default/buckets/default/ddocs"
    },
    "fastWarmupSettings": false,
    "localRandomKeyUri": "/pools/default/buckets/default/localRandomKey",
    "name": "default",
    "nodeLocator": "vbucket",
    "nodes": [
        {
            "clusterCompatibility": 131072,
            "clusterMembership": "active",
            "couchApiBase": "http://127.0.0.1:8092/default",
            "hostname": "127.0.0.1:8091",
            "interestingStats": {
                "curr_items": 107901,
                "curr_items_tot": 107901,
                "vb_replica_curr_items": 0
            },
            "mcdMemoryAllocated": 796,
            "mcdMemoryReserved": 796,
            "memoryFree": 81588224,
            "memoryTotal": 1043599360,
            "os": "x86_64-unknown-linux-gnu",
            "ports": {
                "direct": 11210,
                "proxy": 11211
            },
            "replication": 0.0,
            "status": "healthy",
            "systemStats": {
                "cpu_utilization_rate": 10.687022900763358,
                "swap_total": 1069543424,
                "swap_used": 104169472
            },
            "thisNode": true,
            "uptime": "1398",
            "version": "2.0.0-1723-rel-community"
        }
    ],
    "proxyPort": 0,
    "quota": {
        "ram": 327155712,
        "rawRAM": 327155712
    },
    "replicaIndex": true,
    "replicaNumber": 1,
    "saslPassword": "",
    "stats": {
        "directoryURI": "/pools/default/buckets/default/statsDirectory",
        "nodeStatsListURI": "/pools/default/buckets/default/nodes",
        "uri": "/pools/default/buckets/default/stats"
    },
    "streamingUri": "/pools/default/bucketsStreaming/default?bucket_uuid=08527eeca14b382f7fad9a6557ebe67c",
    "uri": "/pools/default/buckets/default?bucket_uuid=08527eeca14b382f7fad9a6557ebe67c",
    "uuid": "08527eeca14b382f7fad9a6557ebe67c",
    "vBucketServerMap": {
        "hashAlgorithm": "CRC",
        "numReplicas": 1,
        "serverList": [
            "127.0.0.1:11210"
        ],
        "vBucketMap": [
            [
                0,
                -1
            ],
            [
                0,
                -1
            ],
            [
                0,
                -1
            ],

... [0,-1] continues for several pages.