Python 和 Boost - 尝试运行 vPython 并获取 __doc__ 是只读错误。
如何让 vPython 工作?
我在 Mac OS X 上运行 Python 2.6 ,最近下载了 vPython。安装后,它还会安装 Python 的 Boost 库。现在,当我尝试导入 vPython 库(“视觉”)时,会发生以下情况:
>>>import visual
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visual/__init__.py", line 59, in <module>
import cvisual
AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only
在阅读周围内容后,我发现这可能是一个严重的错误,但我缺乏实现的技术知识(或者确实相信我自己)甚至尝试并实施)互联网上发布的任何“解决方法”。
有谁知道这个问题有一个合适的解决办法吗?或者有人可以引导我完成(新手风格)如何实施任何修复。
我相信我已经从他们的 svn 主干安装了最新的 Boost 库,尽管(非常无益)我不能 100% 确定它是否成功,至少它肯定不起作用。
How to get vPython working?
I'm running on Mac OS X with Python 2.6 , and recently downloaded vPython. Upon installation it also installs the Boost libraries for Python. Now, when I try to import the vPython libraries ('visual'), the following occurs:
>>>import visual
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/visual/__init__.py", line 59, in <module>
import cvisual
AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only
After reading around I've found this could possibly be a serious bug, but I lack the technical know-how to implement (or indeed trust myself to even try and implement) any of the 'workarounds' posted on the interweb.
Does anyone know a decent fix for this? Or could someone walk me through (newbie style) how to implement any of the fixes.
I believe I have installed the latest Boost libraries from their svn trunk, although (very unhelpfully) I'm not 100% sure it was successful, and at the very least it definitely didn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过使用:
如果这不起作用,则可能在您的计算机上重新安装 Python 以及 vPython。
Have you tried using:
If thats not working than possibly reinstall Python on your machine as well as vPython.