POST
|
Hi there, Has anyone seen a case where if you are running Python 2.7 on ArcGIS Server 10.6.1 when you try to instantiate any _arc_object objects from the gp object the Python process crashes? This happens after the VS C++ 2008 x64 redist is installed on a server. I have a script that add a mosaic layer to a map document in preparation for printing. Does this: arcpy.mapping.AddLayer(df2, lyrLayer, "AUTO_ARRANGE") which in turn does this in mapping.py data_frame._arc_object.InsertLayer(None, my_copy) this crashes afcore.dll (in my case) it only seems to be c++ 2008 redist - 2005,2010,2013 are all fine (and 2017 obviously) I can see that ArcGIS Server has these bundled with it in the bin directory: so does having the c++ 2008 redist installed break this linkage? With the redist installed I see this: it seems to change one of the versions from in the windows winsxs directories 9.00.30729.1 to 9.00.21022.8 - though this may be unrelated. Esri version c:\windows\winSxS version (there are various versions) This server gets c++ 2008 x64 installed for VMWare tools. Has anyone got any info on how Server registers the baked in c++ 2008 dlls and how installing the redist breaks it. More to the point the best way to recover it - uninstalling and reinstalling 2017 seems to work sometimes but not always! Thanks Fraser
... View more
04-23-2019
09:29 PM
|
0
|
0
|
343
|
POST
|
Hi, In the Python API we can create an arcgisprofile to store credentials securely. If we are scripting desktop type tasks it would be good if this function also supported a profile rather than url, username, password. I suppose we could wrap this in the keyring module but this would also expose the password to anyone who had access to the scripts..? Is there any support for profiles coming? SignInToPortal—ArcPy Functions | ArcGIS Desktop Thanks Fraser
... View more
03-10-2019
07:16 PM
|
3
|
0
|
549
|
POST
|
HI, I have 10.3.1 deployment and a 10.6.1 deployment where I am attempting to access the GIS servers via the following but I am unable to access the GIS servers. The documentation Working with different authentication schemes | ArcGIS for Developers doesn't say that you need to do anything special - yet it doesn't look like the internal token between Portal and ArcGIS Server is being created. Anyone else hit this? I'm on 1.6.0 of the API. import arcgis;print(arcgis.__version__) from arcgis.gis import GIS from getpass import getpass from arcgis.gis import admin from arcgis.gis import server import win32api #pywin32 # you need this for IWA import kerberos_ssp source = GIS(portal_url,verify_cert=False) print("Logged in as: " + source.properties.user.username) servers = source.admin.servers gis_servers = source.admin.servers.list() print(gis_servers) This returns: Logged in as: handf3@AKLC Could not access the server at https://.../arcgis <ServerManager at https://..../portal/portaladmin> Could not access the server at https://.../arcgis3Could not access the server at https://.../arcgis2 10.6.1 gives a slightly different result: Logged in as: handf3@AKLC <ServerManager at https://.../portal/portaladmin> Unable to generate token. Unable to generate token for this server Could not access the server at https://.../arcgis
... View more
03-10-2019
02:16 PM
|
0
|
2
|
610
|
POST
|
Hi, Esri are aware of it and it will be addressed in a future release. You'll need to work around in the meantime. Thanks Fraser
... View more
03-05-2019
12:38 PM
|
2
|
10
|
2802
|
POST
|
Hi, I'm clipping data and moving to a file geodb from SDE and fixing up datasources for a symbolised Pro project before publishing. This works for the main part unless the feature class is in a feature dataset. Doing the below works for 90% of my feature classes - if the FC is in a FD the source breaks as Pro can't find the FD in the filegeodb. (note the validate false was for troubleshooting) con_props = {'connection_info':{'database': temp_filegeodb,
'authentication_mode': '',
'dbclient': '',
'db_connection_properties': '',
'password': '',
'instance': '',
'server': '',
'user': '',
'version': ''},
'dataset': name,
'workspace_factory': 'File Geodatabase',
'feature_dataset': ''
}
print(con_props)
a_layer.updateConnectionProperties(a_layer.connectionProperties, con_props,validate=False) yet I can't see a flag to clear the feature dataset from the layer. So we end up with a broken datasource as the layer is still looking for the original feature dataset. Is there an easy way to clear this - I haven't seen anything in the doco. Before: After: surely this property is exposed in the connection_info dictionary? Right? Ta Fraser
... View more
01-30-2019
08:05 PM
|
2
|
13
|
4112
|
POST
|
Hi, I'm trying to create a hosted feature layer view via the feature layer collection manager in 10.6.1 with python API 1.5.2. In the managers.py there is this def create_view(self,
name,
spatial_reference=None,
extent=None,
allow_schema_changes=True,
updateable=True,
capabilities="Query",
view_layers=None): function, which has a block to get the username for the sharing API if gis._url.lower().find("sharing/rest") < 0:
url = gis._url + "/sharing/rest"
else:
url = gis._url
if 'id' in gis.properties.user:
me = gis.properties.user.id
else:
me = gis.user.me.username
url = "%s/content/users/%s/createService" % (url, me) I haven't got 'id' in the properties.user and there is no gis.user - and it's weird that this property isn't checked before attempting access - so the developer has assumed it will be present. I'm using built in portal IDP. So looks like we have a missing test case? I'm going to rewrite the code to fix this use case but interested to know why gis.user.me is missing from my GIS object. Thanks Fraser EDIT: Assuming the line should be: elif 'username' in gis.properties.user:
... View more
12-17-2018
07:41 PM
|
0
|
2
|
623
|
POST
|
Hi there, Has anyone got any experience, metrics, suggestions or recommendations of using disk encryption such as Bitlocker with ArcGIS Enterprise? Does the software work ok with it? Is there any performance hits etc etc. Thanks Fraser
... View more
11-25-2018
05:07 PM
|
0
|
1
|
593
|
POST
|
Ok so the trick is to update to ArcGIS Pro 2.2.0 - this seems to honour all the DAML. Thanks Fraser
... View more
07-23-2018
04:28 PM
|
0
|
0
|
687
|
POST
|
Thanks for that - much appreciated. I'm having a bit of fun with context menus as well - I can remove the RMB context menus for database connections but not toolboxes - even though I have delete menu tag. Any tricks here? Ta Fraser
... View more
07-23-2018
04:14 PM
|
0
|
0
|
687
|
POST
|
Hi there, Thanks for the reply. I'm stripping out the buttons as much as I can but even if I use the deletedockPane it is still visible on the startup of ArcGIS Pro. Thanks, Fraser
... View more
07-22-2018
06:07 PM
|
0
|
3
|
687
|
POST
|
Hi, I'm trying to strip out the ArcGIS Pro UI via DAML. This bit works: <backstage> <deleteButton refID="esri_core_saveProjectButton" /> <deleteButton refID="esri_core_saveProjectAsButton" /> <deleteButton refID="esri_core_showOptionsSheetButton"/> <deleteTab refID="esri_core_AddInsTab"/> <deleteTab refID="esri_core_CondaTab"/> <deleteTab refID="esri_core_LicensingTab"/> </backstage> </ArcGIS> but if I use something like this <updateModule refID="esri_mapping" caption="Mapping" description="Mapping"> <dockPanes> <deleteDockPane refID="esri_mapping_symbologyDockPane"/> <deleteDockPane refID="esri_mapping_labelClassDockPane"/> <deleteDockPane refID="esri_mapping_popupsDockPane" /> <deleteDockPane refID="esri_mapping_locateDockPane"/> <deleteDockPane refID="esri_mapping_geocodeTableDockPane"/> <deleteDockPane refID="esri_mapping_animationDockPane"/> <deleteDockPane refID="esri_mapping_animationEditorDockPane"/> <deleteDockPane refID="esri_mapping_animationPreviewDockPane"/> <deleteDockPane refID="esri_mapping_animationTimelineDockPane"/> <deleteDockPane refID="esri_mapping_temporalViewerDockPane"/> <deleteDockPane refID="esri_mapping_annotationDockPane"/> <deleteDockPane refID="esri_mapping_annotationClassCreateDockPane"/> <deleteDockPane refID="esri_mapping_interactiveAnalysisDockPane"/> </dockPanes> </updateModule> It doesn't - these items are still visible / usable in the ArcGIS Pro UI. I can nuke it via var someElements = from seg in database.Root.Descendants(nsp + "module") select seg; and removing the elements but I'm sure this will cause null exceptions down the track. Why isn't the DAML being honoured? I'm missing something. Thanks, Fraser
... View more
07-15-2018
04:55 PM
|
0
|
5
|
821
|
POST
|
Hi, Yes I did - the first issue we had was the index service port was blocked on the second portal server. The index still did drop and bounce around though. The best way I found to fix it was to shut down the secondary portal server, rerun a full index and check, and then bring the second portal back up. This was 10.5 though. Thanks, Fraser
... View more
05-15-2018
11:34 PM
|
0
|
1
|
2631
|
POST
|
Hi, Have you seen this before: item = gis.content.get('0063eabbf6b94220a6c671b898c454b9') gis2.content.clone_items([item]) RuntimeError Traceback (most recent call last)<ipython-input-15-000e99e9d2b6> in <module>()----> 1 gis2.content.clone_items([item])C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in clone_items(self, items, folder, item_extent, use_org_basemap, copy_data, search_existing_items, item_mapping, group_mapping) 3119 wgs84_extent = clone._wgs84_envelope(service_extent) 3120 deep_cloner = clone._DeepCloner(self._gis, items, folder, wgs84_extent, service_extent, use_org_basemap, copy_data, search_existing_items, item_mapping, group_mapping)-> 3121 return deep_cloner.clone() 3122 3123 def _bulk_update(self, itemids, properties):C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_clone.py in clone(self) 523 asyncio.set_event_loop(asyncio.new_event_loop()) 524 loop = asyncio.get_event_loop()--> 525 results = loop.run_until_complete(self._clone(executor)) 526 loop.close() 527 return results C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\asyncio\base_events.py in run_until_complete(self, future) 453 future.add_done_callback(_run_until_complete_cb) 454 try:--> 455 self.run_forever() 456 except: 457 if new_task and future.done() and not future.cancelled():C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\asyncio\base_events.py in run_forever(self) 407 self._check_closed() 408 if self.is_running():--> 409 raise RuntimeError('This event loop is already running') 410 if events._get_running_loop() is not None: 411 raise RuntimeError( RuntimeError: This event loop is already running Thanks Fraser EDIT: actually looks like an issue with Notebook environment - works fine from an IDE such as Pycharm See Can't invoke asyncio event_loop after tornado 5.0 update · Issue #3397 · jupyter/notebook · GitHub
... View more
05-10-2018
10:06 PM
|
0
|
1
|
2040
|
POST
|
Hi, I think it was an encoding issue around some characters with accents from memory. Thanks Fraser
... View more
04-25-2018
12:57 PM
|
0
|
0
|
927
|
Title | Kudos | Posted |
---|---|---|
3 | 03-10-2019 07:16 PM | |
1 | 11-20-2017 01:27 PM | |
1 | 06-25-2019 05:14 PM | |
1 | 11-03-2019 02:55 PM | |
3 | 07-27-2017 04:16 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|