Windows XP 上的 BitString 错误?

发布于 2024-08-06 14:46:59 字数 526 浏览 4 评论 0原文

斯科特, 我要感谢您的 BitString 程序。我正在努力解释中子探测器的数据,我发现这个模块正是我需要的工具。不幸的是,我还没有让模块成功通过 test-bitstring.py。我运行的是 Windows XP 和 Python 3.1。我已从您的网站下载了文件 bitstring-0.4.1.zip,并将 bitstring.py 和 test-bitstring.py 提取到我的 Python 目录的 \lib 文件夹中。运行 test-bitstring.py 后,我收到 11 个错误。 :(

我已经三重检查是否下载了正确的版本,并且两个 .py 文件都成功地进入了我的 \lib 文件夹。使用 Windows 和 BitString 是否存在已知的并发症?这可能是我正在做的事情,但我不知道从哪里开始,在您的文档中,您明确表示如果版本正确且错误仍然存​​在,请与您联系,但我相当确定我遗漏了一些明显的内容。我想检查一下这是否是某种兼容性问题?

感谢您花时间阅读本文。很抱歉打扰您,因为我相信如果您有机会的话,您一定会对此有很多疑问。回复我,我很想知道为什么你认为它可能会失败,再次感谢!

Scott,
I'd like to thank you for your BitString program. I am working on interpreting data from a neutron detector, and I've found that this module is just the tool I need. Unfortunately, I have yet to get the module to successfully pass test-bitstring.py. I'm running Windows XP and Python 3.1. I've downloaded your file bitstring-0.4.1.zip from your website and extracted both bitstring.py and test-bitstring.py into the \lib folder of my Python directory. Upon running test-bitstring.py, I get 11 errors. :(

I've triple-checked that I have downloaded the correct version, and that both of the .py files successfully made it to me \lib folder. Is there a known complication using Windows with BitString? It is probably something I am doing, but I'm at a loss as to where to go from here. In your documentation, you explicitly say to contact you if the version is correct and the errors persist. I'm fairly certain that I'm missing something obvious, but I wanted to check that this is not some sort of compatibility issue?

Thank you for taking the time to read this. Sorry to bother you, as I'm sure you get questions about this quite a lot. If you get the chance at all to get back to me, I'm very interested in why you think it might fail the test. Thanks again!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

人间不值得 2024-08-13 14:46:59

我刚刚测试了 bitstring-0.4.1 的 test-bitstring.py 在 Windows XP 主机上的 Python 3.0 和 Python 3.1 上都能完美运行。

具体来说,3.1 版本是这样的。

'3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)]'

c:\python31\python test_bitstring.py
................................................................................
................................................................................
....................................................
----------------------------------------------------------------------
Ran 212 tests in 0.297s

OK

OP 应该提供更多详细信息,特别是 11 个失败测试的列表(或者至少其中一些,因为它们可能因类似原因失败。

I just tested that bitstring-0.4.1 's test-bitstring.py works flawlessly on both Python 3.0 and Python 3.1, on a Windows XP host.

The 3.1 version, specifically, this is what happens.

'3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)]'

c:\python31\python test_bitstring.py
................................................................................
................................................................................
....................................................
----------------------------------------------------------------------
Ran 212 tests in 0.297s

OK

OP should provide more details, in particular the list of the 11 failed tests (or at least a few of them, as they probably fail for similar reasons.

忘你却要生生世世 2024-08-13 14:46:59

请随意给我发电子邮件询问这样的问题(这就是我在文档中说与我联系时的意思) - 我有点惊讶地发现有人直接向我提问,但我只是碰巧看到了它!

您应该更新到Python 3 的最新版本 (1.0.1 )。我认为这个问题是 struct.unpack 的一个奇怪的平台相关问题,已在 rev。 445..

feel free to email me queries like this (that's what I meant when I said contact me in the documentation) - I'm somewhat surprised to find a direct question to me on S.O., but I just happened to see it!

You should update to the latest version for Python 3 (1.0.1). I think the problem was a strange platform dependent issue with struct.unpack that was fixed in rev. 445.

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