Street index report help

3339
3
06-17-2014 01:41 PM
Labels (1)
WeatherlyD
New Contributor
I keep getting this error when trying to run the create street index report tool from the local government tool box.

Executing: CreateStreetIndexReport RoadCAD1 FNAME firemapindex PageNumber LANDSCAPE C:\Users\gisintern.COOK\Documents\ArcGIS\schroederSIR.pdf # #
Start Time: Tue Jun 17 16:29:44 2014
Running script CreateStreetIndexReport...

Traceback (most recent call last):
  File "C:\Users\gisintern.COOK\Downloads\FireRunBookfor10.2\MapsandGeodatabase\Local Government.tbx#CreateStreetIndexReport_localgov.py", line 20, in <module>
ImportError: No module named reportlab.lib.styles

Failed to execute (CreateStreetIndexReport).
Failed at Tue Jun 17 16:29:45 2014 (Elapsed Time: 0.64 seconds)


I"m unclear about what a traceback is ? and how to create a Report.lib.styles...
Do I have to prepare my roads layer by dissolving intersections?

I've tried just about everything I can think of with no luck. Any help would be much appreciated
0 Kudos
3 Replies
MiguelGarriga
New Contributor II
Hi Weatherly,

I just went through this, so here goes... (buckle up and hang on!)

You have to install ReportLab for the Street Index python script to work.  The Street Index script uses ReportLab to create the PDF.  Unfortunately, the install for ReportLab is not very straightforward (not as simple as double clicking an exe file).

1. Download ReportLab open source from this page:
http://www.reportlab.com/opensource/
or here https://bitbucket.org/rptlab/reportlab

The ReportLab download is a zip file, so unzip it.  Once unzipped, there is a file called setup.py which I double clicked but I don't think it actually installed anything, because I continued to get the same error message you did (reportlab not installed).  There is a README.txt file there, but what I gleaned from it is that you have to install reportlab using other tools (easy_install or pip - never heard of either before).

2. Download/Install pip for windows
https://sites.google.com/site/pydatalog/python/pip-for-windows

Keep hitting enter at the prompts until the pip install is complete.  When it is finished, the pip window should stay open. 

3.  In the pip window command field, type: pip install reportlab
This will install reportlab.  At this point, the street index script should work.

Below is a link to the Reportlab user guide.  It has an Install section, but seems geared to developers rather than casual users:
http://www.reportlab.com/docs/reportlab-userguide.pdf

Good Luck!!! 🙂  If all else fails, call Esri technical support, they may be able to assist.
0 Kudos
WeatherlyD
New Contributor
thanks for the response! I will give it a try tomorrow 🙂
0 Kudos
WeatherlyD
New Contributor
having a heck of a time dealing with this .whl file .. the report lab no longer comes in a zipped folder.
Anybody have detailed instructions on how to set all this up? The instructions are not very user friendly because they dont address this .whl file type . thanks much
0 Kudos