|
POST
|
I think I figured it out. I haven't 100% tested this yet, but I believe the error resulted from the .aprx being Pro 3.0 while the machine I was running my script on had Pro 2.7, so it could not open or use the .aprx. I am going to upgrade that machine to Pro 3.0 sometime this week. Update: it worked!
... View more
01-23-2023
04:17 PM
|
2
|
2
|
8436
|
|
POST
|
I'm having the same error, but with my .aprx path, not with a toolbox path. Have any of you been able to solve the problem? Thanks!
... View more
01-23-2023
11:16 AM
|
0
|
3
|
8438
|
|
POST
|
Hi Adrian, Thanks for your reply! It turns out that my survey's problem was actually due to a server being attacked by bots and timing out. Good luck! Allen
... View more
01-03-2022
02:15 PM
|
0
|
0
|
6365
|
|
POST
|
Hi @AdrianDoss , Did you ever resolve this error? I am currently facing the same problem. Thanks! Allen
... View more
12-28-2021
05:26 PM
|
0
|
2
|
6396
|
|
BLOG
|
@IanGallo No, unfortunately I didn't pursue it a lot farther and didn't find a way to do it. Yes, I think we are talking about the same thing. If you find a way to do it, let me know! 🙂
... View more
11-16-2021
02:23 PM
|
1
|
0
|
8196
|
|
POST
|
To answer your question, I use a concurrent use license, Standard license, with no special extensions unless I need them for a specific task. My problem (described in the original post) was because I had not connected to my organization's licensing in ArcGIS Pro. Whoops. So I was attempting to use Pro without any license.
... View more
09-28-2021
02:10 PM
|
0
|
0
|
9554
|
|
POST
|
Thank you, Jonathan! I appreciate your reply. I don't really know anything about requests and scripting internet-related things (someone else wrote the scripts that I have to work with), so I don't yet understand what those sources are talking about, but I will keep doing research and learning. You have given me a helpful starting place, with those links and your reply. Thank you!!
... View more
09-23-2021
01:23 PM
|
0
|
0
|
1475
|
|
POST
|
Hello, I have done lots of searching about this but have not found anything in Esri documentation or here in the Community, so I thought I'd see if anyone can help. My organization is in the midst of a server migration. In our old ArcGIS Server environment, we had token authentication, but in the new one, we have web-tier authentication. I am trying to migrate a Python script that rebuilt an address locator in the old environment; the script includes stopping and then starting services, which is necessary for rebuilding the address locator. I have 2 main problems: The first problem is that I have no idea how to write Python for web-tier authentication, instead of tokens. I have researched this but haven't found anything. Any suggestions? The second problem is that it sounds like it's not possible to stop/start services via a script anymore, at least not as simply as in the past (see: https://community.esri.com/t5/arcgis-enterprise-questions/start-stop-secure-services-in-10-6-1/td-p/646090 ). I saw that it is possible to do it with the ArcGIS API for Python, but that it requires that the server be federated (https://support.esri.com/en/technical-article/000019994 ). The involved servers are not federated, unfortunately, but we have other servers that are federated. Does anyone know how to stop/start services in a script, services that are not on a federated server? Thanks so much! Allen
... View more
09-14-2021
12:16 PM
|
1
|
2
|
1568
|
|
POST
|
Thank you very much, JeffK and JoshuaBixby, for your helpful replies!!
... View more
02-02-2021
04:16 PM
|
0
|
0
|
3579
|
|
POST
|
Hi! I am hoping to achieve this exact thing. Did you ever figure out how to do it, @ClintonCooper1 ? Thanks!
... View more
02-02-2021
10:35 AM
|
0
|
0
|
3593
|
|
POST
|
Well, I finally fixed it. I think it came down to correcting my Pro license. I feel kind of dumb for not doing that to begin with, but it is also frustrating that there was no hint anywhere along the line that it was an issue. I installed ArcMap on the server to see if the ArcMap version of arcpy would work any better than the Pro version. When I did the installation, ArcMap forced me to look at the license manager and deal with it, and I realized that I didn't recall doing anything with that when I installed Pro, even though I did log into Pro with my AGOL account just fine. I went into the licensing settings in Pro, saw that they were incorrect, and I corrected them. Then I went back to PyCharm. I went to edit the settings for the project interpreter. This time, it had "system environment" as an option, along with conda or virtual environment. This seemed like a good sign, because I had seen instructions to use "system environment" in online resources, but it was never available as an option to me. So I picked "system environment" and the same Python path I had tried before, C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe I chose to "inherit global site packages," as I already had done in my previous attempts. And, this time it worked! My script successfully imported arcpy and ran! So it was all just a licensing issue. Ugh. I really wish there had been an error message somewhere along the way, either when I attempted to import arcpy, or when I opened/used Pro itself, that my license wasn't valid.
... View more
01-14-2021
11:15 AM
|
2
|
2
|
11205
|
|
POST
|
Thanks for your idea! I'm not sure what you mean by the Pro-created Python stand-alone window. The Python window within Pro? Sorry for my ignorance; I'm still a beginner.
... View more
01-14-2021
10:00 AM
|
0
|
0
|
11210
|
|
POST
|
Dan, thank you for your reply! What do you mean by local installs? Do you have any ideas as to what specs of the server I should check to see if it is compatible with numpy? Pro is installed on the C drive of the server, and it has all the folders that you listed. In PyCharm, I am attempting to use as my interpreter (this is part of Pro, on the server's C drive): C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe My PyCharm project (the .py script I'm trying to run) is saved on the D drive of the same server (so Pro is on the C drive and my python file/project is on the D drive). PyCharm requires that a virtual environment be set up for running .py files, so this virtual environment is on the D drive.
... View more
01-14-2021
09:00 AM
|
0
|
2
|
11216
|
|
POST
|
I am running into an error when running a script that tries to import arcpy, in PyCharm, using Pro rather than ArcMap, on a virtual server machine that my organization wants to use to store and run scripts in our enterprise environment. I am trying to get the server set up for this. I have used arcpy in Pycharm on my own PC just fine; I do not know what the problem is with it on the server. I have tried all kinds of possible fixes. Can anyone help? I already uninstalled and reinstalled both Pro and PyCharm, and I have deleted tons of PyCharm projects and created new ones with different settings. I get the same error no matter what I try. Pro version: 2.7 Python: 3.7 Here is the error: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\numpy\__init__.py:138: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service
from . import _distributor_init
Traceback (most recent call last):
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\numpy\core\__init__.py", line 22, in <module>
from . import multiarray
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\numpy\core\multiarray.py", line 12, in <module>
from . import overrides
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\numpy\core\overrides.py", line 7, in <module>
from numpy.core._multiarray_umath import (
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:/Scripts/pythonProject/test2.py", line 3, in <module>
import arcpy
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 21, in <module>
import numpy
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\numpy\__init__.py", line 140, in <module>
from . import core
File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\numpy\core\__init__.py", line 48, in <module>
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.7 from "D:\Scripts\pythonProject\Scripts\python.exe"
* The NumPy version is: "1.19.1"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: DLL load failed: The specified module could not be found. I've already clicked and Googled everything I have found or thought of, and I've read lots of stuff about Pro and PyCharm from Esri and on Geonet and Stack Exchange, etc. But none of the solutions work for me. Here is my project interpreter setting (I have tried various other settings): I did try making it a conda environment a couple times and pointing to a file within ArcGIS Pro that had conda in the name. Note that I do not know what conda is or how it may be relevant or not in this situation. Here is my sys.path: D:\Scripts\pythonProject\Scripts\python.exe D:/Scripts/pythonProject/test2.py
D:\Scripts\pythonProject
C:\Program Files\ArcGIS\Pro\Resources\ArcPy
D:\Scripts\pythonProject
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python37.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
D:\Scripts\pythonProject\lib\site-packages
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\ArcToolbox\Scripts
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\future-0.18.2-py3.7.egg
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pytz-2020.1-py3.7.egg
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\pywin32_ctypes-0.2.0-py3.7.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.7.egg The error has something to do with numpy, and with mkl-service, but I have both of those: Any help would be much appreciated, because I am 100% stuck now, after banging my head against the wall with this for several days. Thank you!!
... View more
01-13-2021
05:24 PM
|
0
|
8
|
11250
|
|
IDEA
|
Thank you, Phil! Oh, that is very good to know. I am so used to getting downloads from clicking on something on a website, and I have not used the Microsoft Store before. So it's good to now have some sense of the benefit of using it. Thanks! Allen
... View more
01-13-2021
04:37 PM
|
0
|
0
|
1288
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-30-2025 03:01 PM | |
| 1 | 09-30-2025 05:42 PM | |
| 1 | 11-01-2023 11:39 AM | |
| 1 | 11-21-2024 04:21 PM | |
| 1 | 08-05-2025 12:29 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-18-2025
12:06 PM
|