Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Installing and using Berkeley DB XML with Python

Posted on 2004-10-05
6
Medium Priority
?
834 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 October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
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 strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…

636 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