Select to view content in your preferred language

Object: Tool or environment <RepairGeometry> not found

4190
4
05-03-2010 12:43 AM
KatharinaWerner
New Contributor
hello,
i wrote my own script. the script uses some geoprocessing-tools of esri, e. g. repair geometry. if i try to run the script, i get the following error message:

<type 'exceptions.AttributeError'>: Object: Tool or environment <RepairGeometry> not found


i guess it is asscoicated with the python-installation. Has anybody an idea why it doesn't work? When I run the script on my local machine there are no problems. But when we try to run it on a terminal-server the mentioned error message comes. The installation-paths on the terminalserver are not the default-paths like on my local machine (it's not under C:\Python...).

Is it possible to set the path to the numpy-folder? I read it in a thread, that this folder must exist under C:\Python25\Lib\site-packages\numpy. But on the terminalserver its under N:\GIS-Programme\Python25\Lib\site-packages\numpy.

Thanks a lot in advance for your help,
Katharina
0 Kudos
4 Replies
JeremiahPodleski
New Contributor
I have this same problem with 3 custom tools I built (and they each successfully run on their own), but when I try to call them from another script tool they fail. I always get the same error on either the first, second, or final tool it tries to run.

[INDENT]<type 'exceptions.AttributeError'>: Object: Tool or environment <GenerateAttributePoints_GeoreadinessTransTools> not found
Failed to execute (gisToCadCombo).[/INDENT]

GenerateAttributePoints_GeoreadinessTransTools <-- This is the correct name and toolbox that my tool exists within. I also use gp.addtoolbox() to add my custom toolbox to the geoprocessor when the script runs.

I have been up down and sideways trying to figure out why it can't find my tools. Worse yet, the behavior is very inconsistent. It fails the least on the first tool, often on the second tool, and 99% on the final tool.

What the heck?!!

I'm building and testing this all on the same machine.
I've even tried starting ArcCatalog with administrator privileges.
I've checked all paths, aliases, tool names, etc. etc. ad nauseum.

Anybody have any clues? Tearing my hair out over this one.

Thanks,

Jeremiah
0 Kudos
KatharinaWerner
New Contributor
hi jeremiah,

do you use also a terminalserver? we only have this problem, when we connect via a citrixconnection to the server. and this errormessage comes only, when we want to execute the script via the toolbox. if i execute the script via the python-idle-console it runs without problems. if i execute a model, that calls a pythonscript, which i created, it doesn't run.

so we think the problem is in the constellation of citrix (terminalserver) - arcgis - python. maybe there are some systemvariables, which will not accessable for a citrixsession.

we opened a ticket at the esri-supporthotline. but they said it would be a bug by citrix. haha!

greetings katharina
0 Kudos
AnneJohnson
New Contributor
Were you able to solve this problem? I am running into the same situation where a python script created from a model runs on the desktop but not the server - is it a license issue? Do I need desktop installed on the server to run a python geoprocessing script? I don't think it's a python error, since the numpy folders have the same pathnames on the server as the desktop. I am using primarily the feature class to feature class tool from the conversion tools toolbox and get the following error when the script is run on server:

AttributeError: Object: Tool or environment <FeatureClassToFeatureClass_conversion> not found

Any ideas? I have added conversion tools.tbx and database connections to the server, tried various filepath and permissions configurations, etc., and am at a dead end short of installing desktop. I had an incident open about this in April and am just now getting back around to it since it's been running on the dektop in the meanwhile (writes fine to the gdb on server).

Thanks!

Anne Johnson
0 Kudos
LarryWilliams
Regular Contributor
I believe we are getting a simmilar issue using the "Feature Class to Feature Class" toolbox command.  We get scripting errors from IE against a FileURL.  see attached.

We have found a possiblity for this error.  If we try to acess the FileUrl from our decktop we don't have an issue.  If we try to access from IE on the Citrix Server then we get "Accessing the resource 'file://....' has been disallowed.

The registry has an entry for disabling "FileUrl"s from Citrix.

I'm checking with our server group to see if I can test this out and I'll let you know.

Registry Legend
User Key:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
System Key:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
Value Name:
NoFileUrl
Data Type:
REG_DWORD (DWORD Value)
Value Data:
(0 = Enable File URLs, 1 = Disable)
0 Kudos