|
POST
|
Indeed. Something else screwy is going on and I lack the savvy to easily get at it. I created a new environment which has a near-identical path to the old one. When I go to select it as my new python interpreter in VS code I'm warned that it's 'identified as a Conda environment even though Conda not found.' But earlier in the initialization it finds its way to ~\.conda\Scripts\conda.exe info --json just fine.
... View more
12-13-2023
09:05 AM
|
0
|
0
|
2647
|
|
POST
|
Adding another one.... So I nuked the old environment and created a new one. All is well. However, now in VS code I can't get it to recognize the new environment. I've been attempting to follow the steps outlined by you (Brian) here but I can't get I can't get the command prompt to recognize conda.
... View more
12-13-2023
08:57 AM
|
0
|
1
|
2648
|
|
POST
|
@Brian_Wilson Thanks for the reply. I did check to see if that file already exists (I promise I read my error message before posting this!). None existed. I can also write to this location (which is a concern, as I do not have full administrative rights on my machine). I created a new clone with the exact same name/location as the environment I can't update using the Pro tool, wondering if it would overwrite it. The cloning seemed to work fine and I can now interact with that environment using Pro's GUI. However, the crux package that I needed updated (arcgis, to 2.2) doesn't appear to be updated.
... View more
12-12-2023
04:05 PM
|
0
|
4
|
2665
|
|
POST
|
I upgraded to 3.2 in order to access the upgrade arcgis module. However I can't seem to upgrade my previous environment. Is it necessary to create a new clone? > "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\conda-proup.exe" --prefix "C:\Users\tbott\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone" --force --backup "C:\Users\tbott\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone.tar.bz2"
Collecting packages...
Upgrading environment at 'C:\\Users\\tbott\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone' with backup at C:\Users\tbott\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone.tar.bz2
Detected packages added to environment:
conda: tabulate geopandas
Traceback (most recent call last):
File "conda_proup\core.py", line 580, in backup
File "conda_pack\core.py", line 561, in pack
File "conda_pack\core.py", line 396, in pack
File "conda_pack\core.py", line 1095, in add
PermissionError: [Errno 13] Permission denied: 'C:\\Users\\tbott\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone\\Scripts/normalizer.exe'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "conda_proup\cli.py", line 64, in main
File "conda_proup\core.py", line 1082, in upgrade
File "conda_proup\core.py", line 997, in upgrade
File "conda_proup\core.py", line 583, in backup
Exception: Unable to backup original environment, stopping upgrade.
Backing up environment to C:\Users\tbott\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone.tar.bz2
Collecting packages...
Packing environment at 'C:\\Users\\tbott\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone' to 'C:\\Users\\tbott\\AppData\\Local\\ESRI\\conda\\envs\\arcgispro-py3-clone.tar.bz2 I'm getting a 'Permission denied.' I don't have admin rights on my machine but this should be an issue. I was able to clone the environment previously and manipulate packages as necessary. Attempting to do so at the command line doesn't seem to like the syntax of the provided code.
... View more
12-12-2023
11:48 AM
|
1
|
8
|
2758
|
|
DOC
|
@JakeSkinner Is there a way to format email notifications at all? The Python text delimiters don't seems to be honored at all and I need to send a more complex message.
... View more
12-11-2023
03:08 PM
|
0
|
0
|
7583
|
|
POST
|
Shame this went unanswered....came here looking for this very thing. Years later and I can't find helpful resources.
... View more
12-11-2023
03:04 PM
|
0
|
0
|
1238
|
|
POST
|
@JPGarCar This is old old old but....how does one review the requests the .create() call is making? I'm having a similar problem, which is how I found myself to this post. The difference is that I had my code working fine a few days ago and could create users. Now they fail. I'd like to figure out the next phase in troubleshooting and reviewing the requests would help.
... View more
12-11-2023
09:32 AM
|
0
|
0
|
1104
|
|
POST
|
I am having trouble updating the arcgis module in my cloned environment. I have not had issues using the package manager in Pro to install or update packages. Currently have Pro 3.1.3 and arcgis 2.1.0.2. The package manager notes that updates are available, I click 'update all,' I get a happy green check saying updates complete....but then none of the packages are updated. I have tried to install the new version of arcgis from the command line but it says it cannot due to 'pinned specs.' (arcgispro-py3-clone) C:\Users\tbott\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone>conda install -c esri arcgis=2.2.0.1
Collecting package metadata (current_repodata.json): done
Solving environment: \ WARNING conda.core.solve:_add_specs(648): pinned spec arcgis=2.1.0 conflicts with explicit specs. Overriding pinned spec.
failed with initial frozen solve. Retrying with flexible solve.
Solving environment: - WARNING conda.core.solve:_add_specs(648): pinned spec arcgis=2.1.0 conflicts with explicit specs. Overriding pinned spec.
failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: / WARNING conda.core.solve:_add_specs(648): pinned spec arcgis=2.1.0 conflicts with explicit specs. Overriding pinned spec.
failed with initial frozen solve. Retrying with flexible solve.
Solving environment: | WARNING conda.core.solve:_add_specs(648): pinned spec arcgis=2.1.0 conflicts with explicit specs. Overriding pinned spec.
failed
SpecsConfigurationConflictError: Requested specs conflict with configured specs.
requested specs:
- arcgis=2.2.0.1
- arcpy-base=3.1
- esri/win-64::arcpy==3.1=py39_arcgispro_41759
- proj4
pinned specs:
- mkl==2020.0=arcgispro_167
- numpy=1.20
Use 'conda config --show-sources' to look for 'pinned_specs' and 'track_features'
configuration parameters. Pinned specs may also be defined in the file
C:\Users\tbott\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\conda-meta\pinned. The output gives the location of the pinned file. Is it safe to update this manually? What is the best way to get the version updated? I do not have admin rights on my machine so I cannot myself update to Pro 3.2, if that's the solution. Or is this a conda problem?
... View more
12-07-2023
04:38 PM
|
1
|
1
|
1667
|
|
POST
|
Question is essentially the title: is it possible to create accounts using the python api that's a replication of the 'Add members and notify them via email' style used in the GUI (see below)? Our workflow is going to involve ingesting a list of hundreds of names from a survey, verifying them, and then creating hub community accounts. The preference would be to do so in a way that lets the user set their own password rather than provisioning them one. I've been able to create users just fine, and then send a notification email just fine, but I don't like how the process is separate and the fact that a notification email comes from me, rather than the ArcGIS Online system. Examples below: #Define User
first_name = 'First'
last_name = 'Last'
email = 'First.Last@fake.com'
#Create user
new_user = gis.users.create(
username = f'{first_name}_{last_name}_Community',
password = 'testTest123',
firstname = first_name,
lastname = last_name,
email = email,
credits = 50,
role = 't8qahvxvKEh6uNyT',
user_type = 'creatorUT',
groups = '<987ce15a07694fa6bf9ec45cd6241b7b>'
)
#Send notification
userList = []
userList.append(new_user)
messageSubject = 'This is a test message from AGOL'
messageMessage = 'This is the plain text message that we are sending. Check it out.'
gis.users.send_notification(userList, subject = messageSubject, message = messageMessage, type = 'email') It would seem that just using the .create() method could generate the GUI-style email, as, according to the documentation, there's an 'email_text' argument (see below). However, when attempting this I get an error saying that the 'email_text' argument is unexpected. create(username, password, firstname, lastname, email, role, description=None, provider='arcgis', idp_username=None, level=2, thumbnail=None, user_type=None, credits=- 1, groups=None, email_text=None)¶ emailText = 'This is a test email! You have been invited to join this community extravaganza!'
new_user = gis.users.create(
username = f'{first_name}_{last_name}_fhsz',
password = 'testTest123',
firstname = first_name,
lastname = last_name,
email = email,
credits = 50,
role = 't8qahvxvKEh6uNyT',
user_type = 'creatorUT',
groups = '<987ce15a07694fa6bf9ec45cd6241b7b>',
email_text = emailText
) Any help would be appreciated. It would be much better if we could mimic the GUI-style sending of an email, rather than creating the usernames and then sending them an email to try to log in.
... View more
12-07-2023
11:41 AM
|
0
|
5
|
1981
|
|
POST
|
Figured this out. I was using the wrong type of user object and missed in the documentation the need to access the list property for the invitation manager. To find and accept all of your invitations for a user... from arcgis.gis import sharing as GIShare
user = gis.users.get('UserName')
invitationManager = GIShare.UserInvitationManager(user=user)
inviteList = invitationManager.list
for invite in invitationsList:
invite.accept()
... View more
12-07-2023
10:54 AM
|
0
|
0
|
853
|
|
POST
|
I have a workflow that involves managing content and users between our organizational account and our Hub account. This process involves hundreds of groups that will require a half-dozen users each. An important piece of the puzzle is a script that invites my Hub account into all of the several hundred groups (as a manager) so that, from that Hub account, another script can run that creates the users and adds them to their respective groups. Finding my relevant groups and inviting my Hub account is no problem. However, I would like to be able to accept all of those invitations within the script, so I don't have to click 'accept' five hundred times. According to the documentation, the gis.sharing module, and calling the UserInvitationManager, should do the trick. However, I keep getting property map errors when I attempt to access invitations. from arcgis.gis import sharing as GIShare
user = gis.properties.user
GIShare.UserInvitationManager(user=user) Looking for some guidance on how to use this....apologies if I'm overlooking something obvious as I'm a bit of a novice. There's not a lot of documentation.
... View more
12-06-2023
04:57 PM
|
0
|
1
|
949
|
|
POST
|
Solved here: https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-enable-any-organization-s-members-setting/td-p/1299559
... View more
11-29-2023
03:50 PM
|
0
|
0
|
934
|
|
POST
|
I have a script that ingests a csv of jurisdictions and creates groups/apps based on that list. I am running into an issue with one of the parameters of the groups.create() method: the memebership_access parameter isn't honored. The documentation says it will take will take 'org', 'collaboration', and 'none' as optional strings (and the documentation is itself confused, because in the example script it uses None, which is quite different). The docs says 'none' is the default, but it isn't. If no argument is given it defaults to org. Calling 'collaboration' works. However, calling 'none' (or None, as I've tried both) does not work. A code snippet: j = 'Riverside5'
print('\nCreating group for '+ j + '...')
newGroup = gis.groups.create(title = 'FHSZ LRA - ' + j, tags = tagsList, snippet = groupSnippetText, access = 'private', display_settings = 'apps', is_invitation_only = 'True', sort_order = 'desc', thumbnail = groupThumbnailURL, membership_access='none')
print('Group created. Group ID: '+ newGroup.id) The result stays here: The intention of the script is to assist in the creation of hundreds of groups. Not being able to specify this setting is a considerable problem.
... View more
11-29-2023
03:06 PM
|
0
|
1
|
995
|
|
POST
|
Thanks, @EarlMedina . Those are perfectly good workarounds and I'll use them instead. I have a follow-up question, just out of curiosity around Esri as an organization. You work for them. You've observed the problem and acknowledge it as an issue. Why, then, is there not a more direct line to getting it fixed internally, seeing as you're part of the team? It doesn't make sense that I should now work with my administrator to open a case, wait to get a call back, maybe get assigned a competent tech, just to log a bug that sits around and is never resolved. You're asking a customer who pays for this service to spend their time helping fix the thing that, based on the company's documentation, should already work.
... View more
11-20-2023
09:51 AM
|
0
|
1
|
1537
|
|
POST
|
I am having trouble pulling specific set of properties from various items via the api. I have a script that ingests a lists of jurisdictions and then creates a group, view layer, web map, and application (based on templates) for each jurisdiction. As part of the process I am also including an output table of all created items with their ids, url's, ownerFolder, title, etc. All properties can be pulled successfully with the exception of 'groupDesignations' and the 'url' for web maps. Group Designations It appears that however Esri has intended this to function the groups that an item is shared with is not recorded in the item's properties. See the item's JSON via the assistant below, where there are no values for groupDesignations (even though this is in fact shared). And below, where there is a workaround to call it via .shared_with(), but it requires pulling it out of a list. Web Map URL How else can one pull the web map's URL? item.url pulls nothing. And scanning the item's JSON it doesn't appear that the URL that it lives at is stored anywhere. What other methods are there to capture and store the map's url in a table? (Calling .url for the other item types works just fine).
... View more
11-17-2023
02:16 PM
|
1
|
4
|
1638
|
| Title | Kudos | Posted |
|---|---|---|
| 7 | 10-31-2025 09:00 AM | |
| 1 | 08-21-2025 04:41 PM | |
| 1 | 08-14-2025 01:24 PM | |
| 1 | 07-27-2025 10:25 AM | |
| 1 | 07-23-2025 11:30 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-06-2025
12:24 PM
|