ArcPy RuntimeError: The software is not authorized for use.

1781
10
Jump to solution
04-14-2025 12:04 PM
AnibalMmartinez
Frequent Contributor

Hola en un equipo tenemos ARCGIS SERVER 11.1 ,  en un momento para hacer una prueba se instalo ARCGIS PRO, y luego de la misma se desinstalado, luego de esto los scripts python no encuentran la licencia de arcgis SERVER.

Script de ejemplo

import arcpy
import os
import time
import sys
from pathlib import Path
import logging

 


def main():
try:
logging.info("Proceso iniciado...")
logging.info("Aguarde que soy lento por favor...")

if len(sys.argv) >= 1:

msj = sys.argv[0] #el argumento 0 no se usa, trae el nombre del script
usuario = sys.argv[1]
conexion_sde = sys.argv[2]
vista = sys.argv[3]
pathErr = sys.argv[4]
FC=usuario + "." + vista
TBErr=pathErr + r"\ErroresEncontrados.csv"

workspace = conexion_sde
arcpy.env.workspace = workspace

logging.info("Inicio")
arcpy.management.CheckGeometry(in_features=str(FC), out_table=TBErr,validation_method="OGC")
logging.info("Fin")

else:
msj = "Error al indicar los argumentos"
logging.error(msj + "\n")
msj = 'Ejemplo: D:\Apps\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe VIS_FC_OUTAGEAREA_EDIF_V.py "A001888" "D:\DBSDE-Usar VRed-SharedTools\SDE.sde"'
logging.error(msj + "\n")

time.sleep(5)

except Exception as e:
logging.error(e)


if __name__ == "__main__":
main()

 

Mensaje de Error: 

C:\Windows\system32>D:\Apps\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe D:\VRED\Scripts\chequearGeometry_FC.py "SDE" "D:\VRED\SharedTools\SDE.sde" "VIS_FC_CABLES_FTTH_DIST_V" "D:\VRED\Pasajes\Anibal"
Traceback (most recent call last):
File "D:\VRED\Scripts\chequearGeometry_FC.py", line 1, in <module>
import arcpy
File "D:\Apps\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcPy\arcpy\__init__.py", line 77, in <module>
from arcpy.geoprocessing import gp
File "D:\Apps\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in <module>
from ._base import *
File "D:\Apps\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 14, in <module>
import arcgisscripting
File "D:\Apps\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgisscripting\__init__.py", line 131, in <module>
from ._arcgisscripting import *
RuntimeError: The software is not authorized for use.

C:\Windows\system32>pause
Press any key to continue . . .

 

0 Kudos
10 Replies
AliNiazi
New Contributor

Thanks for sharing this issue. Authorization or verification errors like this usually happen when a system cannot properly validate licenses or access permissions. Similar problems can also appear in online portals where users need to verify identity or eligibility through digital systems. Many people also face confusion while using verification platforms like BISP 8171 CNIC eligibility checks where proper validation is required.

0 Kudos