Hi, i have a problem with arcpy when i try to import it in a script with idle the message
no "module named arcpy" appear. But when i run it directly in arcgis.
The second problem is the no recognition of the feqtureclqss . the message that appearr is : the featureclass doesntexist.
Remarque I use ArcSDE connection and ArcGIS 10.1
Thank you
Solved! Go to Solution.
I don't use Pyscripter (I use Wing as my external IDE), but check out this link for setting to a different path
The basics of the thread that I see
Go to PyScripter>>Tools>>Options...>>Custom Parameters... and add the following values
1. PythonDir = C:\Program Files\CustomPythonInstallation 2. PythonExe = C:\Program Files\CustomPythonInstallation\python.exe 3. PythonVer = 3.3.3 Note: Adapt the Name = Value pairs above to your case.
And close the window with OK button. Now select PyScripter>>Run>>Python Engine>>Remote and your are ready to go.
WAY 2 (The more temporary solution)
I hope this helped, good luck.
What IDE are you using outside of ArcMap? It is not installed properly in any event.
Show your code, if you have any, so that the problem to the path to the featureclass can be determined.
hi dan, thank you
i use IDLE (python GUI) and Pyscripter.
My code is correct and debugging.
make sure that you have the version of python installed with arcmap. check your python path and note them here if needed. Just reinstalling arcmap isn't going to help if you have an old or different python kicking around. Pyscripter installs flawlessly over python, you can find the python path within pyscripter (can't remember which menu option off-hand), you can view it from their
Hi dan,
These are the python path illustrated with Pyscripter
did you also verify stuff in the link Rebecca sent you? You have to check other things as well. Read carefully, it may help
Locating Python and adding it to your system Path | Python, GIS and stuff…
I don't use Pyscripter (I use Wing as my external IDE), but check out this link for setting to a different path
The basics of the thread that I see
Go to PyScripter>>Tools>>Options...>>Custom Parameters... and add the following values
1. PythonDir = C:\Program Files\CustomPythonInstallation 2. PythonExe = C:\Program Files\CustomPythonInstallation\python.exe 3. PythonVer = 3.3.3 Note: Adapt the Name = Value pairs above to your case.
And close the window with OK button. Now select PyScripter>>Run>>Python Engine>>Remote and your are ready to go.
WAY 2 (The more temporary solution)
I hope this helped, good luck.
hi rebecca,
thank for the link.
no the sccript run from pyscripter as external run.
No the problem is the Access to the clasa. The class exist but the message is the class "does not exist"
Hi rebecca,
I solved the problem of "no module named arcpy" by the link given by you and i run the script in pyscripter with external run.
The second "problem" of the class "does not exist" i solved it by re-writing the path of connection file in the script.
Final thank you very much for your help
Hi dan, I solved the problem of "no module named arcpy" by the link given by rebecca and i run the script in pyscripter with external run.
The second "problem" of the class "does not exist" i solved it by re-writing the path of connection file in the script.
Final thank you very muchforyour help