dbm.error:数据库类型是dbm.bsd,但模块不可用(Python 3.0)
我正在尝试打开在 2.5 中创建的搁置文件,但出现问题标题中列出的错误。
这些数据不是必需的,但我真的想要它们。
查看 lib\dbm\__init__.py 文件,它可以识别 4 种类型的 dbm 模块,但在我的系统上只找到 dbm.dumb。
有谁知道我怎样才能打开这个?
是否有像dumb.py 文件一样的bsd.py 文件?
我需要安装 2.5 才能使用它吗?
另外,当我创建此文件时,我可能已经在旧安装上安装了 Panda。
Python 安装是 Panda 标准附带的还是这个文件可能已经附带了?
谢谢!
I'm trying to open a shelve file that I created in 2.5, but I get the error I listed in the question title.
The data aren't essential, but I really want them.
Looking at the lib\dbm\__init__.py
file it recognizes 4 types of dbm modules but only finds dbm.dumb on my system.
Does anyone know how I can open this?
Is there a bsd.py file like the dumb.py file?
Would I have to install 2.5 to get at it?
Also, I may have had Panda installed on my old installation when I created this file.
Is the Python installation that comes with Panda standard or might this file have come with it?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
bsddb 是 Python 2.5(以及 2.4 和 2.6...)的一部分,但不是3.0——它被删除了(长话短说……:-)。从 pypi 获取 3.0,将数据恢复为其他形式(sqlite是我个人的推荐),从此过上幸福的生活!-)
bsddb is part of Python 2.5 (AND 2.4 AND 2.6...) but not of 3.0 -- it was removed (long story...:-). Get it for 3.0 from pypi, recover your data into some other form (sqlite is my personal recommendation), and live happily ever after!-)