Re: Python SUDS issue

2013-03-15 Thread VGNU Linux
Able to fix issue by including 'location' as parameter in client
constructor arguments.
client = Client(url=wsdlurl,doctor=schemadoctor, location='
https://46.51.221.138/PBExternalServices/v1/soap?wsdl')

Thanks for helping me out.
Regards,
VGNU


On Thu, Mar 7, 2013 at 10:07 AM, VGNU Linux vgnuli...@gmail.com wrote:

 Hi Guys,
 Not aware what import here is and what it will do.
 But going through some google search result page found that there is
 something called doctor in suds.
 so tried changing code and it did fix the issue.
 suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse,
 http://www.payback.net/lmsglobal/xsd/v1/types, )'

 Here is what i changed.
 from suds.client import Client
 from suds.xsd.doctor import Import, ImportDoctor
 from suds.sax.element import Element

 wsdlurl = 'https://46.51.221.138/PBExternalServices/v1/soap?wsdl'
 schemaurl = 'http://www.payback.net/lmsglobal/xsd/v1/types'
 schemaimport = Import(schemaurl)
 schemadoctor = ImportDoctor(schemaimport)
 client = Client(url=wsdlurl,doctor=schemadoctor)
 print client

 Printing client now lists all the methods and types associated with the
 service.
 But again stuck as on executing a method
 response = client.service.GetAccountBalance(authtype)
 replies with the error.
 ValueError: unknown url type: {endpoint address}

 Totally confused as what is wrong going on here.

 Appreciate your help.
 Regards,
 VGNU


 On Tue, Mar 5, 2013 at 12:46 PM, dieter die...@handshake.de wrote:

 VGNU Linux vgnuli...@gmail.com writes:

  ...
  Here is my code:
  from suds.client import Client
  wsdlurl = 'https://46.51.221.138/PBExternalServices/v1/soap?wsdl'
  client = Client(wsdlurl)
  print client
 
  And following is the error that occurs on trying to print client.
  Traceback (most recent call last):
  ...
  dereference
  midx, deps = x.dependencies()
File C:\Python25\Lib\site-packages\suds\xsd\sxbasic.py, line 469, in
  dependencies
  raise TypeNotFound(self.ref)
  suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse,
  http://www.payback.net/lmsglobal/xsd/v1/types, )'

 Looks like a bug in the WSDL description of the web service.
 It seems to reference a type GetAccountBalanceFaultResponse
 associated with the namespace 
 http://www.payback.net/lmsglobal/xsd/v1/types;,
 but suds cannot find the type.

 Maybe an import is missing in the WSDL description.

 --
 http://mail.python.org/mailman/listinfo/python-list



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python SUDS issue

2013-03-06 Thread VGNU Linux
Hi Guys,
Not aware what import here is and what it will do.
But going through some google search result page found that there is
something called doctor in suds.
so tried changing code and it did fix the issue.
suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse,
http://www.payback.net/lmsglobal/xsd/v1/types, )'

Here is what i changed.
from suds.client import Client
from suds.xsd.doctor import Import, ImportDoctor
from suds.sax.element import Element

wsdlurl = 'https://46.51.221.138/PBExternalServices/v1/soap?wsdl'
schemaurl = 'http://www.payback.net/lmsglobal/xsd/v1/types'
schemaimport = Import(schemaurl)
schemadoctor = ImportDoctor(schemaimport)
client = Client(url=wsdlurl,doctor=schemadoctor)
print client

Printing client now lists all the methods and types associated with the
service.
But again stuck as on executing a method
response = client.service.GetAccountBalance(authtype)
replies with the error.
ValueError: unknown url type: {endpoint address}

Totally confused as what is wrong going on here.

Appreciate your help.
Regards,
VGNU


On Tue, Mar 5, 2013 at 12:46 PM, dieter die...@handshake.de wrote:

 VGNU Linux vgnuli...@gmail.com writes:

  ...
  Here is my code:
  from suds.client import Client
  wsdlurl = 'https://46.51.221.138/PBExternalServices/v1/soap?wsdl'
  client = Client(wsdlurl)
  print client
 
  And following is the error that occurs on trying to print client.
  Traceback (most recent call last):
  ...
  dereference
  midx, deps = x.dependencies()
File C:\Python25\Lib\site-packages\suds\xsd\sxbasic.py, line 469, in
  dependencies
  raise TypeNotFound(self.ref)
  suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse,
  http://www.payback.net/lmsglobal/xsd/v1/types, )'

 Looks like a bug in the WSDL description of the web service.
 It seems to reference a type GetAccountBalanceFaultResponse
 associated with the namespace 
 http://www.payback.net/lmsglobal/xsd/v1/types;,
 but suds cannot find the type.

 Maybe an import is missing in the WSDL description.

 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Python SUDS issue

2013-03-04 Thread VGNU Linux
Hi Guys,
I am pretty new to web services.
After some googling found that python suds is a suitable module to create
web service client. I am trying to create a client but its giving me an
error which is quite confusing for me.

Here is my code:
from suds.client import Client
wsdlurl = 'https://46.51.221.138/PBExternalServices/v1/soap?wsdl'
client = Client(wsdlurl)
print client

And following is the error that occurs on trying to print client.
Traceback (most recent call last):
  File trysuds.py, line 3, in module
client = Client(wsdlurl)
  File C:\Python25\Lib\site-packages\suds\client.py, line 112, in __init__
self.wsdl = reader.open(url)
  File C:\Python25\Lib\site-packages\suds\reader.py, line 152, in open
d = self.fn(url, self.options)
  File C:\Python25\Lib\site-packages\suds\wsdl.py, line 159, in __init__
self.build_schema()
  File C:\Python25\Lib\site-packages\suds\wsdl.py, line 220, in
build_schema
self.schema = container.load(self.options)
  File C:\Python25\Lib\site-packages\suds\xsd\schema.py, line 95, in load
child.dereference()
  File C:\Python25\Lib\site-packages\suds\xsd\schema.py, line 323, in
dereference
midx, deps = x.dependencies()
  File C:\Python25\Lib\site-packages\suds\xsd\sxbasic.py, line 469, in
dependencies
raise TypeNotFound(self.ref)
suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse,
http://www.payback.net/lmsglobal/xsd/v1/types, )'

Appreciate your help.
Thanks in advance,
VGNU
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python SUDS issue

2013-03-04 Thread VGNU Linux
Hi,
Typing URL in the browser displays document tree as a web page.
Is it right or there is something wrong with it ?

Regards,
VGNU


On Mon, Mar 4, 2013 at 6:45 PM, Joel Goldstick joel.goldst...@gmail.comwrote:




 On Mon, Mar 4, 2013 at 5:37 AM, VGNU Linux vgnuli...@gmail.com wrote:

 Hi Guys,
 I am pretty new to web services.
 After some googling found that python suds is a suitable module to create
 web service client. I am trying to create a client but its giving me an
 error which is quite confusing for me.

 Here is my code:
 from suds.client import Client
 wsdlurl = 'https://46.51.221.138/PBExternalServices/v1/soap?wsdl'



 What happens when you type this in your browser:
 https://46.51.221.138/PBExternalServices/v1/soap?wsdl


 client = Client(wsdlurl)
 print client

 And following is the error that occurs on trying to print client.
 Traceback (most recent call last):
   File trysuds.py, line 3, in module
 client = Client(wsdlurl)
   File C:\Python25\Lib\site-packages\suds\client.py, line 112, in
 __init__
 self.wsdl = reader.open(url)
   File C:\Python25\Lib\site-packages\suds\reader.py, line 152, in open
 d = self.fn(url, self.options)
   File C:\Python25\Lib\site-packages\suds\wsdl.py, line 159, in __init__
 self.build_schema()
   File C:\Python25\Lib\site-packages\suds\wsdl.py, line 220, in
 build_schema
 self.schema = container.load(self.options)
   File C:\Python25\Lib\site-packages\suds\xsd\schema.py, line 95, in
 load
 child.dereference()
   File C:\Python25\Lib\site-packages\suds\xsd\schema.py, line 323, in
 dereference
 midx, deps = x.dependencies()
   File C:\Python25\Lib\site-packages\suds\xsd\sxbasic.py, line 469, in
 dependencies
 raise TypeNotFound(self.ref)
 suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse,
 http://www.payback.net/lmsglobal/xsd/v1/types, )'

 Appreciate your help.
 Thanks in advance,
 VGNU

 --
 http://mail.python.org/mailman/listinfo/python-list




 --
 Joel Goldstick
 http://joelgoldstick.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to select Python web frameworks and which one is the best framework ?

2011-05-18 Thread VGNU Linux
On Tue, May 17, 2011 at 1:20 PM, VGNU Linux vgnuli...@gmail.com wrote:

 Hi all,

 I am confused on which web framework to select for developing a small data
 driven web application. Application will have features generally found in
 now-a-days web application like security, database connectivity,
 authentication etc. I found few web frameworks over the net like django,
 zope 2/3, pylons, turbogears, web2py, grok etc. etc.
 I just want to know that how developers/managers/organizations select a
 framework which best suits their needs ? what are the parameters for
 selection ?
 also which is the best and widely used web framework for python ?

 I apologize if this is a repeated question.

 Regards,
 VGNU


Please guys help as I am novice to web development.

Regards,
VGNU
-- 
http://mail.python.org/mailman/listinfo/python-list


How to select Python web frameworks and which one is the best framework ?

2011-05-17 Thread VGNU Linux
Hi all,

I am confused on which web framework to select for developing a small data
driven web application. Application will have features generally found in
now-a-days web application like security, database connectivity,
authentication etc. I found few web frameworks over the net like django,
zope 2/3, pylons, turbogears, web2py, grok etc. etc.
I just want to know that how developers/managers/organizations select a
framework which best suits their needs ? what are the parameters for
selection ?
also which is the best and widely used web framework for python ?

I apologize if this is a repeated question.

Regards,
VGNU
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Do UART require data structure/format for serial communication?

2011-04-13 Thread VGNU Linux
Actually I am trying to data communication between these 2 chips, but facing
troubles in deciding a protocol to do the same.
Do UART have any default protocols? For the moment I am trying to do it with
Strings but not sure if that's the right solution.

Regards,
Vivek

On Mon, Apr 11, 2011 at 11:43 PM, John Nagle na...@animats.com wrote:

 On 4/11/2011 4:57 AM, Jean-Michel Pichavant wrote:

  VGNU Linux wrote:

 Hi All,
 I have two chips one understands Python and the other embedded C.I
 have connected both chips using UART serial communication channel,
 however I have no idea how data communication must be achieved between
 this 2 chips. As for example send using C chip string Hello Python
 which python chip easily understands and replies back a string Hi C.
 I am pretty new to embedded systems can anybody help me understand
 data communication using UART.
 Thank in advance.


What do you want to do?

There are many serial protocols.  At the low end, you can
 send text. At the high end, you can send TCP over PPP.
 The Arduno crowd has some protocols of their own.  See
 http://www.arduino.cc/en/Reference/Libraries;.

Any useful protocol must be able to deal with errors
 on the link, either end restarting, and the other end failing
 to respond.  All those things happen frequently with serial
 ports.

What do you want to do?

John Nagle
 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Do UART require data structure/format for serial communication?

2011-04-11 Thread VGNU Linux
Hi All,
I have two chips one understands Python and the other embedded C.I have
connected both chips using UART serial communication channel, however I have
no idea how data communication must be achieved between this 2 chips. As for
example send using C chip string Hello Python which python chip easily
understands and replies back a string Hi C.
I am pretty new to embedded systems can anybody help me understand data
communication using UART.
Thank in advance.

VGNU
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Playing WAV file with Python

2011-03-03 Thread VGNU Linux
Hi,

On Thu, Mar 3, 2011 at 1:26 PM, Chris Rebert c...@rebertia.com wrote:

 On Tue, Mar 1, 2011 at 11:47 PM, VGNU Linux vgnuli...@gmail.com wrote:
  Hi All,
  How can I play WAV file in python without OS(like Linux/Windows/MAC) on a
  device ?
  On Google I found lot of different solution but related to OS's like
  winsound, ossaudiodev etc which are not useful.

 Do you mean you want your code to be cross-platform, or what?
 Without OS is rather vague. What are you trying to accomplish?


I will be using WAVE on embedded devices, and the device will not have any
OS's. So I am looking for modules which can play WAVE sound without
underlying OS.


 Regards,
 Chris
 --
 http://blog.rebertia.com


Regards,
VGNU
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Playing WAV file with Python

2011-03-03 Thread VGNU Linux
On Thu, Mar 3, 2011 at 1:54 PM, Chris Rebert c...@rebertia.com wrote:

 On Thu, Mar 3, 2011 at 12:17 AM, VGNU Linux vgnuli...@gmail.com wrote:
  On Thu, Mar 3, 2011 at 1:26 PM, Chris Rebert c...@rebertia.com wrote:
  On Tue, Mar 1, 2011 at 11:47 PM, VGNU Linux vgnuli...@gmail.com
 wrote:
   How can I play WAV file in python without OS(like Linux/Windows/MAC)
 on
   a
   device ?
   On Google I found lot of different solution but related to OS's like
   winsound, ossaudiodev etc which are not useful.
 
  Do you mean you want your code to be cross-platform, or what?
  Without OS is rather vague. What are you trying to accomplish?
 
  I will be using WAVE on embedded devices, and the device will not have
 any
  OS's. So I am looking for modules which can play WAVE sound without
  underlying OS.

 What implementation of Python are you going to use? I don't personally
 know of any that can run on the bare metal without an OS.


I am planning to use python-on-a-chip(PyMite) which can be run without an OS
therefore I am looking for a module/library which can play sound files.


 Cheers,
 Chris

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Playing WAV file with Python

2011-03-02 Thread VGNU Linux
On Wed, Mar 2, 2011 at 1:17 PM, VGNU Linux vgnuli...@gmail.com wrote:

 Hi All,
 How can I play WAV file in python without OS(like Linux/Windows/MAC) on a
 device ?
 On Google I found lot of different solution but related to OS's like
 winsound, ossaudiodev etc which are not useful.
 Thanks in advance.

 Regards,
 VGNU


Hi All,
Can anyone please give me any idea on this ?

Regards,
VGNU
-- 
http://mail.python.org/mailman/listinfo/python-list


Playing WAV file with Python

2011-03-01 Thread VGNU Linux
Hi All,
How can I play WAV file in python without OS(like Linux/Windows/MAC) on a
device ?
On Google I found lot of different solution but related to OS's like
winsound, ossaudiodev etc which are not useful.
Thanks in advance.

Regards,
VGNU
-- 
http://mail.python.org/mailman/listinfo/python-list


How to highlight Label/Text in tkinter ?

2010-11-03 Thread VGNU Linux
Hi,
I am writing a program teach myself python and tkinter.
Below given is a program which displays label with different fonts and
sizes.
How to highlight text and change font size if the up/down arrow keys are
pressed ?
from Tkinter import *
import tkFont

class MyFrame(Frame):

def __init__(self, root):
Frame.__init__(self, root)
self.txt = Label(self, text=Arial 10 bold,
font=(Arial,10,bold))
self.txt.grid(row=1,column=1)
self.txt = Label(self, text=Courier 12 bold,
font=(Courier,12,bold))
self.txt.grid(row=2,column=1)
self.txt = Label(self, text=Comic Sans MS 14 bold, font=(Comic
Sans MS,14,bold))
self.txt.grid(row=3,column=1)
self.txt = Label(self, text=Fixedsys 16 bold,
font=(Fixedsys,16,bold))
self.txt.grid(row=4,column=1)
self.txt = Label(self, text=MS Sans Serif 18 bold, font=(MS Sans
Serif,18,bold))
self.txt.grid(row=5,column=1)
self.txt = Label(self, text=MS Serif, Symbol 20 bold, font=(MS
Serif, Symbol,20,bold))
self.txt.grid(row=6,column=1)
self.txt = Label(self, text=System 22 bold,
font=(System,22,bold))
self.txt.grid(row=7,column=1)
self.txt = Label(self, text=Verdana 24 bold,
font=(Verdana,24,bold))
self.txt.grid(row=8,column=1)

if __name__ == '__main__':
root = Tk()
c = MyFrame(root)
c.pack(fill=BOTH, expand=1)
root.mainloop()

any help?

Regards,
VGNU
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How to highlight Label/Text in tkinter ?

2010-11-03 Thread VGNU Linux
I was able to solve the problem. But unable to use Label or Text widget. Any
idea as to why focus does not work with Label or Text widget.
Here is the program using button widget.

from Tkinter import *
import tkFont

class DisplayFrame:

Uses GUI to display contacts

def __init__(self, root):
self.b = Button(root, text=Peter Pan,font=(Arial,10,bold),
  anchor=W, justify=LEFT, relief=FLAT)
self.b.pack(fill=BOTH)
self.b.focus_set()

self.b = Button(root, text=Marry Joe, font=(Arial,10,bold),
 anchor=W, justify=LEFT, relief=FLAT)
self.b.pack(fill=BOTH)

self.b = Button(root, text=Michael Kin, font=(Arial,10,bold),
 anchor=W, justify=LEFT, relief=FLAT)
self.b.pack(fill=BOTH)

self.b = Button(root, text=Jennifer McConelly,
font=(Arial,10,bold),
 anchor=W, justify=LEFT, relief=FLAT)
self.b.pack(fill=BOTH)

self.b = Button(root, text=Jonathen Broady,
font=(Arial,10,bold),
 anchor=W, justify=LEFT, relief=FLAT)
self.b.pack(fill=BOTH)

def handleReturn(event):
event.widget[font] = Arial 16 bold
print event.widget.focus_get()
nxtwid = event.widget.tk_focusNext()
prewid = event.widget.tk_focusPrev()
prewid[font] = Arial 10 bold
nxtwid.focus_set()

if __name__ == '__main__':
root = Tk()
frame = DisplayFrame(root)
root.bind(Return,handleReturn)
root.mainloop()

Regards,
VGNU

On Wed, Nov 3, 2010 at 12:02 PM, VGNU Linux vgnuli...@gmail.com wrote:

 Hi,
 I am writing a program teach myself python and tkinter.
 Below given is a program which displays label with different fonts and
 sizes.
 How to highlight text and change font size if the up/down arrow keys are
 pressed ?
 from Tkinter import *
 import tkFont

 class MyFrame(Frame):

 def __init__(self, root):
 Frame.__init__(self, root)
 self.txt = Label(self, text=Arial 10 bold,
 font=(Arial,10,bold))
 self.txt.grid(row=1,column=1)
 self.txt = Label(self, text=Courier 12 bold,
 font=(Courier,12,bold))
 self.txt.grid(row=2,column=1)
 self.txt = Label(self, text=Comic Sans MS 14 bold, font=(Comic
 Sans MS,14,bold))
 self.txt.grid(row=3,column=1)
 self.txt = Label(self, text=Fixedsys 16 bold,
 font=(Fixedsys,16,bold))
 self.txt.grid(row=4,column=1)
 self.txt = Label(self, text=MS Sans Serif 18 bold, font=(MS Sans
 Serif,18,bold))
 self.txt.grid(row=5,column=1)
 self.txt = Label(self, text=MS Serif, Symbol 20 bold, font=(MS
 Serif, Symbol,20,bold))
 self.txt.grid(row=6,column=1)
 self.txt = Label(self, text=System 22 bold,
 font=(System,22,bold))
 self.txt.grid(row=7,column=1)
 self.txt = Label(self, text=Verdana 24 bold,
 font=(Verdana,24,bold))
 self.txt.grid(row=8,column=1)

 if __name__ == '__main__':
 root = Tk()
 c = MyFrame(root)
 c.pack(fill=BOTH, expand=1)
 root.mainloop()

 any help?

 Regards,
 VGNU

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Embedded Systems development using Python

2010-09-17 Thread VGNU Linux
Hi All,
Appreciate your response.
Now I am going to use Telit Module GE865-QUAD with support for GPS and GPRS
capabilities.
It also has built-in python interpreter for developing application for the
module.
But still I have no idea which microprocessor/microcontroller to use.
Can anyone help me out here ? Is there any microprocessor/microcontroller
which I could use with Python and Telit module?
Any help here will be appreciated.

Regards,
VGNU

On Mon, Sep 6, 2010 at 8:54 PM, Grant Edwards inva...@invalid.invalidwrote:

 On 2010-09-06, Stefan Behnel stefan...@behnel.de wrote:
  VGNU Linux, 06.09.2010 13:02:
  Can Python be used for embedded systems development ?
 
  It can and has been.
 
  What kind of embedded system with what set of capabilities are you
 thinking
  about? TV sets? Mobile phones? Smart dust?

 [The OP never showed up on my sever for some reason]

 If you google for deeply embedded python, you'll find some raterh
 old links:

  http://tucs.fi/magazin/output.php?ID=2000.N2.LilDeEmPy

 http://groups.google.com/group/python-on-a-chip/web/list-of-small-python-implementations

 http://mail.python.org/pipermail/python-announce-list/1999-August/000157.html

 A few years ago I used Python on a prototype for a bicycle computer
 with GPS, four buttons, and a small LCD screen.  It was more or less
 comparable to a PDA with Linux running on an 200MHz XScale with
 something like 16MB of flash and 32MB of SDRAM.

 IIRC, that project used OpenEmbedded, and all I had to do was build
 the Python package that's already there in OE.  I don't remember if I
 was using PySDL or PyQt for the UI -- I remember experimenting with
 both on desktop hosts at the time.

 I don't think that product ever saw daylight.  There was just now way
 they could have competed with Garmin.

 --
 Grant

 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Embedded Systems development using Python

2010-09-06 Thread VGNU Linux
Hi List,
Can Python be used for embedded systems development ?
If Yes can anyone point me to a tutorial/reference website which explains
about this.

Thanks and Regards
Vgnu
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Embedded Systems development using Python

2010-09-06 Thread VGNU Linux
Hi,

A small device like a mobile but with only 2 major buttons, with GPS and
GPRS capabilities.
Can anyone tell me from where to start learning about this ?

Regards
Vivek


On Mon, Sep 6, 2010 at 4:52 PM, Stefan Behnel stefan...@behnel.de wrote:

 VGNU Linux, 06.09.2010 13:02:

  Can Python be used for embedded systems development ?


 It can and has been.

 What kind of embedded system with what set of capabilities are you thinking
 about? TV sets? Mobile phones? Smart dust?

 Stefan

 --
 http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list


Python for embedded systems development

2010-09-03 Thread VGNU Linux
Hi,
Is there anyone using python for embedded systems development ?
I have no idea where to start with. Google was of little help.
Will appreciate if someone could guide me on from where to start.

Regards
Vgnu
-- 
http://mail.python.org/mailman/listinfo/python-list