ERROR 000824: The tool is not licensed.

6 篇文章 1 订阅
5 篇文章 0 订阅

接上一篇arcgis 10.4,在python 中可以导入arcpy成功后还不能保证你代码中调用arcpy函数能够使用,这里涉及到你的arcgis server 是否安装正确,上一篇博客的安装中arcgis server 可能说的不够清楚,这里补上。

首先无论国内外网站对这个问题都是添加一句代码,arcpy.CheckOutExtension("Spatial"),但这句话治标不治本,你可以这样尝试,直接

r = arcpy.CheckOutExtension("Spatial")

print(r)

看看输出什么,我的输出是NotLicensed,着说名arcgis server 虽然安装了,但是相关组件没有注册,在程序中找到SoftWare Authorization重新注册一下就行了,但是你会想明明安装的时候已经选择了serverlic.ecp注册文件了,为什么不行,原因就是可能这个注册文件有问题或者不适用。

这里选择第三个选项,这时候让你选择.ecp文件,新建一个txt文件把以下内容复制进去,然后把文件后缀改为ecp就可以了,或者搜索 arcgis keygen 下载arcgis 注册机自己生成ecp文件。

3dengine,104,ecp.arcgis.server,01-jan-2025,IE812XLYE1B73R5LN151
3dserver,104,ecp.arcgis.server,01-jan-2025,VPH4ENBN300LRFT8A196
arcgisengine,104,ecp.arcgis.server,01-jan-2025,UTC450P1J5FB8E8PR036
arcgisserver,104,ecp.arcgis.server,01-jan-2025,RP5XERF06P4ZEJXDF165
arcimsserver,104,ecp.arcgis.server,01-jan-2025,FA0L57E80CNJG3GYZ079
arcsdeserver,104,ecp.arcgis.server,01-jan-2025,TRA4CAZCTGRMK7K23088
bingmapseng,104,ecp.arcgis.server,01-jan-2025,MJJ420P1J5FB8E8PR000
bingmapssvr,104,ecp.arcgis.server,01-jan-2025,D7MC5XLYE1B73R5LN035
businessvr,104,ecp.arcgis.server,01-jan-2025,KGE4AE2GXKE0HBH67061
defenseintleng,104,ecp.arcgis.server,01-jan-2025,C6L78E2GXKE0HBH67238
defenseintlsvr,104,ecp.arcgis.server,01-jan-2025,LHH9HK9N5R2XLJEFF230
defenseuseng,104,ecp.arcgis.server,01-jan-2025,A3F457E80CNJG3GYZ250
defenseussvr,104,ecp.arcgis.server,01-jan-2025,MJJ6TK8JZMLSNA046038
designer,104,ecp.arcgis.server,01-jan-2025,XXMA0RF06P4ZEJXDF056
gdbedit,104,ecp.arcgis.server,01-jan-2025,PMYP34S5M9JECZCPE117
geostatserver,104,ecp.arcgis.server,01-jan-2025,LHJ987E80CNJG3GYZ139
imageextserver,104,ecp.arcgis.server,01-jan-2025,RP4RTXLYE1B73R5LN044
interopengine,104,ecp.arcgis.server,01-jan-2025,TRB157E80CNJG3GYZ095
interopserver,104,ecp.arcgis.server,01-jan-2025,A3CX0NBN300LRFT8A101
jtxserver,104,ecp.arcgis.server,01-jan-2025,RP5LY0P1J5FB8E8PR043
maplexengine,104,ecp.arcgis.server,01-jan-2025,ZZ0N7G3BEALD3B710143
networkengine,104,ecp.arcgis.server,01-jan-2025,FA0LYPJPAY83ZN1HJ062
networkserver,104,ecp.arcgis.server,01-jan-2025,XXLC80P1J5FB8E8PR184
routeserver,104,ecp.arcgis.server,01-jan-2025,IE73HK9N5R2XLJEFF117
schematicengine,104,ecp.arcgis.server,01-jan-2025,C6J754S5M9JECZCPE104
schematicsvr,104,ecp.arcgis.server,01-jan-2025,C6J657E80CNJG3GYZ033
sdeworkgroup,104,ecp.arcgis.server,01-jan-2025,FAYHJD1CRFHKE2JEY085
spatial,104,ecp.arcgis.server,01-jan-2025,XXMCFH5J1HZTSFRBB145
spatialengine,104,ecp.arcgis.server,01-jan-2025,WELDC7E80CNJG3GYZ025
spatialserver,104,ecp.arcgis.server,01-jan-2025,S08PHAY8NBKHAYERP067
standardengine,104,ecp.arcgis.server,01-jan-2025,GB4LRNBN300LRFT8A242
streetmap,104,ecp.arcgis.server,01-jan-2025,NKHC3XLYE1B73R5LN084
streetmapengine,104,ecp.arcgis.server,01-jan-2025,D7LAFH5J1HZTSFRBB247
streetmapserver,104,ecp.arcgis.server,01-jan-2025,UTF68AZCTGRMK7K23060
svradvanced,104,ecp.arcgis.server,01-jan-2025,FA0L2LX2PPPXTH0P6048
svrenterprise,104,ecp.arcgis.server,01-jan-2025,C6JFKH5J1HZTSFRBB033
svrstandard,104,ecp.arcgis.server,01-jan-2025,PMYL7G3BEALD3B710238
tifflzw,104,ecp.arcgis.server,01-jan-2025,GB1X30P1J5FB8E8PR051
tracking,104,ecp.arcgis.server,01-jan-2025,OLHFC4S5M9JECZCPE090
trackingengine,104,ecp.arcgis.server,01-jan-2025,IE7THAY8NBKHAYERP126
trackingserver,104,ecp.arcgis.server,01-jan-2025,S083DH5J1HZTSFRBB094
virtualearthsvr,104,ecp.arcgis.server,01-jan-2025,QH20HD1CRFHKE2JEY095
 

 

这个时候你再运行你的程序

r = arcpy.CheckOutExtension("Spatial")

print(r)

输出应该是CheckedOut

 

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0"> <!-- By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app, you must define such a user - the username and password are arbitrary. Built-in Tomcat manager roles: - manager-gui - allows access to the HTML GUI and the status pages - manager-script - allows access to the HTTP API and the status pages - manager-jmx - allows access to the JMX proxy and the status pages - manager-status - allows access to the status pages only The users below are wrapped in a comment and are therefore ignored. If you wish to configure one or more of these users for use with the manager web application, do not forget to remove the <!.. ..> that surrounds them. You will also need to set the passwords to something appropriate. --> <!-- <user username="admin" password="<must-be-changed>" roles="manager-gui"/> <user username="robot" password="<must-be-changed>" roles="manager-script"/> --> <!-- The sample user and role entries below are intended for use with the examples web application. They are wrapped in a comment and thus are ignored when reading this file. If you wish to configure these users for use with the examples web application, do not forget to remove the <!.. ..> that surrounds them. You will also need to set the passwords to something appropriate. --> <role rolename="tomcat"/> <role rolename="role1"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> </tomcat-users> 出现cvc-elt.1.a: Cannot find the declaration of element 'tomcat-users'.如何修改
最新发布
07-23
从你提供的`server.xml`文件来看,`tomcat-users`元素是在`http://tomcat.apache.org/xml`命名空间下定义的,因此需要使用相应的命名空间前缀来引用该元素。 根据你的配置文件内容,将以下行: ```xml <tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0"> ``` 修改为: ```xml <tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0" xmlns:ns2="http://tomcat.apache.org/xml"> ``` 然后,在以下行中添加命名空间前缀 `ns2`: ```xml <role rolename="tomcat"/> <role rolename="role1"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> ``` 修改为: ```xml <ns2:role rolename="tomcat"/> <ns2:role rolename="role1"/> <ns2:user username="tomcat" password="tomcat" roles="tomcat"/> <ns2:user username="both" password="tomcat" roles="tomcat,role1"/> <ns2:user username="role1" password="tomcat" roles="role1"/> ``` 这样修改后,`tomcat-users`元素及其子元素应该能被正确识别了。记得保存修改后的文件并重新启动Tomcat服务器。如果还有其他问题,请提供更多错误信息以便我能够帮助你进一步调试。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

如雾如电

随缘

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值