Solved

Installing and using Berkeley DB XML with Python

Posted on 2004-10-05
6
815 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

"The time has come," the Walrus said, "To talk of many things: Of sets--and lists--and dictionaries-- Of variable kinks-- And why you see it changing not-- And why so strange are strings." This part describes how variables and references (see …
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 modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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…

737 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