2005年08月01日 星期一 14:25
我下载了zope 2.8.0 final win32的exe版本。 安装后发现无法启动zope instance。 提示: File "D:\python_home\Zope-2.8.0-final\lib\python\datetime\DateTime.py", line 2 1, in ? from datetime import datetime ImportError: cannot import name datetime 这是trace back的最后一条,好像是导入datetime模块有问题,应该怎样设置呢? 我安装的目录结构如下: zope程序:D:\python_home\Zope-2.8.0-final zope instance: d:\python_home\test_zop 在这之前,我的系统已经安装过python 2.3和python 2.4,应该不是这个问题吧? 下面是完整的traceback信息: D:\python_home\test_zop>bin\runzope.bat D:\python_home\test_zop>"D:\python_home\Zope-2.8.0-final\bin\python.exe" "D:\python_home\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py" -C "d:\python_home\te st_zop\etc\zope.conf" D:\python_home\Zope-2.8.0-final\bin\lib\fcntl.py:7: DeprecationWarning: the FCNT L module is deprecated; please use fcntl DeprecationWarning) Traceback (most recent call last): File "D:\python_home\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py", line 5 6, in ? run() File "D:\python_home\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py", line 1 7, in run import Zope2.Startup File "D:\python_home\Zope-2.8.0-final\lib\python\Zope2\__init__.py", line 60, in ? from Zope2.Startup.run import configure File "D:\python_home\Zope-2.8.0-final\lib\python\Zope2\Startup\__init__.py", l ine 24, in ? import ZConfig File "D:\python_home\Zope-2.8.0-final\lib\python\ZConfig\__init__.py", line 21 , in ? from ZConfig.loader import loadConfig, loadConfigFile File "D:\python_home\Zope-2.8.0-final\lib\python\ZConfig\loader.py", line 23, in ? import ZConfig.datatypes File "D:\python_home\Zope-2.8.0-final\lib\python\ZConfig\datatypes.py", line 1 9, in ? import datetime File "D:\python_home\Zope-2.8.0-final\lib\python\datetime\__init__.py", line 1 3, in ? from DateTime import DateTime File "D:\python_home\Zope-2.8.0-final\lib\python\datetime\DateTime.py", line 2 1, in ? from datetime import datetime File "D:\python_home\Zope-2.8.0-final\lib\python\datetime\DateTime.py", line 2 1, in ? from datetime import datetime ImportError: cannot import name datetime
Zeuux © 2025
京ICP备05028076号