Gadfly or gadfly or Gadfly.gadfly() or _?

Eric @ Zomething eric at
Mon Mar 8 09:46:30 CET 2004

My interest was piqued enough to try Gadfly, but I find myself struggling to install it, a new problem for this newB.  Not sure if any of this is the distribution's "fault" or just my lack of understanding of Python:

1) I notice there is no py file named "".  How does Python find and define the namespace?
2) I have installed the files in this directory under a Windows XP OS:  C:\Python23\Lib\site-packages\Gadfly
3) "import gadfly", as shown in the docs, returns an ImportError
4) "import Gadfly" does not return any errors.  Is this because of the capitalization of the directory name?

then, following the instructions in the docs:

>>> connection = gadfly.gadfly()
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in ?
    connection = gadfly.gadfly()
NameError: name 'gadfly' is not defined

>>> connection=Gadfly.gadfly()
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in ?
TypeError: 'module' object is not callable

Have I somehow mucked up the namespace upon installation?  Am I entering the wrong commands?

Any pointers appreciated.


More information about the Python-list mailing list