the system clock has been set back more than 24 hours

初始化时,运行到Initialize(esriLicenseProductCodeEngine, &status);处 license错误 the system clock has been set back more than 24 hours,怎么解决?难道要重装系统吗?
已邀请:

朱政

赞同来自:

你是许可到期之后把时间往回调整了吗?
这里有一篇文章,题目为: Error:  The System Clock has been set back to the past. This is not allowed!,你可以参考。
http://support.esri.com/en/knowledgebase/techarticles/detail/24575
 

不二痞子 - GIS思维创始人,https://gisthink.ke.qq.com/

赞同来自:

最大可能就是你用注册机的时候 设置错误了,在检查一下。

dd683280

赞同来自:

问题已经解决,把代码所在的盘格式化就好了

uuiitwp

赞同来自:

在python3中运行脚本,内容如下
import os
import time
import sys

def main():
if sys.version[0:1] != '3':
print('ERROR:need python3!')
return
i = 0
j = 0
for root,dirs,files in os.walk('c:\\'):
for file in files:
filepath = os.path.join(root,file)
nowtime = time.time()
try:
fileinfo = os.stat(filepath)
if fileinfo.st_atime - nowtime > 1000 or fileinfo.st_mtime - nowtime > 1000:
os.utime(filepath,None)
j = j + 1
except:
i = i + 1
print('PermissionError:' + filepath)
print('All files completed,failed files number is '+ str(i) +',successed files number is '+ str(j))


if __name__ == '__main__':
main()
第10行的盘符修改为arcgis所在目录的盘符。对于提示PermissionError的文件请获取文件读写权限后重新运行该脚本,直到提示"failed files number is 0"为止。
ps:arcgis还是应该装虚拟机里吧hhhhhhhhhh(逃

 

要回复问题请先登录注册