Timeline for Can I call 32-bit python from an ArcGIS Server 10.3.1 GP Service?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2015 at 13:42 | vote | accept | Charlie Lefrak | ||
Dec 29, 2015 at 13:39 | answer | added | KHibma | timeline score: 1 | |
Dec 16, 2015 at 19:24 | history | edited | PolyGeo♦ |
edited tags
|
|
Dec 16, 2015 at 18:25 | comment | added | KHibma | I just tried that one as well with no luck. The GP task returns successful, but I can tell it never spawned the python process. I'm now doubting the ability to have GPService call another executable as its in a different process. I'll try to find more concrete info one way or another and post back if I find it. | |
Dec 16, 2015 at 18:06 | comment | added | Charlie Lefrak | Thanks for your help @KHibma. I implemented this solution, which prevented the window from visibly opening when running for Desktop, but it still doesn't work on Server. Other sites suggest that this is just hiding the window, and that it still needs to open it. Will post back if I find a workaround. | |
Dec 16, 2015 at 17:39 | comment | added | KHibma | I just tested this. In desktop it pops up a command window on the call. This isn't going to work in Server. Server is "headless", running on another user account. It can't pop open that window. The only way that it may work is if you can find a way to execute the 32bit python without it having to open the window. | |
Dec 16, 2015 at 16:59 | comment | added | Charlie Lefrak |
Thanks @KHibma. Updated the above to implement subprocess.check_output . Similar results-- it fails when published as a GP Service.
|
|
Dec 16, 2015 at 16:58 | history | edited | Charlie Lefrak | CC BY-SA 3.0 |
added 442 characters in body
|
Dec 16, 2015 at 16:38 | comment | added | KHibma | Mmm, check stackoverflow.com/questions/7575284/… ? | |
Dec 16, 2015 at 16:33 | comment | added | Charlie Lefrak | Yep, I have properly licensed Desktop installed on the server. I can call the 32 bit subprocess successfully when I run the script in Desktop as a tool, but it fails when its packaged up and called as a GP Service. Seems strange that the server environment prevents me from calling the 32 bit version of python. | |
Dec 16, 2015 at 16:27 | comment | added | KHibma | Without testing, I'd guess that yes it would be possible IF you have a 32bit Arc* application installed on the same machine. Say Desktop or Engine. And of course that application would need to be fully licensed. | |
Dec 16, 2015 at 16:00 | history | asked | Charlie Lefrak | CC BY-SA 3.0 |