我在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
答案 0 :(得分:0)
您的c:\python26\lib\site-packages\sqlobject-0.10.4-py2.6.egg
文件可能会被截断或损坏。它与新下载的(长度和校验和)相比如何?