PS C:\> taskkill /F /IM python.exe
SUCCESS: The process "python.exe" with PID 14896 has been terminated.
PS C:\> python
Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import arcserver
>>> import arcpy
>>> arcpy.ProductInfo()

Not sure what's up here. I've had ArcGIS Server and ArcGIS Desktop installed simultaneously on my machine for a long time (10.1.1, 10.2.2, and now 10.3.1). The above always worked fine to make sure arcpy scripts were using the ArcGIS Server license instead of grabbing a desktop license. After upgrading both to 10.3.1, arcpy seems to completely ignore the server license and always look for a Desktop license.

Edited to show that no other module or process had already imported arcpy.

  • Are you sure that arcpy isn't getting imported before hand, perhaps in another module that's imported? Commented Sep 16, 2015 at 19:20
  • 1
    @EvilGenius Absolutely certain. See edit.
    – Josh Werts
    Commented Sep 16, 2015 at 19:25
  • 1
    Possibly related geonet.esri.com/thread/119004
    – user2856
    Commented Sep 16, 2015 at 22:12
  • @Luke - I think you may be right. Looks like another esri bug where the only fix may be to wait until the next release. Typical. Still leaving question open for now....
    – Josh Werts
    Commented Sep 18, 2015 at 17:07

2 Answers 2


I found an easy fix to this issue.

  1. Uninstall 64-bit Background Geoprocessing for ArcMap
  2. From python command line: import arcserver (This seems to setup several things on first run).
  3. Re-install 64-bit Background Geoprocessing for ArcMap.

Everything works properly now.


Try the CheckProduct function to see what the return value is for arcserver:


If you did an upgrade, I've had strange issues pop up and had to do an uninstall/fresh install to resolve them.

  • arcpy.CheckProduct('arcserver') u'Available' Seems to find it just fine - just won't pull the license. Really trying to avoid uninstall/reinstall.
    – Josh Werts
    Commented Sep 16, 2015 at 21:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.