Select to view content in your preferred language

arcpy.Describe file not found!

697
2
06-19-2013 05:06 PM
JayDub
by
Emerging Contributor
Hi all,
I'm running Python using WSGI under Wamp. The user uploads a shapefile to my server then I try to run arcpy.Describe and even though os.path.exists(...) says the file exists, arcpy it telling me that the file doesn't exist. Is there any particular reason why this would happen?

Also, if I run the same function from the console (instead of via the browser), arcpy is able to magically find the file. I'm using an absolute path to the file and I'm not using arcpy.env.workspace at all.
Tags (2)
0 Kudos
2 Replies
curtvprice
MVP Alum
Hi all,
I'm running Python using WSGI under Wamp. The user uploads a shapefile to my server then I try to run arcpy.Describe and even though os.path.exists(...) says the file exists, arcpy it telling me that the file doesn't exist. Is there any particular reason why this would happen?

Also, if I run the same function from the console (instead of via the browser), arcpy is able to magically find the file. I'm using an absolute path to the file and I'm not using arcpy.env.workspace at all.


Are you specifying the path correctly (to handle backslashes)?  Ie using r"" or "\\" or "/"?
0 Kudos
ShaunWalbridge
Esri Regular Contributor
Have you confirmed that the WAMP environment is running against the same Python interpreter as ArcGIS, and can you perform any other operations successfully? Note that ArcGIS for Server is required for network-based access to ArcGIS.
0 Kudos