Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Python client error

5 replies [Last post]
  • Login or register to post comments
Thu, 03/22/2012 - 08:00
yriveiro
Offline
Joined: 03/22/2012
Groups: None

Hi,

I'm trying to load 500K docs in a couchbase cluster, I have shards with 100k docs, each shards is loaded via same python script

The three first shards were loaded without any issue, but the fourth shard reported this error

Exception in thread dispatcher-thread (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
  File "/usr/lib64/python2.6/threading.py", line 484, in run
  File "/usr/lib/python2.6/site-packages/couchbase/couchbaseclient.py", line 661, in _start_dispatcher
  File "/usr/lib/python2.6/site-packages/couchbase/couchbaseclient.py", line 968, in dispatch
  File "/usr/lib64/python2.6/Queue.py", line 174, in get
<type 'exceptions.TypeError'>: 'NoneType' object is not callable

Now when I execute the loader script I have always this issue

Someone have idea what this could be?

Thanks

Top
  • Login or register to post comments
Thu, 03/22/2012 - 12:59
john
Offline
Joined: 01/05/2012
Groups: None

Hi Yago,

I saw similar behavior recently while updating the client to its current version 0.6. However, I wasn't able to recreate the issue after it cleared up on its own. I've created an issue that's being tracked here - http://www.couchbase.com/issues/browse/PYCBC-26.

Thanks for reporting this error.

-- John

Top
  • Login or register to post comments
Fri, 03/23/2012 - 03:47
yriveiro
Offline
Joined: 03/22/2012
Groups: None

Hi,

Reading my server logs and other debug I did some identifications.

First, I didn't close the couchbaseclient with the done() method at the end of script, now the issue doesn't appears when script finish.

Second, my server exhaust the memory and crash the python script, in this case this exception is raise some times.

One thing I forget to say

My environment is a Centos OS 6 with python 2.6 and a Mac OSX lion 10.7.3 whit python 2.7, the version of the couchbase client is the 0.6

Regards

/Yago

Top
  • Login or register to post comments
Thu, 05/03/2012 - 11:40
BigBlueHat
Offline
Joined: 01/28/2011
Groups: None

Sorry for the trouble with the Python SDK. Would you be able to upload some sample Python that generates this error? That'd be a huge help to narrow down where and when it's happening--as I've not seen it, myself.

Are you using the Python SDK 0.6 download from...
http://www.couchbase.com/develop/python/next
...or a version you've built from the Github repo?
https://github.com/couchbase/couchbase-python-client

There is a bug listed in our issue tracker, but it references the 0.5 version:
http://www.couchbase.com/issues/browse/PYCBC-26

If you can confirm the version, etc, that'd be great.

Thanks,
Benjamin

Top
  • Login or register to post comments
Fri, 01/04/2013 - 13:41
chrhlnd
Offline
Joined: 01/04/2013
Groups: None

Wanted to add I ran into this using

https://github.com/couchbase/couchbase-python-client/tree/couchbase-181

from what I can see the client.py: Bucket is missing the __del__ method that the main branch has. I cut and paste that in which stops the exception, and has us waiting 2 seconds for shutdown.

Top
  • Login or register to post comments
Fri, 03/15/2013 - 22:45
msalmon
Offline
Joined: 03/15/2013
Groups: None

this happened to me today when testing importing ~100k docs that are each approx 100bytes in length. python 2.7.3 on mac / terminal / bash

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker