Publishing Web Services using arcpy under Windows AMD64 Environment

Source: Internet
Author: User

ArcGIS Desktop and ArcGIS Server should always be the software prerequisites when you install ArcGIS

But they use a different Python, the desktop uses 32 bits, and the server uses 64 bits.

In order for the map document generated by arcpy to be published to Server,python interpreter be sure to use 64-bit, if it is a 32-bit environment, there are two situations:

  1. arcpy Other features no problem, upload blocking occurs when you publish an MXD

  2. Calling arcpy will show that the DLL is not a valid Win32 execution program, such as an error

The solution to the problems encountered before is as follows:

  1. Configure system environment variables, PYTHONPATH, point to three directories agsserver/arcpy,agsserver/bin,agsserver/arctoolbox/scripts (Agsserver is ArcGIS Server's installation directory)

  2. Using 64-bit Apache, the official only 32-bit installation package, recommended to download here

  3. WSGI also use 64-bit,

  4. In the portal Py must add the three paths mentioned in the first step to Sys.path


Publishing Web Services using arcpy under Windows AMD64 Environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.