Solved

Installing and using Berkeley DB XML with Python

Posted on 2004-10-05
6
818 Views
Last Modified: 2010-08-05
Can someone help me by giving step by step instructions on how to get started with Berkeley DB XML and Python.

I've downloaded DB XML binaries (http://www.sleepycat.com/products/xml.shtml) and the Berkeley DB bindings for Python (http://pybsddb.sourceforge.net/).

When I try to run my test code it fails with:

    from dbxml import *
ImportError: No module named dbxml

I've found the dbxml.py in the DB XML source distribution?
But how do I install this module?
0
Comment
Question by:mbutu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:hweber
ID: 12355968
I don't know if the Python bindings for the Berkeley DB support the Berkeley DB XML at all, but I have the bindings running for the "normal" version.

The Python bindings contain C-code that needs to be compiled for your platform. If you are working on Windows, the build process for Visual C++ (up to Python 2.3.x) looks like this:

Unpack the ZIP-file to a temporary directory.
Open the project file contained in the ZIP-file.
Select db_static as current build target.
Select Release Static as configuration.
Edit the target options:
  Go to the C/C++ tab and select Code generation.
  Select Multithreaded DLL.
Build the target.
Use "python setup.py install" from the directory you unpacked the sources to.

On Linux you probably can unpack the tar.gz file and call "python setup.py install" directly.
0
 

Author Comment

by:mbutu
ID: 12360688
I found the solution. I just go to apt-get.org and download the right package and install it.
0
 
LVL 9

Expert Comment

by:rjkimble
ID: 12362283
What's the right package?
0
 

Author Comment

by:mbutu
ID: 12393166
I think I found it by searching for dbxml.

But now it seems to have disappeared: http://www1.apt-get.org/search.php?query=dbxml&submit=&arch%5B%5D=i386&arch%5B%5D=all

Sebastien Ducoulombier <sebastien.ducoulombier@lesdeveloppementsdurables.com> seems to be the maintainer of the debian package.
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12857778
PAQed with points refunded (400)

modulo
Community Support Moderator
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Less strange, but still introduction This introduction was added (1st August, 2011) to reflect some reactions.  Firstly, the term basics in the title of the article...  As any other word, it is a symbol with meaning attached to the word by some a…
Installing Python 2.7.3 version on Windows operating system For installing Python first we need to download Python's latest version from URL" www.python.org " You can also get information on Python scripting language from the above mentioned we…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question