FS#8253 - python [testing] and db

Attached to Project: Arch Linux
Opened by Jasper van der Marel (jvandermarel) - Monday, 08 October 2007, 06:11 GMT
Last edited by Jason Chu (jason) - Tuesday, 16 October 2007, 21:13 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Jason Chu (jason)
Andreas Radke (AndyRTR)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Python from testing does not contain _bsddb.
I guess the combo python and db from testing does not work.
The problem occurs when installing e.g. miro.

Reverting back to extra/python and extra/db solves the problem for now.
Reverting to extra/db also means revering back apache,openldap etc.


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Jason Chu (jason)
Tuesday, 16 October 2007, 21:13 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Monday, 08 October 2007, 19:12 GMT
[root@workstation64 andyrtr]# pacman -Ql python | grep bsddb
python /usr/lib/python2.5/bsddb/__init__.py
python /usr/lib/python2.5/bsddb/__init__.pyc
python /usr/lib/python2.5/bsddb/__init__.pyo
python /usr/lib/python2.5/bsddb/db.py
python /usr/lib/python2.5/bsddb/db.pyc
python /usr/lib/python2.5/bsddb/db.pyo
python /usr/lib/python2.5/bsddb/dbobj.py
python /usr/lib/python2.5/bsddb/dbobj.pyc
python /usr/lib/python2.5/bsddb/dbobj.pyo
python /usr/lib/python2.5/bsddb/dbrecio.py
python /usr/lib/python2.5/bsddb/dbrecio.pyc
python /usr/lib/python2.5/bsddb/dbrecio.pyo
python /usr/lib/python2.5/bsddb/dbshelve.py
python /usr/lib/python2.5/bsddb/dbshelve.pyc
python /usr/lib/python2.5/bsddb/dbshelve.pyo
python /usr/lib/python2.5/bsddb/dbtables.py
python /usr/lib/python2.5/bsddb/dbtables.pyc
python /usr/lib/python2.5/bsddb/dbtables.pyo
python /usr/lib/python2.5/bsddb/dbutils.py
python /usr/lib/python2.5/bsddb/dbutils.pyc
python /usr/lib/python2.5/bsddb/dbutils.pyo
python /usr/lib/python2.5/bsddb/test/__init__.py
python /usr/lib/python2.5/bsddb/test/__init__.pyc
python /usr/lib/python2.5/bsddb/test/__init__.pyo
python /usr/lib/python2.5/bsddb/test/test_1413192.py
python /usr/lib/python2.5/bsddb/test/test_1413192.pyc
python /usr/lib/python2.5/bsddb/test/test_1413192.pyo
python /usr/lib/python2.5/bsddb/test/test_all.py
python /usr/lib/python2.5/bsddb/test/test_all.pyc
python /usr/lib/python2.5/bsddb/test/test_all.pyo
python /usr/lib/python2.5/bsddb/test/test_associate.py
python /usr/lib/python2.5/bsddb/test/test_associate.pyc
python /usr/lib/python2.5/bsddb/test/test_associate.pyo
python /usr/lib/python2.5/bsddb/test/test_basics.py
python /usr/lib/python2.5/bsddb/test/test_basics.pyc
python /usr/lib/python2.5/bsddb/test/test_basics.pyo
python /usr/lib/python2.5/bsddb/test/test_compare.py
python /usr/lib/python2.5/bsddb/test/test_compare.pyc
python /usr/lib/python2.5/bsddb/test/test_compare.pyo
python /usr/lib/python2.5/bsddb/test/test_compat.py
python /usr/lib/python2.5/bsddb/test/test_compat.pyc
python /usr/lib/python2.5/bsddb/test/test_compat.pyo
python /usr/lib/python2.5/bsddb/test/test_cursor_pget_bug.py
python /usr/lib/python2.5/bsddb/test/test_cursor_pget_bug.pyc
python /usr/lib/python2.5/bsddb/test/test_cursor_pget_bug.pyo
python /usr/lib/python2.5/bsddb/test/test_dbobj.py
python /usr/lib/python2.5/bsddb/test/test_dbobj.pyc
python /usr/lib/python2.5/bsddb/test/test_dbobj.pyo
python /usr/lib/python2.5/bsddb/test/test_dbshelve.py
python /usr/lib/python2.5/bsddb/test/test_dbshelve.pyc
python /usr/lib/python2.5/bsddb/test/test_dbshelve.pyo
python /usr/lib/python2.5/bsddb/test/test_dbtables.py
python /usr/lib/python2.5/bsddb/test/test_dbtables.pyc
python /usr/lib/python2.5/bsddb/test/test_dbtables.pyo
python /usr/lib/python2.5/bsddb/test/test_env_close.py
python /usr/lib/python2.5/bsddb/test/test_env_close.pyc
python /usr/lib/python2.5/bsddb/test/test_env_close.pyo
python /usr/lib/python2.5/bsddb/test/test_get_none.py
python /usr/lib/python2.5/bsddb/test/test_get_none.pyc
python /usr/lib/python2.5/bsddb/test/test_get_none.pyo
python /usr/lib/python2.5/bsddb/test/test_join.py
python /usr/lib/python2.5/bsddb/test/test_join.pyc
python /usr/lib/python2.5/bsddb/test/test_join.pyo
python /usr/lib/python2.5/bsddb/test/test_lock.py
python /usr/lib/python2.5/bsddb/test/test_lock.pyc
python /usr/lib/python2.5/bsddb/test/test_lock.pyo
python /usr/lib/python2.5/bsddb/test/test_misc.py
python /usr/lib/python2.5/bsddb/test/test_misc.pyc
python /usr/lib/python2.5/bsddb/test/test_misc.pyo
python /usr/lib/python2.5/bsddb/test/test_pickle.py
python /usr/lib/python2.5/bsddb/test/test_pickle.pyc
python /usr/lib/python2.5/bsddb/test/test_pickle.pyo
python /usr/lib/python2.5/bsddb/test/test_queue.py
python /usr/lib/python2.5/bsddb/test/test_queue.pyc
python /usr/lib/python2.5/bsddb/test/test_queue.pyo
python /usr/lib/python2.5/bsddb/test/test_recno.py
python /usr/lib/python2.5/bsddb/test/test_recno.pyc
python /usr/lib/python2.5/bsddb/test/test_recno.pyo
python /usr/lib/python2.5/bsddb/test/test_sequence.py
python /usr/lib/python2.5/bsddb/test/test_sequence.pyc
python /usr/lib/python2.5/bsddb/test/test_sequence.pyo
python /usr/lib/python2.5/bsddb/test/test_thread.py
python /usr/lib/python2.5/bsddb/test/test_thread.pyc
python /usr/lib/python2.5/bsddb/test/test_thread.pyo
python /usr/lib/python2.5/lib-dynload/_bsddb.so
python /usr/lib/python2.5/test/test_bsddb.py
python /usr/lib/python2.5/test/test_bsddb.pyc
python /usr/lib/python2.5/test/test_bsddb.pyo
python /usr/lib/python2.5/test/test_bsddb185.py
python /usr/lib/python2.5/test/test_bsddb185.pyc
python /usr/lib/python2.5/test/test_bsddb185.pyo
python /usr/lib/python2.5/test/test_bsddb3.py
python /usr/lib/python2.5/test/test_bsddb3.pyc
python /usr/lib/python2.5/test/test_bsddb3.pyo


all seems to be there. this is x86_64. i686 was told me also to be included. so what's not working?
Comment by Andreas Radke (AndyRTR) - Monday, 08 October 2007, 19:16 GMT
and miro works well here
Comment by Jasper van der Marel (jvandermarel) - Monday, 08 October 2007, 19:33 GMT
When starting miro :

File "/usr/lib/python2.5/bsddb/__init__.py", line 51, in <module>
import _bsddb
ImportError: No module named _bsddb

Using db-4.6.19-1 (testing) and python-2.5.1-2 (testing) on a i686 machine.
When running python it also cannot load bsddb.

Running db and python from core/extra loads bsddb
I also looked if the module existed by running the same listing as described above. It does.
Comment by Jasper van der Marel (jvandermarel) - Monday, 08 October 2007, 19:36 GMT Comment by Matthias Hartner (matsche) - Tuesday, 09 October 2007, 09:14 GMT
running gpodder from [AUR] as root is working without a problem! It seems to be a problem with a permission! As a normal user i get the same error as posted in the forum! hmmm....
Comment by Matthias Hartner (matsche) - Tuesday, 09 October 2007, 09:16 GMT
Traceback (most recent call last):
File "/usr/bin/gpodder", line 148, in <module>
sys.exit( main())
File "/usr/bin/gpodder", line 109, in main
from gpodder import console
File "/usr/lib/python2.5/site-packages/gpodder/console.py", line 24, in <module>
from libpodcasts import load_channels
File "/usr/lib/python2.5/site-packages/gpodder/libpodcasts.py", line 77, in <module>
class ChannelSettings(object):
File "/usr/lib/python2.5/site-packages/gpodder/libpodcasts.py", line 78, in ChannelSettings
storage = shelve.open( libgpodder.gPodderLib().channel_settings_file)
File "/usr/lib/python2.5/shelve.py", line 225, in open
return DbfilenameShelf(filename, flag, protocol, writeback)
File "/usr/lib/python2.5/shelve.py", line 209, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
File "/usr/lib/python2.5/anydbm.py", line 82, in open
mod = __import__(result)
File "/usr/lib/python2.5/dbhash.py", line 5, in <module>
import bsddb
File "/usr/lib/python2.5/bsddb/__init__.py", line 51, in <module>
import _bsddb
ImportError: No module named _bsddb


gpodder 0.10.0

Comment by Jason Chu (jason) - Tuesday, 09 October 2007, 17:25 GMT
You don't need a program to test this, just type:
python
import bsddb

I have verified that the lib-dynload/_bsddb.so file doesn't exist in i686 python. I suspect python just needs a rebuild.
Comment by Jason Chu (jason) - Tuesday, 09 October 2007, 18:17 GMT
I've updated python in testing for i686. There should be no more problems there.
Comment by Jasper van der Marel (jvandermarel) - Tuesday, 09 October 2007, 18:17 GMT
I changed the rights on /usr/lib/python2.5/bsddb to 777 and everything works.
It is, like matsche suggested a rights question. It seems the rights on the subdir bsddb aren't set to the right values by pacman.
With this workaround everything works. Please confirm.
Comment by Jasper van der Marel (jvandermarel) - Tuesday, 09 October 2007, 18:26 GMT
Mmm...double checked by reinstalling testing/python and testing/db...
Same error (no bsddb). Packages are from main archlinux server
Comment by Andreas Radke (AndyRTR) - Tuesday, 16 October 2007, 21:06 GMT
can this be closed now?

Loading...