[Pythonmac-SIG] traceback looking for _bsddb

Lincoln Rutledge lrutledge at realemail.net
Mon Aug 30 16:15:45 CEST 2004


Hi Python Mac'ers,
I am running 10.3.5 with Jack Jansen's goodies installed, Tcl/Tk and
IDLE are working.  I am using Phil Pearson's cool cli blog program
bzero, and it is looking for _bsddb.  Here is the traceback:


> Publish
> opening state file /Users/lrutled/.bzero/the rock garden/directory.dbm
> Traceback (most recent call last):
>   File "/usr/local/bin/bzero", line 40, in ?
>     go()
>   File "/usr/local/bin/bzero", line 37, in go
>     main.main()
>   File "b0lib/main.py", line 194, in main
>   File "b0lib/poll.py", line 153, in main
>   File "b0lib/publish.py", line 28, in __init__
>   File
>  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/anydbm.py",
>   line 82, in open
>     mod = __import__(result)
>   File
>  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/dbhash.py",
>   line 5, in ?
>     import bsddb
>   File
>  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/bsddb/__init__.py",
>   line 40, in ?
>     import _bsddb
> ImportError: No module named _bsddb
> Exception exceptions.AttributeError: "Publisher instance has no
> attribute 'state'" in <bound method Publisher.__del__ of
> <b0lib.publish.Publisher instance at 0x579918>> ignored

I do not have Apple Developer Tools or the BSD SDK installed, so that
may be the problem.  Or a path problem or deity knows.  If anyone has a
clue for me, I'd sure appreciate it :)  Phil thinks I'm missing
something on the Python side, and I believe him as he has bzero running
on a couple other platforms.

Pack-man doesn't show any addons that I don't have that look promising,
but maybe I need to investigate that some more.  Or maybe the prefix "_"
shouldn't be there (import _bsddb)...

Anyhoo, thanks,

Lincoln

The salesman and the system analyst took off to spend a weekend in the
forest, hunting bear. They'd rented a cabin, and, when they got there,
took their backpacks off and put them inside. At which point the
salesman turned to his friend, and said, "You unpack while I go and find
us a bear." Puzzled, the analyst finished unpacking and then went and
sat down on the porch. Soon he could hear rustling noises in the forest.
The noises got nearer -- and louder -- and suddenly there was the
salesman, running like hell across the clearing toward the cabin,
pursued by one of the largest and most ferocious grizzly bears the
analyst had ever seen. "Open the door!", screamed the salesman. The
analyst whipped open the door, and the salesman ran to the door,
suddenly stopped, and stepped aside. The bear, unable to stop, continued
through the door and into the cabin. The salesman slammed the door
closed and grinned at his friend. "Got him!", he exclaimed, "now, you
skin this one and I'll go rustle us up another!"



More information about the Pythonmac-SIG mailing list