- 论坛徽章:
- 0
|
本帖最后由 wfnh 于 2013-09-27 09:25 编辑
winservice下,找不到一个模块的路径···报错如下:
Traceback (most recent call last):
File "D:\test-area\a\ff\sf\monitorService\event\customEvent\script\globalVarCheck.py", line 119, in <module>
gvc.do()
File "D:\test-area\a\ff\sf\monitorService\event\customEvent\script\globalVarCheck.py", line 35, in do
from lockfile import FileLock
ImportError: No module named lockfile
下面是sys.path的打印,lockfile模块的路径是C:\Users\Administrator\AppData\Roaming\Python\Python27\site-packages\lockfile
sys.path:
D:\test-area\a\ff\sf\monitorService\event\customEvent\script
C:\Users\Administrator\AppData\Roaming\Python\Python27\site-packages\lockfile
D:\test-area\a\ff\sf\monitorService
C:\Windows\system32\python27.zip
C:\Python27\DLLs
C:\Python27\lib
C:\Python27\lib\plat-win
C:\Python27\lib\lib-tk
C:\Python27
C:\Python27\lib\site-packages
C:\Python27\lib\site-packages\gtk-2.0
C:\Python27\lib\site-packages
C:\Python27\lib\site-packages\win32
C:\Python27\lib\site-packages\win32\lib
C:\Python27\lib\site-packages\Pythonwin
C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg-info
------------------------------
明明路径是有的·但就是找不到,求破
|
|