Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was attempting to run Setup_Customers_Using_Tabular_Data , I modified the paths to fit my environment but when I run the program I receive

SetupCustomersByTable() takes no arguments (6 given)

note: I had to modify the exception clause to output this

A little investigation in IDLE showed this:

IDLE 2.6.5      
>>> import arcview
>>> import arcpy
>>> print hasattr(, 'SetupCustomersByTable')

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    print hasattr(, 'SetupCustomersByTable')
AttributeError: 'module' object has no attribute 'ba'
>>> print hasattr(arcpy, 'ba')
>>> arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")

<module 'ba' (built-in)>
>>> print hasattr(arcpy, 'ba')
>>> print hasattr(, 'SetupCustomersByTable')
>>> import inspect
>>> print(inspect.getargspec(
ArgSpec(args=[], varargs=None, keywords=None, defaults=None)

This is not the only function this happens with, but all of them in the BA package.

I've never gotten any full arcpy tutorial to work from the website, am I missing something obvious setup wise?

share|improve this question
If the example on the help pages doesn't work as is I would file a ticket with Esri tech support. I've encountered bugs in their sample code on occasion. They're usually pretty quick to respond and clean it up. – matt wilkie Sep 28 '11 at 17:07
@mattwilkie I've already done that, and posted to their public forum. This is my third plea to a community. I'm still working through it myself though. – TCopple Sep 28 '11 at 20:02
sorry to hear about lack of response. I don't have BA so can't run any tests myself. Good luck! – matt wilkie Sep 28 '11 at 20:17
up vote 2 down vote accepted

Answering my own here. A second call into the ESRI support desk and they had me open up the ArcMAP application, to this point I had only opened the Buisness Analyst application after I installed the product.

The support professional explained that the first running of ArcMap initializes some global state. They were unaware of exactly what that state was, but it appears to have worked. All arcpy BA functions now operate as expected.

share|improve this answer
thanks for coming back to post follow up! – matt wilkie Oct 3 '11 at 18:33

I faced similar situation recently and in my case opening ArcMap didn't solve the error. Later I found out that it has to got to do with Business Analyst Licensing.

One more thing is you need to checkout the license for BA extension in Script something like this..


In my case it was supposed to be some BA premium license I think and hence has to be modified as below:


So whoever is facing similar issues with initializing ArcGIS Extensions in ArcPy please look for the license type and whether it is Available, Unavailable, Not Licensed etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.