在 Windows 上导入 SQLObject 时出错

发布于 2024-08-02 05:48:16 字数 1093 浏览 15 评论 0原文

在 Window 上导入 SQLObject 时出现以下错误。有谁知道这个错误是什么以及如何解决它?

================================

    from sqlobject import *
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\__init__.py", line 5, in <module>
    from main import *
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\main.py", line 32, in <module>
    import dbconnection
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\dbconnection.py", line 17, in <module>
    from joins import sorter
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\joins.py", line 5, in <module>
    import events
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\events.py", line 3, in <module>
    from sqlobject.include.pydispatch import dispatcher
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\include\pydispatch\dispatcher.py", line 30, in <module>
    import saferef, robustapply, errors
EOFError: EOF read where object expected

I am getting following error while importing SQLObject on Window. Does anyone knows what is this error about and how to solve it?

==============================

    from sqlobject import *
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\__init__.py", line 5, in <module>
    from main import *
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\main.py", line 32, in <module>
    import dbconnection
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\dbconnection.py", line 17, in <module>
    from joins import sorter
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\joins.py", line 5, in <module>
    import events
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\events.py", line 3, in <module>
    from sqlobject.include.pydispatch import dispatcher
  File "c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg\sqlobject\include\pydispatch\dispatcher.py", line 30, in <module>
    import saferef, robustapply, errors
EOFError: EOF read where object expected

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

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

发布评论

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

评论(1

北城半夏 2024-08-09 05:48:16

看起来您的 c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg 文件可能被截断或以其他方式损坏。它与新下载的相比如何(在长度和校验和方面)?

Looks like your c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg file may be truncated or otherwise damaged. How does it compare to a freshly downloaded one (in terms of both length and checksum)?

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