Select to view content in your preferred language

Map Book script from ESRI exercise fails with Runtime error

2670
3
03-12-2011 10:42 AM
WilliamLord
Emerging Contributor
I am working on the exercise " Creating a Map Book" from ESRI's online Help for v10. This is the link to the section that uses a python script.

[URL="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Adding_title_and_overview_map_pages_to..."]

The script returns this error.
Runtime error <type 'exceptions.AttributeError'>: Invalid path

Anyone know why? 
I was able to export the map to PDF in the prior step.
Tags (2)
0 Kudos
3 Replies
ChrisMathers
Deactivated User
Well are you just copy-pasting from the help or are you changing the paths. It may just be that the path in your script doesnt exist. manually check em.
0 Kudos
MollyWatson
Regular Contributor
I manually changed the paths and I still get that same error. Other times everything crashes and I get an ESRI send error report.  Any other ideas other than manually checking the paths?
0 Kudos
JeffBarrette
Esri Regular Contributor
I completely reproduced the directly structure with made up files and it all worked.  You must have a logical error somewhere in your file name or path.

Also - you mention that you get an crash report.  Are you running this from within ArcMap or as a stand alone script?

Jeff
0 Kudos