[Tutor] Help with Import Error problems

2010-08-01 Thread Roy Khristopher Bayot
Hi. Good day. I am having an import error problem. Last week, I was following this site: http://sites.google.com/site/spatialpython/processing-aster-with-python-numpy-and-gdal. I was able to make the python script run on the terminal. But this week, it was throwing some error. This was the

Re: [Tutor] Help with Import Error problems

2010-08-01 Thread Roy Khristopher Bayot
Evert, I got it back working. But it was with some stroke of luck. And I dont know the explanation. I installed the latest source of GEOS (as suggested by someone from the gdal channel). Then i tried the script. It gave me a different import error. ImportError: libgeos-3.3.0.so: cannot open

Re: [Tutor] Help with Import Error problems

2010-08-01 Thread Roy Khristopher Bayot
Evert, Thank you very much. I do hope it goes on working. :D Roy On Mon, Aug 2, 2010 at 2:09 AM, Evert Rol evert@gmail.com wrote: I got it back working. But it was with some stroke of luck. And I dont know the explanation. I installed the latest source of GEOS (as suggested by

Re: [Tutor] Need help with using methods in a base class

2008-09-08 Thread Roy Khristopher Bayot
AM, Roy Khristopher Bayot [EMAIL PROTECTED] wrote: Hi. I added self to parts of the code. But after making an instance and using the setData method it gave out an AttributeError. from parallel import Parallel class LightsHandle(Parallel): ... def __init__(self

Re: [Tutor] Need help with using methods in a base class

2008-09-07 Thread Roy Khristopher Bayot
changing as it was suppose to. Any ideas on what I dont know or what I've overlooked? On Sun, Sep 7, 2008 at 6:07 AM, Alan Gauld [EMAIL PROTECTED]wrote: Roy Khristopher Bayot [EMAIL PROTECTED] wrote ... def generateClockPulse(self): ... parallel.Parallel.setSelect(0

Re: [Tutor] how do you make this a better code?

2008-09-06 Thread Roy Khristopher Bayot
Hi. I tried it. It worked. Thank you. On Fri, Sep 5, 2008 at 9:42 AM, Kent Johnson [EMAIL PROTECTED] wrote: On Thu, Sep 4, 2008 at 9:00 PM, Roy Khristopher Bayot [EMAIL PROTECTED] wrote: class CamHandle(object): def __init__(self): import os w = os.system('gphoto2

[Tutor] Need help with using methods in a base class

2008-09-06 Thread Roy Khristopher Bayot
Hi. I am having some difficulty using methods from a base class. I have 2 classes. The first one is Parallel which is inside the module parallel. The methods useful to me from this class are setDataStrobe(), setAutoFeed(), setInitOut(), setSelect(), and setData(). The second one is derived from

[Tutor] how do you make this a better code?

2008-09-04 Thread Roy Khristopher Bayot
Hi. Good day. I am new to Python but I have had experience with C/C++ and Matlab. I've been reading How to Think Like a Computer Scientist and skimmed Core Python to learn. Now I havent done the exercises because I wanted to get down to the project I'm doing in my spare time. The project involves