dbm.error:数据库类型是dbm.bsd,但模块不可用(Python 3.0)

发布于 2024-08-02 21:10:47 字数 320 浏览 5 评论 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美煞众生 2024-08-09 21:10:48

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!-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文