Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Python tool generates an error only inside IDE

$
0
0
All,

I'm getting a warning in Aptana writing my python code, but the script will run.

Here's my script (text in red is error / warning):

Code:

import arcpy
arcpy.CheckOutExtension("DataInteroperability")
arcpy.ImportToolbox(r"C:\GISTemp\PythonTBX")
arcpy.PythonETL()

The red text above displays the error:

Code:

Undefined variable from import, PythonETL
Not sure why the error is displaying but the script still runs...

The script runs fine on its own outside of Aptana.

-m

Viewing all articles
Browse latest Browse all 2485

Trending Articles