Chris Hengge wrote:
> Thanks for the detailed examples again Luke. Sorry I wasn't more clear
> with my implimentation. The loop I was refering to was the one in the
> start of my post but using im.tostring() instead. I saw an example to
> make a webcam motion detector that used tostring(), but c
Chris Hengge wrote:
> alist = difference(image1,image2)
> a = [b for b in alist.getdata() if b != (0,0,0)]
> if len(a) != 0:
>print "Not the same"
>
> is much slower then (9x)
>
> if im1.tostring() != im2.tostring()
>print "something changed!"
>
> This loop itself is fairly slow by itse
alist = difference(image1,image2)a = [b for b in alist.getdata() if b != (0,0,0)]if len(a) != 0: print "Not the same"is much slower then (9x)if im1.tostring() != im2.tostring() print "something changed!"
This loop itself is fairly slow by itself though.. I'm going to try and see if there i
Hello,
This is one of the questions in Python Programming by Zelle. Ch 5, #1b.
The problem calls for the program to create a new square at the mouse
click instead of moving the square as in the previous problem.
I have tried various ways to tackle the problem with no success. Any
help would be
I tried the .tostring again, seems to be working using != instead of is not... Thanks for that thread link, very helpful. I'll look more into im.transform and see what I can come up with. I'm not sure I fully understand what it does, but I'm reading it as I'll remove the wanted section of im and tr
Thanks for the detailed examples again Luke. Sorry I wasn't more clear with my implimentation. The loop I was refering to was the one in the start of my post but using im.tostring() instead. I saw an example to make a webcam motion detector that used tostring(), but couldn't get the program to see
On Wed, 8 Nov 2006, Chris Hengge wrote:
> I'm trying to figure out how to compare im1 to im2 and recognize the
> difference. I dont care what the difference is...
>
> something like
>
> if im1 is not im2:
>print "Not same"
Do not use 'is' here. It is not doing any kind of equality testing
Chris Hengge wrote:
> I'm trying to figure out how to compare im1 to im2 and recognize the
> difference. I dont care what the difference is...
>
> something like
>
> if im1 is not im2:
> print "Not same"
Hey, Chris.
I'm supposing here that you are checking if the images are _visually_
differ
I'm trying to figure out how to compare im1 to im2 and recognize the difference. I dont care what the difference is... something likeif im1 is not im2: print "Not same"I've tried im.tostring
() but that doesn't ever enter the loop either.
>> def hello():
>> return "Hello World"
>>
>> server = SOAP.SOAPServer(("localhost", 23000))
>> server.registerFunction(hello)
>> server.serve_forever()
>
> Have you tried running server.py? There's a glaring error in it. (Hint: SOAP
> != SOAPpy)
Actually, there's a much more glaring er
> *#server.py*
> import SOAPpy
>
>
> def hello():
> return "Hello World"
>
> server = SOAP.SOAPServer(("localhost", 23000))
> server.registerFunction(hello)
> server.serve_forever()
Hi Asrarahmed,
I also want to reiterate what Luke said: it does get a little irritating
if we see the same
Asrarahmed Kadri wrote:
> Hi,
Asrarahmed:
You posted this exact question only 4 hours ago.
Reposting questions this quickly is an abuse of the mailing list, as far
as I'm concerned.
If you don't wait at _minimum_ a full day, preferably at least 2, for an
answer, it just irritates
people and makes
* Asrarahmed Kadri <[EMAIL PROTECTED]> [061108 19:51]:
> Hi,
>
> I have successfully installed the SOAPpy module. The version is 0.11.6
>
> I am trying to run simple test program for server and cliet. The script for
> server is executing without any error; but the client script is giving me
Well
Hi,
I have successfully installed the SOAPpy module. The version is 0.11.6
I am trying to run simple test program for server and cliet. The script for server is executing without any error; but the client script is giving me the error as below.
TRACEBACK:
C:\project stuff-programs>python cli
"Antonios Katsikadamos" <[EMAIL PROTECTED]> wrote
> hi all. I try to run an old python code and i get the following
> message
>
> File "/home/antonis/db/access.py", line 119
> def DoCsubnet1 (action, subject, target, args): #
> DoC servers net
> ^
> IndentationError: expec
Vanilla (this works fine):
#!/usr/bin/python
from elementtree import ElementTree as etree
eg = """redblue"""
xml = etree.fromstring(eg)
If I change the example string to this:
redblu�
I get the following error:
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1,
column 32)
Use the "pass" keyword like this:
def DoCsubnet1 (action, subject, target, args): # DoC servers net
pass
On 11/8/06, Antonios Katsikadamos <[EMAIL PROTECTED]> wrote:
> hi all. I try to run an old python code and i get the following message
>
> File "/home/antonis/db/access.py
Thanks for the help thusfar. To recap - when parsing XML, ElementTree
is barfing on extended characters.
1. Yes, most XML is written by monkeys, or the programs written by such
monkeys - tough beans, I cannot make my input XML any cleaner without
pre-processing - I am not generating it.
2. The d
Antonios Katsikadamos wrote:
> hi all. I try to run an old python code and i get the following message
>
> File "/home/antonis/db/access.py", line 119
> def DoCsubnet1 (action, subject, target, args): # DoC
> servers net
> ^
> IndentationError: expected an indented block
>
hi all. I try to run an old python code and i get the following message File "/home/antonis/db/access.py", line 119 def DoCsubnet1 (action, subject, target, args): # DoC servers net ^ IndentationError: expected an indented block 1) and I don't know what causes it. I would be
hi all. I try to run an old python code and i get the following messageFile "/home/antonis/db/access.py", line 119 def DoCsubnet1 (action, subject, target, args): # DoC servers net ^IndentationError: expected an indented block1) and I don't know what causes it. I would be grate
Antonios Katsikadamos wrote:
> hi all. I am using python 2.4. I have to run an older python code and
> when i run it i get the following message
>
> IndentationError: expected an indented block.
>
> 1)what does this mean?
> 2)how can i overcome this problem
Python uses indentation to delimit bl
Asrarahmed Kadri wrote:
>
>
>
> socket.error: (10061, 'Connection refused')
Sounds like your firewall is blocking communication on this port.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi,
I have successfully installed the SOAPpy module. The version is 0.11.6
I am trying to run simple test program for server and cliet. The script for server is executing without any error; but the client script is giving me the error as below.
TRACEBACK:
C:\project stuff-programs>python c
hi all. I am using python 2.4. I have to run an older python code and when i run it i get the following message IndentationError: expected an indented block. 1)what does this mean? 2)how can i overcome this problem Thanks for any advice. kind regards, Antonios
Sponsored Link
Free Uniden 5.
Hi Again,
Luke, I left it this way now:
x = A_List[i-1]
y = A_List[i]
z = A_List[(i+1) % A_Len]
Probably the other way is shorter but right now I feel comfortable as it
is now :-[ , Danny had already mentioned this method before, but it
didn't sink properly until now. And yes I need it to wrap
http://www.warnes.net/rwndown
or if that link doesn't work for you, just google it.
--
Regards, Tom
http://www.vscripts.net/
on Wed, 8 Nov 2006 11:08:46 +, you wrote:
> I installed the pyxml module, but the link for installing fpconst is not
> working.
_
Hi Folks,
Just a quick advice of using Python Enthought Edition along with ActiveState Python.
TIA.
Regards,
Asrarahmed-- To HIM you shall return.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Antonios Katsikadamos schrieb:
> hi all folks. i am running python2.4 on suse linux and i would like to
> install the module mx.DateTime. does anyone know how i can install it?
If you want to install it from the source code, you need a C compiler and the
Python development package. I don't know ex
Asrarahmed Kadri wrote:
>
> Hi Folks,
>
> I want to install SOAPpy module. As stated on
> http://pywebsvcs.sourceforge.net/soappy.txt, there are two modules that
> should be installed prior to installing SOAPpy. One in pyXML and the
> other is fpconst. I installed pyXML from the URL stated on
Here is what I did.
I searched through Google and found this URL: http://pywebsvcs.sourceforge.net/soappy.txt . Here it is mentioned that to install teh soappy, there are two modules that need to be installed before we can successfully install teh soappy module. the fist one is pyxml and the othe
Yi Qiang wrote:
> Hi,
> I am trying to get some basic information about the computer's
> hardware specs in OSX in python. In linux I can get most of what I
> need from the /proc filesystem. Is there an equivalent in OSX? If
> not, where else can I get information about the system from? I need
>
hi all folks. i am running python2.4 on suse linux and i would like to install the module mx.DateTime. does anyone know how i can install it?thanks for any help,Antonios
Sponsored Link
Mortgage rates near 39yr lows. $420,000 Mortgage for $1,399/mo - Calculate new house payment___
Asrarahmed Kadri schrieb:
> I want to install the SOAPpy module on my windows box. I have python
> 2.4.3
>
> Can you help me with the steps and the URL from where can I get the
> download..??
What have you tried so far? Did you google for "SOAPpy download"?
Are you experiencing any problems?
Chr
Hi Folks,I want to install the SOAPpy module on my windows box. I have python2.4.3Can you help me with the steps and the URL from where can I get thedownload..??TIA.
Regards,Asrarahmed
-- To HIM you shall return.
___
Tutor maillist - Tutor@python.
"Yi Qiang" <[EMAIL PROTECTED]> wrote
> I am trying to get some basic information about the computer's
> hardware specs in OSX in python. In linux I can get most of what I
> need from the /proc filesystem. Is there an equivalent in OSX?
OSX is just BSD Unix so most things will be available in /p
36 matches
Mail list logo