simonl3000

Import arcpy in 10.1

Discussion created by simonl3000 on Feb 26, 2014
Latest reply on Feb 26, 2014 by simonl3000
I've been shuffling along on multiple threads trying to find a solution to the "import arcpy" function. I'm not a programmer or do I understand python very well. I'm essentially trying to create a model which I can run in task manager. From my limited understanding, I have to:
- Create a model in Model Builder
- Export the code as Python script
- Schedule a task in Task Manager

I've read that using different version of Python will mess with how my Python interface interacts with Arc. I currently have Python 2.7 installed along with ArcGIS Desktop 10.1. I previously had Python 3.4 installed but I read something about Arc 10.1 not being compatible with the 64-bit Python 3.4.. I'm not sure if I have any residual files messing with Python but importing arcpy doesn't work. I get the following error:

[INDENT]Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import arcpy
ImportError: No module named arcpy[/INDENT]

Is there a simple way to solve this problem. (Maybe a step by step?) Simply put, I want to copy files from a geodatabase to a "backup" version on a weekly basis. Maybe I'm taking the wrong approach?

Any help would be greatly appreciated.
Cheers,
Simon

Outcomes