Solved

Installing and using Berkeley DB XML with Python

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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

"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 …
Sequence is something that used to store data in it in very simple words. Let us just create a list first. To create a list first of all we need to give a name to our list which I have taken as “COURSE” followed by equals sign and finally enclosed …
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
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…

756 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