python - wxPython 在 THIThemeTextInfoPublic::GetOptions() const + 9 处随机崩溃

标签 python macos wxpython

我正在为一个大学项目编写一个应用程序,大约 5 分钟后它就崩溃了。

我使用的是运行 Snow Leopard、python 2.6 和 wxPython 2.8.12 的 MacBook Pro,根据崩溃日志,我正在使用 libwx_macud-2.8.0.dylib,我'我不是 C 或 C++ 程序员,这让我很生气。崩溃日志的副本可在 http://pastebin.ca/2063975 处获取。

最佳答案

从崩溃日志来看,您似乎正在使用 OS X 的系统 python。我相信这默认为 64 位,基于此 SO answer 与 wxPython 不兼容,这个blog post ,以及来自 wxPython download website ,其中指出:

Since they use the Carbon API they are limited to running in 32-bit mode.

我建议从 python.org 安装 python-2.6.6-macosx10.3.dmg .

关于python - wxPython 在 THIThemeTextInfoPublic::GetOptions() const + 9 处随机崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6052701/

相关文章:

python - wxPython auinotebook.GetSelection() 返回第一页的索引

python - 如何在 Django 模板的结果页面中突出显示搜索到的查询?

python - 中止陷阱 : 6 when running a python script

macos - 不推荐使用 Mono 附带的 nunit-console,请使用 Nunit Nuget 包或其他一些获取 NUnit 的形式

c - 如何在 macOS 的 C/C++ 中获取产品名称/版本(即获取 "Mac OS"和 "10.12.5")

linux - 屏幕距离不好

python - 为什么 flask 测试会产生两个测试实例?

python - Pandas 合并错误 : MemoryError

python - 如何减少列表中的列表

python - 在嵌入式计算机上仅运行一个带有 GUI 的 Python 应用程序 : is a X server and a window manager really required?