Re: [Tutor] NameError: name 'hurst' is not defined

2017-02-14 Thread Alan Gauld via Tutor
On 14/02/17 10:11, Alan Gauld via Tutor wrote: ts.adfuller(goog['Adj Close'], 1 > > there seems to be a missing closing paren here? > Also where does 'ts' come from, its not defined above? Ah! I see from Peters post that I missed the first line of code. But I still see a missing ')'... --

Re: [Tutor] NameError: name 'hurst' is not defined

2017-02-14 Thread Peter Otten
Allan Tanaka via Tutor wrote: > Hi. Not sure why this code produces the error like this. This error > appears when i run the code of print "Hurst(GBM): %s" % hurst(gbm): > Traceback (most recent call last): File "", line 1, in > print "Hurst(GBM): %s" % hurst(gbm)NameError: name 'hurst' >

Re: [Tutor] NameError: name 'hurst' is not defined

2017-02-14 Thread Alan Gauld via Tutor
On 14/02/17 01:55, Allan Tanaka via Tutor wrote: > Hi. Not sure why this code produces the error like this. This error appears > when i run the code of print "Hurst(GBM): %s" % hurst(gbm): > Traceback (most recent call last): File "", line 1, in > print "Hurst(GBM): %s" % hurst(gbm)Name

[Tutor] NameError: name 'hurst' is not defined

2017-02-14 Thread Allan Tanaka via Tutor
Hi. Not sure why this code produces the error like this. This error appears when i run the code of print "Hurst(GBM):   %s" % hurst(gbm):  Traceback (most recent call last):  File "", line 1, in     print "Hurst(GBM):   %s" % hurst(gbm)NameError: name 'hurst' is not defined Here is the full code

[Tutor] NameError: name 'counter' is not defined, was Re: Tutor Digest, Vol 132, Issue 51

2015-02-21 Thread Peter Otten
Tim Johnson wrote: > Hi Guys, Hi Tim! > Very simple question, I imagine. > > this code throws of off a "counter not defined error". Instead of retyping the error message it is better to cut and paste the traceback, e. g. Traceback (most recent call last): File "tmp.py", line 6, in pri

Re: [Tutor] NameError

2014-08-24 Thread ALAN GAULD
d >Sent: Sunday, 24 August 2014, 23:54 >Subject: Re: [Tutor] NameError > > > >In the six places you have gb == boy or gb == girl, put 'boy' and 'girl'. >I did and it works. > > >regards, >Sarma. > > >On Mon, Aug 25, 2014 at 12:09 AM, A

Re: [Tutor] NameError

2014-08-24 Thread Alan Gauld
On 24/08/14 15:11, Mimi Ou Yang wrote: age = int(input("Enter your age: ")) gb = input("Are you a boy or a girl? ") input() returns a string so the values here should be 'boy' or 'girl' - Notice the quote signs. op = input("How are you feeling today? ") if (age in (1,2,3,4,5,6,7,8,9,10,11,1

[Tutor] NameError

2014-08-24 Thread Mimi Ou Yang
name = input("Enter your name: ") age = int(input("Enter your age: ")) gb = input("Are you a boy or a girl? ") op = input("How are you feeling today? ") if (age in (1,2,3,4,5,6,7,8,9,10,11,12)): print (name,"you are a little",gb,"that is feeling",op,"today.") if (age in (13,14,15,16

Re: [Tutor] NameError: is defined

2011-07-19 Thread Andre Engels
On Wed, Jul 20, 2011 at 4:37 AM, brandon w wrote: > ** > Hi > I am running Linux with Python 2.6.6. I have done lists, tuples, > dictionaries, etc. Now I want to move on to creating a "class". I keep > getting an error for everything I try. Here is the error: * > > NameError: name 'MyClass' is no

[Tutor] NameError: is defined

2011-07-19 Thread brandon w
Hi I am running Linux with Python 2.6.6. I have done lists, tuples, dictionaries, etc. Now I want to move on to creating a "class". I keep getting an error for everything I try. Here is the error: * NameError: name 'MyClass' is not defined* I had originally tried to create my own class by wat

Re: [Tutor] NameError?

2011-04-27 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Brad Desautels wrote: Hello, I am working on a problem for my computer science class. This program is supposed to change the expression of the face when the appropriate button is clicked. It seems logical that it should work, however, when I click one of the buttons, I

[Tutor] NameError?

2011-04-27 Thread Brad Desautels
Hello, I am working on a problem for my computer science class. This program is supposed to change the expression of the face when the appropriate button is clicked. It seems logical that it should work, however, when I click one of the buttons, I get "NameError: global name 'window' is not defined

Re: [Tutor] NameError: global name 'celsius' is not defined (actually, solved)

2010-02-10 Thread Dave Angel
David wrote: Hello Wesley, thanks for your reply. I was surprised about the limited information too. Sadly (?), I can't reproduce the error any more... David On 10/02/10 11:13, wesley chun wrote: I just wrote this message, but after restarting ipython all worked fine. How is it to be exp

Re: [Tutor] NameError: global name 'celsius' is not defined (actually, solved)

2010-02-10 Thread Kent Johnson
On Tue, Feb 9, 2010 at 10:00 PM, David wrote: > Hi guys, > > I just wrote this message, but after restarting ipython all worked fine. > How is it to be explained that I first had a namespace error which, after a > restart (and not merely a new "run Sande_celsius-main.py"), went away? I > mean, sur

Re: [Tutor] NameError: global name 'celsius' is not defined (actually, solved)

2010-02-09 Thread David
Hello Wesley, thanks for your reply. I was surprised about the limited information too. Sadly (?), I can't reproduce the error any more... David On 10/02/10 11:13, wesley chun wrote: I just wrote this message, but after restarting ipython all worked fine. How is it to be explained that I f

Re: [Tutor] NameError: global name 'celsius' is not defined (actually, solved)

2010-02-09 Thread wesley chun
> I just wrote this message, but after restarting ipython all worked fine. > How is it to be explained that I first had a namespace error which, after a > restart (and not merely a new "run Sande_celsius-main.py"), went away? I > mean, surely the namespace should not be impacted by ipython at all!?

[Tutor] NameError: global name 'celsius' is not defined (actually, solved)

2010-02-09 Thread David
Hi guys, I just wrote this message, but after restarting ipython all worked fine. How is it to be explained that I first had a namespace error which, after a restart (and not merely a new "run Sande_celsius-main.py"), went away? I mean, surely the namespace should not be impacted by ipython at

Re: [Tutor] NameError

2009-09-21 Thread wesley chun
On Mon, Sep 21, 2009 at 2:06 PM, Wayne wrote: > On Mon, Sep 21, 2009 at 4:00 PM, kreglet wrote: >> >> I keep getting the following error and don't uderstand why: >> >> Traceback (most recent call last): >>  File "/home/kreglet/bin/test.py", line 15, in btnStatclick >>    btnStat.set_label("Presse

Re: [Tutor] NameError

2009-09-21 Thread Wayne
On Mon, Sep 21, 2009 at 4:00 PM, kreglet wrote: > > I keep getting the following error and don't uderstand why: > > Traceback (most recent call last): > File "/home/kreglet/bin/test.py", line 15, in btnStatclick >btnStat.set_label("Pressed") > NameError: global name 'btnStat' is not defined

[Tutor] NameError

2009-09-21 Thread kreglet
I keep getting the following error and don't uderstand why: Traceback (most recent call last): File "/home/kreglet/bin/test.py", line 15, in btnStatclick btnStat.set_label("Pressed") NameError: global name 'btnStat' is not defined #!/usr/bin/env python import gtk import sys class NewApp

Re: [Tutor] #NameError: global name is not defined

2005-05-12 Thread Jacob S.
> Hi, > > I'm having difficulty understanding why the following code doesn't work: > > > getfr.py > #import pymetar > # > #class wReport: > #def __init__(self,metarcode="CYYC"): #weather for calgary INTL > #self.METARCODE=metarcode > #rf=pymetar.ReportFetcher(self.METARCODE) > #

Re: [Tutor] #NameError: global name is not defined

2005-05-12 Thread Kent Johnson
Aaron Elbaz wrote: > Hi, > > I'm having difficulty understanding why the following code doesn't work: > > > getfr.py > #import pymetar > # > #class wReport: > #def __init__(self,metarcode="CYYC"): #weather for calgary INTL > #self.METARCODE=metarcode > #rf=pymetar.ReportFetch

[Tutor] #NameError: global name is not defined

2005-05-12 Thread Aaron Elbaz
Hi, I'm having difficulty understanding why the following code doesn't work: getfr.py #import pymetar # #class wReport: #def __init__(self,metarcode="CYYC"): #weather for calgary INTL #self.METARCODE=metarcode #rf=pymetar.ReportFetcher(self.METARCODE) #rep=rf.FetchRep