[Twisted-Python] finger tutorial question: never mind
Ron Arts
ron.arts at netland.nl
Thu Oct 26 18:29:04 EDT 2006
Never mind my previous question...
Oh gee, I totally missed that I had to create a subdirectory
with __init__.py (which was a copy of finger.py), and other files
in it as well. Didn't get that at all.
Now everything really works. Thanks anyway..
Ron
Ron Arts schreef:
> Hi,
>
> I am pretty new to python and totally new to twisted.
> From what I read about it, it's perfect for my means.
> I need to write a background daemon that connects to
> a port, stays connected, reads information blocks,
> keeps state, and write to a postgres database occasionally.
> Also it should accepts connections from GUI clients,
> that should display the state in a user friendly manner.
>
> This looks like a perfect target for Twisted, especially
> because I want to write the GUI client in wxPython.
>
> So I started to follow the tutorial. Nothing too special,
> apart from the last steps.
>
> When making a finger library the tutorial creates
> a file named organized-finger.tac. This file
> starts with 'import finger'. The source for this file
> is described in the tutorial as 'Code (from the module)'.
> But I don't know where the module is.
>
> If I try to use other pieces of code from earlier examples
> as finger.py I invariably get something like:
>
> File "organized-finger.tac", line 13, in ?
> f = finger.FingerService('/etc/users')
> exceptions.AttributeError: 'module' object has no attribute
> 'FingerService'
>
> Another thing is the configuration and packaging.
> The tutorial wants to do:
>
> mktap finger --file=/etc/users --ircnick=fingerbot
>
> but that throws me Deprecated fatal errors. BTW I am using the
> official twisted production version 2.4.0.
>
> From the subversion version I understand that mktap will
> cease to exist, but for the moment I am stuck in the last step
> to complete the example 'correct' application, and start my
> own work from there.
>
> So what am I doing wrong here?
>
> Thanks
> Ron
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ron.arts.vcf
Type: text/x-vcard
Size: 270 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20061027/1add9016/attachment.vcf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3403 bytes
Desc: S/MIME Cryptographic Signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20061027/1add9016/attachment.bin
More information about the Twisted-Python
mailing list