Re: another problem with modules

2011-02-17 Thread MRAB
On 17/02/2011 17:11, Tim Hanson wrote: Okay, I solved my problem with Python finding modules: I put the following into a file in my home directory, on the good advice of Andrea Crotti: import sys sys.path.append('/home/foo/mypath' I named the file "~/pypath.py", so now, in idle: import pypath

Re: another problem with modules

2011-02-17 Thread Robert Kern
On 2/17/11 11:11 AM, Tim Hanson wrote: import pypath import intersect #the name of a file that contains the above short function. intersect('spam','spmmer') Traceback (most recent call last): File "", line 1, in intersect('spam','spmmer') TypeError: 'module' object is not callable H

Re: another problem..

2009-12-16 Thread Grant Edwards
On 2009-12-16, codefly wrote: > now.. another problem.. Sorry to be so blunt, but your main problem is that you don't know how to ask questions. Fix that, and everything else will become much easier: 1) Read this: http://catb.org/~esr/faqs/smart-questions.html 2) Read it again. 3) Read t

Re: another problem..

2009-12-16 Thread Dave Angel
codefly wrote: now.. another problem.. when i type me = code2() the error is here.. Traceback (most recent call last): File "", line 1, in TypeError: 'module' object is not callable By creating a new thread for each new question, you're forcing yourself to repeat the code and environmen