Hi everyone !
I've started to code a new toolbox with python scripts. All tools are from arcpy : it's just a sequence of arcgis functions.
For instance, first step, I want to create a slope raster. So I call the function SurfaceParameters.
I've imported the function like that :
from arcpy.ra import SurfaceParameters as SurfaceParameters_ra
If I do it as described (from .ra import SurfaceParameters as SurfaceParameters_ra), I get this error message : "ImportError: attempted relative import with no known parent package". But I think I've found a solution (but not sure ?), by importing as above.
Then, I simply create a slope raster by using SurfaceParameters, and I copy this raster in a new raster layer :

Finally, I get this error :

I try to understand where is the error, but I'm tying myself into knots right now!
I hope someone could help me, and I am really sorry if my request is quite idiot...
Sorry for my english too.
Best regards from France.
Chloe