Skip to main content
Question

ESRI licensing *cough nightmare* on FME Server


sigtill
Contributor
Forum|alt.badge.img+24
One question.

 

 

How can I make sure that a workspace only runs if it has an ArcInfo license available? That is - I want to check out the license before running the workspace (For instance in the python-script) ?

 

 

Not sure if this approach GUARANTEES that the license will not be used by someone else between the startup script and after a long processing (1 hour) starting the writer?

 

 

Related:

 

http://fmepedia.safe.com/AnswersQuestionDetail?id=906a0000000cgTFAAY

 

 

2 replies

david_r
Evangelist
  • August 21, 2013
Hi Sigbjørn,

 

 

have you looked at this?

 

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000z000000

 

 

Here is another way to check out a specific ArcGIS license:

 

 

try:

 

    import arcinfo

 

except:

 

    print "No ArcInfo license available"

 

 

Note that you will have to use the Python interpreter that was installed with ArcGIS for this to work, it will normally be something like C:\\Windows\\SysWOW64\\python26.dll if you're on a 64-bit OS.

 

 

David

sigtill
Contributor
Forum|alt.badge.img+24
  • Author
  • Contributor
  • August 27, 2013
Thanks. Unfortunately it seems to request another Python-interpreter as mentioned by you. And changing the interpreter on Desktop and Server is not a good solution for the moment.

 

 

Your short script

 

try:

 

    import arcinfo

 

    print "ArcInfo license available"

 

except:

 

    print "No ArcInfo license available"

 

 

does not fail - but does not print anything either (I guess it also needs the Arcgis python-interpreter.)

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings