We've been struggling to get a python script running that originally came from ESRI: it's a maintenance script for a vector tile basemaps. The script hasn't worked for us and the subject line above is the response we got from ESRI tech support.
Below are identical lines of code: Line one is what we see in IDLE while Line 2 is what we see in Spyder.
tpk <SPAN class="operator token">=</SPAN> r'‪C<SPAN class="punctuation token">:</SPAN>\Users\jaburton\Documents\ArcGIS\Projects\VectorBasemap\VectorTilePackage<SPAN class="punctuation token">.</SPAN>vtpk
tpk <SPAN class="operator token">=</SPAN> r<SPAN class="string token">'C:\Users\jaburton\Documents\ArcGIS\Projects\VectorBasemap\VectorTilePackage.vtpk'</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
When we run it as a stand-alone script in Spyder it bails out with this error:
So its' not seeing the path where the variable tpk points to. The source of the raw text string is a copy and paste from a Windows Explorer window: pretty standard practice.
How do we convince Spyder all is good?