WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: python 2.x bsddb  (Read 3383 times)

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
python 2.x bsddb
« on: August 18, 2009, 08:13:56 PM »
I am getting the following error:

ImportError: No module named _bsddb

This can be seen by testing bsddb:
python /usr/local/lib/python2.5/test/test_bsddb.py

Does this mean it was not built with the extension?
or was this left out intentionally in favor of a pybsddb extension?
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python 2.x bsddb
« Reply #1 on: August 18, 2009, 11:03:03 PM »
From what I understand Berkely db would need to be build against to support that module.  Perhaps db extension  could be built, and then a bsddb extension created with db as a dep. 

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python 2.x bsddb
« Reply #2 on: August 19, 2009, 07:34:23 PM »
Actually, it would probably be best to build python with full functionality as mentioned in another thread - with openssl bsddb sqlite and maybe tk.  I can maybe get to it eventually, but anyone is free to build it with the deps and submit it.  We would need to stay with the same version unless the maintainers of the pythons dependent apps dont mind rebuilding (pyqt, pygtk, pycairo, etc).

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: python 2.x bsddb
« Reply #3 on: August 24, 2009, 03:58:54 PM »
I'm still getting this error with the python-testing extension. There seems to be problems with the builtin bsddb module from python. There is a separate pybsddb module that can be built for the python bindings to bsddb. The site is here: http://www.jcea.es/programacion/pybsddb.htm. I can build this but would like to wait and see if python will be updated first.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python 2.x bsddb
« Reply #4 on: August 24, 2009, 07:48:16 PM »
I would like to go ahead with the python update, I already have an extension made.  I will pm JLS and see if he does not mind rebuilding his pygtk extensions as part of the update.

I think the seperate python bsddb sounds good and could be made when we update.
« Last Edit: August 24, 2009, 07:50:52 PM by Jason W »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: python 2.x bsddb
« Reply #5 on: August 25, 2009, 11:13:20 AM »
Python and the pygtk extensions will be updated to 2.6.2, and python-bsddb can be an extension.  I will replace the python-testing with the 2.6.2 version and with ssl, tk, and sqlite support hopefully later today.  The python dependent extensions can then be rebuilt against it, tested, and replace the current ones in the repo.