Re: Newbie: AttributeError: 'module' object has no attribute 'Client'
Irmen de Jong <[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 27-5-2012 10:16, Todd Williamson wrote: > The problem is that the server has no knowledge of the class Client. Add an import > client statement into server.py. Also, move all the code in global scope in client.py > into a main method and start things up as you do in server.py. > Yeah, and also; why does your (Frans's) client code have a daemon thread as well? Unless it's going to function as a Pyro server by itself, that's not necessary. I recommend working through the tutorial chapter of the Pyro manual and see if you can get things running. This should familiarize you with the basic principles quite fast! Good luck! Irmen. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/