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

John Abel john.abel at pa.press.net
Mon Mar 8 03:47:48 EST 2004


On my Linux machine:

Python 2.3.3 (#1, Dec 28 2003, 12:13:48)
[GCC 3.3 20030226 (prerelease) (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import gadfly
 >>>

It looks like your install didn't work properly.  You could try running 
"python setup.py install" again.

HTH

John

Eric @ Zomething wrote:

>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 "gadfly.py".  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 ?
>    connection=Gadfly.gadfly()
>TypeError: 'module' object is not callable
>
>Have I somehow mucked up the namespace upon installation?  Am I entering the wrong commands?
>
>Any pointers appreciated.
>
>
>Eric
>
>  
>




More information about the Python-list mailing list