Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Error of 'cbrestore' command.

3 replies [Last post]
  • Login or register to post comments
Sun, 02/03/2013 - 19:47
dew_ice
Offline
Joined: 09/05/2012
Groups: None

hi guys,

when i execute command 'cbrestore', I got error as " requires python version 2.6 or greater",

but in my centos, my python version is 2.7 ( as below diagram).

how can I fix the problem? thanks a lot!

Top
  • Login or register to post comments
Sun, 02/03/2013 - 20:03
dew_ice
Offline
Joined: 09/05/2012
Groups: None

For additional, I find a code frag in cript 'cbrestore'.

it seems that if import sqlite3 failed, it will print that message.

but in my centos, sqlite3 is ok for import.

how the problem is ?

anyone who can show some comnets? thanks

 

Top
  • Login or register to post comments
Mon, 02/04/2013 - 00:03
dew_ice
Offline
Joined: 09/05/2012
Groups: None

other input:

[root@localhost ~]# python
Python 2.4.3 (#1, Jan 9 2013, 06:47:03)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
Traceback (most recent call last):
File "", line 1, in ?
ImportError: No module named sqlite3
>>>

it seems that i can't import sqlite3 in python...
is it the root cause?

Top
  • Login or register to post comments
Thu, 02/07/2013 - 11:06
Neo-matrix
Offline
Joined: 10/15/2012
Groups: None

Hi,
mkdir -p ~/bin && ln -s /usr/bin/python26 ~/bin/python && export PATH=~/bin:$PATH

Could you please try the above command and then let me know if it solves your issue.

Thanks,
Neo

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