POST
|
After reinstalling ArcGIS Pro v2.6 on my Windows 10 64-bit machine, I get the error below when I import arcpy. As a result I can't run any Python scripts in ArcGIS Pro - if I tried to use the Python Window in ArcGIS Pro, the application gets stuck and I had to use Task Manager to close it. I can get the Python environment working by editing C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\toolbox.py to remove all import statements from .ga. As I don't have a GA license, I don't have any issues with this GA classes not being imported, but the situation still doesn't seem ideal and I imagine future Pro updates may overwrite my modifications which I would then have to reapply. While I'm up and running now, I would appreciate any insight anyone could offer as to why this is happening. >>> import arcpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 79, in <module>
from arcpy.toolbox import *
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\toolbox.py", line 403, in <module>
from .ga import SearchNeighborhoodStandard, SearchNeighborhoodSmooth,
SearchNeighborhoodStandardCircular, SearchNeighborhoodSmoothCircular,
SearchNeighborhoodStandard3D, CrossValidationResult, GeostatisticalDatasets
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ga.py", line 33, in <module>
from arcpy import _ga
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\_ga.py", line 30, in <module>
import gapy
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\gapy\__init__.py", line 1, in <module>
from ._gapy import *
ImportError: DLL load failed: The specified procedure could not be found. This is my paths output C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python36.zip
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\DLLs
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages
C:\Program Files\ArcGIS\Pro\bin
C:\Program Files\ArcGIS\Pro\Resources\ArcPy
C:\Program Files\ArcGIS\Pro\Resources\ArcToolbox\Scripts
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\future-0.18.2-py3.6.egg
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pytz-2019.3-py3.6.egg
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pywin32security
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\sympy-1.5.1-py3.6.egg Additional details in case it helps: Have a standard ArcPro license, but other colleagues with the same license aren't having the same problem as me. Previously had ArcGIS Pro 2.6.1 installed and successfully running Python scripts as normal Had an issue where I couldn't publish and Web Tools to our Portal - part of the process of resolving this I decided to reinstall ArcGIS Pro After that reinstall is when I started encountering this error Did an uninstall and removed all folders / registry keys that were left over still no luck after reinstalling Repeated 5, but this time removed every trace of Python on my system still no luck Updating to 2.6.1 then 2.6.2 made no difference Reinstalled Pro but edited the toolbox.py file as mentioned above - now working (as far as I can tell).
... View more
10-01-2020
04:10 PM
|
0
|
0
|
741
|
POST
|
Does the GeometryService Project operation (for 10.4 ArcGIS Server REST API if applicable) guarantee that the order of the output geometries is the same as the input geometries, when passing an array of individual points for example?
... View more
08-21-2019
08:28 PM
|
1
|
1
|
435
|
POST
|
Turns out I needed to select iOS App Development not Apple Development when creating the new certificate in the iOS Dev centre. Not sure how I missed this considering I've been looking at the page at least half a dozen times today, so feeling a bit stupid. Repeated the process above with a new iOS App Development certificate and now the cloud make works.
... View more
06-23-2019
10:27 PM
|
0
|
0
|
680
|
POST
|
Have an app developed using AppStudio for ArcGIS 3.1.134. Was able to successfully generate an ios build using cloud make at end of last month. Tried to generate a build today but this failed due to an expired developer certificate. I went through the usual process to update STBB with a new certificate, but the cloud build is still failing but this time with a different error (in attached screenshot). I can't work out if this is an issue with how I've regenerated the cert or updated the STBB config, but this is a process I've followed before without issue. I'm not receiving any build notifications from cloud make so don't have any further details to go on. In case this is an issue with how I regenerated my certificate, here's the process I followed (PC is running Windows 10 with OpenSSL 1.1.0h 27 Mar 2018): Run OpenSSL from an elevated command prompt Generated CSR: req -out csr.csr -new -newkey rsa:2048 -nodes -keyout pvt.key Entered info and challenge password as prompted. Successfully created an IOS developer certificate from the CSR. Downloaded to PC. Installed cert. Updated provisioning profile to use new certificate. Downloaded to PC. Generate PEM: x509 -inform der -in ios_dev.cer -out ios_dev.pem Generated P12: pkcs12 -export -out MyApp_Dev.p12 -inkey pvt.key -in ios_dev.pem -name "MyApp" -nodes Updated the app with the new provisioning and p12 files, then upload to AGOL. Ran Cloud Make. Received the attached error. Tried deleting then re-installing the Apple intermediate cert (and IOS developer cert), the followed the above process again. Still no luck. When I inspected my provisioning profile in the iOS Dev site, I verified that the new certificate was selected and the profile was for development. But I did notice this message next to the new certificate "For use in Xcode 11 or later" - wonder if that could be related? Any thoughts would be appreciated.
... View more
06-23-2019
09:03 PM
|
0
|
1
|
1135
|
POST
|
Hi Stephen, Appreciate the extra information. I'll give the validation a go at some point. Cheers.
... View more
02-21-2019
05:42 PM
|
0
|
0
|
799
|
POST
|
Using AppStudio 3.1, I can't seem to get the Barcode Reader app to decode Code 93 and UPC-EAN barcodes. I've tested the following barcode types, which all work fine. Code 39 Code 128 EAN 8 EAN 13 UPC A UPC E QR CODE DATA Matrix I've tested on various Android and iOS devices and experience the same issue. Have also tried decoding barcodes on my computer monitor and in printed form - no difference. I checked the release notes for 3.2 and didn't see any mention of any barcode filter related fixes. Anyone else had similar issues?
... View more
02-07-2019
05:39 PM
|
0
|
2
|
970
|
POST
|
I can't see where "mapView" is defined in your sample code. Is it defined in your actual code?
... View more
10-08-2018
06:13 PM
|
0
|
1
|
525
|
POST
|
AppStudio 3.1.134. For some reason Cloud Make isn't working at all for me today, although it was working fine yesterday. I've also noticed the email notifications aren't coming as well, so I don't have any detailed information about the error other than what is shown in AppStudio. Here's the workflow I'm following to replicate the issue currently: Created a new app from one of the templates (in my case Quick Report) Uploaded to AGOL Run Cloud Make -> Win x64 build Setting email notification level to Verbose Start the build After a minute or two the build will fail with the message: "NMAKE: fatal error U1052: file 'Makefile.Release' not found" Also noticed that no build notification emails are coming through. I can't think of any notable changes that would've happened on my system since yesterday when cloud make was working. Wondering if this is an issue with the make service itself rather than something on my end. Any suggestions welcome Cheers, Heath.
... View more
10-03-2018
02:18 PM
|
0
|
3
|
438
|
POST
|
Download and open the Sign In OAuth2 sample in QtCreator Have Fiddler open Run the app and it should successfully authenticate against ArcGIS Online In Fiddler note that the authorize call contains a client ID parameter value In App Settings, specify a client Id In OAuth2.qml, find the OAuthClientInfo declaration and replace the hard-coded client ID with app.clientID Run the app again and you'll an Invalid client_id error Look at Fiddler and note the absence of the client ID parameter value It seems that no matter what I try, I can't get oAuthClientInfo.clientId to persist when using an expression to return a client ID (e.g. from appinfo.json). It only works when I hard-code the client Id. Anyone else experience this issue, and know of any workarounds (other than hard-coding the ID). Cheers.
... View more
06-26-2016
09:55 PM
|
0
|
0
|
1771
|
POST
|
Noticing an odd behaviour with GeodatabaseSynchTask. It'll perform a createReplica operation using the POST method, but instead of embedding the task parameters within the request body, it's still adding them to the URL query string as if it's doing a GET. I can replicate this behaviour using the Local Geodatabase Editing sample. If you inspect the createReplica request you can see behaviour described above. The behaviour I would expect to see can be observed by performing a createReplica operation against the REST endpoint directly (from the ArcGIS REST Services Directory); the parameters are embedded in the request body. With certain parameter values, this can result in a server-side error if the serialized task parameters exceeds the configured max query string length, which is what I'm encountering due to the complexity of the geometry used to spatially filter the layers to be replicated, combined with numerous layer query definitions (serialized payload is 2700 characters). The only workaround I can think of is to mimic the functionality of GeodatabaseSynchTask using NetworkRequest and timers. Has anyone else encountered this behaviour and if so how have you worked around it?
... View more
05-24-2016
05:28 PM
|
0
|
1
|
1843
|
POST
|
Thanks Hannah. I had looked at Item initially, but wasn't sure if it was appropriate based on the description saying it was the "base type for all visual items". I'll give that approach a try, cheers.
... View more
04-05-2016
10:43 PM
|
0
|
0
|
509
|
POST
|
A bit of a contrived example, but say I have a business type called Person, that has the following attributes: FirstName, LastName, DateOfBirth, Gender. In c# for example, you could implement a POCO like: class Person { string FirstName; string LastName; date DateOfBirth string Gender; } My understanding is that everything is visual in QML, so how do a implement a non-visual data structure such as Person. Once defined, the intention would be to use it in other apps that also need to know what a Person type is, and also be able to use it as a model for List, Grid or even custom views. I guess what I'm trying to say is I want to separate business and UI/presentation layers using pure QML. As mentioned previously, my impression is that you need to use C++ to implement business layer logic, but don't want to go down this path.
... View more
04-05-2016
09:53 PM
|
0
|
2
|
509
|
POST
|
Based on what I've seen on various sites, the advice seems to be you create your business objects in C++, then expose these to QML. Unfortunately, if we go down that path we lose AppStudio Cloud Make which isn't an option. Does anyone have a pure QML approach for defining business object types, and instantiating such types from some data source (RDMS, XML, etc.)? Ideally I'd like to be able to plug these into a ListModel, for example, and re-use these across different app projects across an enterprise.
... View more
04-05-2016
08:26 PM
|
0
|
4
|
3287
|
Title | Kudos | Posted |
---|---|---|
1 | 08-21-2019 08:28 PM |
Online Status |
Offline
|
Date Last Visited |
03-17-2024
02:31 PM
|