[Twisted-Python] tap2ntsvc (sandbox) and py2exe 0.5.0

Hi all, Back in November, Cory Dodt mentioned on this list that a preliminary version of tap2ntsvc was available to try out. Has anybody managed to get it to work with py2exe 0.5.0? Using a tap file that works fine when run with twistd (Twisted 1.2.0), and using Python 2.3.3 and py2exe 0.5.0 on Windows 2000, py2exe generates: error: error in setup.cfg: command 'py2exe' has no such option 'service' If I'm not overlooking something obvious, I will look into it further with the samples supplied with this version of py2exe. Comments appreciated ;-) Regards, Norm Petterson

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To my knowledge nobody has tested it on 0.5.0 so I can only assume this is an API change. If so, it's not a well-documented one because the py2exe home page still talks about the service option as if it exists. I will have to investigate further. In the meantime could you open a tracker issue and assign it to moonfallen? Thanks. BTW, 0.4.x is known to work. C Norm Petterson wrote: | Hi all, | | Back in November, Cory Dodt mentioned on this list that a preliminary | version of tap2ntsvc was available to try out. Has anybody managed to | get it to work with py2exe 0.5.0? | | Using a tap file that works fine when run with twistd (Twisted 1.2.0), | and using Python 2.3.3 and py2exe 0.5.0 on Windows 2000, py2exe generates: | | error: error in setup.cfg: command 'py2exe' has no such option 'service' | | If I'm not overlooking something obvious, I will look into it further | with the samples supplied with this version of py2exe. Comments | appreciated ;-) | | Regards, | | Norm Petterson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3-nr1 (Windows 2000) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAUixc3A5SrXAiHQcRAnpfAJ9xpA2ZR4VFfQpe2ttpUR5GCynLGQCeKp4h KPO5zsO1XWR+za/ASKCSuMI= =rLxg -----END PGP SIGNATURE-----

Norm Petterson wrote: | Hi all, | | Back in November, Cory Dodt mentioned on this list that a preliminary | version of tap2ntsvc was available to try out. Has anybody managed to | get it to work with py2exe 0.5.0? | | Using a tap file that works fine when run with twistd (Twisted 1.2.0), | and using Python 2.3.3 and py2exe 0.5.0 on Windows 2000, py2exe generates: | | error: error in setup.cfg: command 'py2exe' has no such option 'service' | | If I'm not overlooking something obvious, I will look into it further | with the samples supplied with this version of py2exe. Comments | appreciated ;-)
Cory Dodt <corydodt@twistedmatrix.com> writes:
To my knowledge nobody has tested it on 0.5.0 so I can only assume this is an API change. If so, it's not a well-documented one because the py2exe home page still talks about the service option as if it exists. I will have to investigate further. In the meantime could you open a tracker issue and assign it to moonfallen? Thanks.
BTW, 0.4.x is known to work.
It's still possible to build services, and I won't argue that the changes are well documented ;-). In py2exe 0.5, you specify that you want to build a service by giving a named argument 'service' to the setup() function. Before, 'service' was a command line option (that could also be stored in the setup.cfg file). For py2exe 0.5, there is quite some user-provided documentation in the wiki http://starship.python.net/crew/theller/moin.cgi/Py2Exe, and extensive samples are included in the distribution. IIRC, the advanced sample contains a service. Thomas
participants (3)
-
Cory Dodt
-
Norm Petterson
-
Thomas Heller