Weird Error

dwassena at julian.uwo.ca dwassena at julian.uwo.ca
Tue Aug 29 18:01:22 EDT 2000


In article <uk8czpxr7.fsf at ctwd0143.fitlinxx.com>,
  David Bolen <db3l at fitlinxx.com> wrote:
> dwassena at julian.uwo.ca writes:
>
> Hmm, can you show the actual code where the error is occurring?  You
> seem to have defined the getQPath method in the code you posted, so it
> may be that your problem is in how you try to refer to the method
> rather than the method itself.
>

Below is the code it gets called in.  Now I have the same problem with
other method calls for the same object.  It is really mindboggling.

# AUTHOR: Daniel Wassenaar, UpCast Inc.
# DATE  : 8/28/00
#
# COMMENT: Code snippet where error is occuring.  This script piece
# is the simplest one around that required no real snipping.

import sys
import os
import time

if os.name == 'nt':
	sys.path.append(os.path.join('d:','qp','admin','lib'))

from qconfig import Qconfig

####################################
#
# Constants
MAXMIN = 59 #see time library
MAXHOUR = 23
#
####################################

qconf = Qconfig()
qpath = qconf.getQPath()
#qpath = os.path.join('d:','qp') #hack, above line was AttributeError
for some unknown reason.
indir = os.path.join(qpath, 'admin','in')
#check in for msgs
files = os.listdir(indir)

#end snippet

> Unless there is proprietary information in there that you just can't
> post, trying to let us see code that is the actual code running (with
> as few edits as possible) and as completely as possible would be the
> most helpful.

I hope this is enough... I am perplexed myself.  It is as I noted above
occurring all over the place with that class and yet it is not an
indentation error.  Nor is it seemingly occuring an error on the line
previously where I initialize the object.  I am going to use some try:
excepts to try and isolate it further.

Thanks all
dan

--
"Ancient weapons and hokey religions are no match for a good blaster
at your side kid." - Han Solo


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list