[Twisted-Python] twisted.web problem on FreeBSD 4.7

I installed Python (2.2.1) from the port. I installed twisted 1.0.1 by downloading and running #python ./setup.py install as root, i ran #mktap web --path /usr/www --port 80 when i then run # coil web.tap I get the following traceback: Traceback (most recent call last): File "/usr/local/bin/coil", line 30, in ? run() File "/usr/local/lib/python2.2/site-packages/twisted/scripts/coil.py", line 89, in run p.load() File "/usr/local/lib/python2.2/site-packages/twisted/python/plugin.py", line 40, in load return namedModule(self.module) File "/usr/local/lib/python2.2/site-packages/twisted/python/reflect.py", line 372, in namedModule topLevel = __import__(name) File "/usr/local/lib/python2.2/site-packages/twisted/coil/plugins/names.py", line 21, in ? from twisted.names import dns ImportError: cannot import name dns Is there an easy way around this? thanks, doug

On Thu, 26 Dec 2002, "douglas savitsky" <dsavitsk@mail.e-coli.net> wrote:
#mktap web --path /usr/www --port 80
NEVER RUN MKTAP AS ROOT. I mean it. twistd will run the server as the user who ran mktap, by default. Thus, you want to run mktap as www-data or give appropriate --uid/--gid flags.
when i then run
# coil web.tap
coil isn't in a real working order...

On Thu, Dec 26, 2002 at 11:59:36PM -0800, douglas savitsky wrote:
Man, we really messed this up :) The coil stuff should have been removed, but a few nasty things slipped by and got into the release. twisted.names.dns no longer exists; one solution is to remove all the code referring to it from various locations, mainly plugins.tml. As Moshe pointed out in his response, though, coil is somewhat defunct :) You probably won't be able to do much useful with it even once it works. I can't load www.moshez.org at the moment (dunno why) but, if I'm not mistaken, there's a link to Moshe's twisted-web, which is some sort of t.web configurator, and may be more along the lines of what you're looking for. Perhaps he can elaborate on it a bit. Jp -- "Minerals are inexhaustible and will never be depleted. A stream of investment creates additions to proved reserves, a very large in-ground inventory, constantly renewed as it is extracted... How much was in the ground at the start and how much will be left at the end are unknown and irrelevant." -- Morry Adelman, World Renowned Economist -- 12:00am up 11 days, 9:45, 7 users, load average: 0.26, 0.09, 0.02

On Fri, Dec 27, 2002 at 10:00:33AM -0500, Jp Calderone wrote:
This long-standing annoyance should be going away soon; I've updated the website with 1.0.2alpha1's docs (which don't mention coil) so people won't be mislead any longer. -- Twisted | Christopher Armstrong: International Man of Twistery Radix | Release Manager, Twisted Project ---------+ http://twistedmatrix.com/users/radix.twistd/

On Fri, 27 Dec 2002, Jp Calderone <exarkun@intarweb.us> wrote:
I can't load www.moshez.org at the moment (dunno why)
Power failure, apparently. It should be back up
Unlikely. A. t-w is on tm.com, as are all of my twisted-related stuff: http://twistedmatrix.com/users/moshez/apt/ B. t-w is a Debian specific package. I believe the OP was using FreeBSD C. t-w is not a "twisted-web configurator": it's a flexible configuration system for Twisted-Web, where I do all the non-portable stuff (like determining file placement and put /etc/init.d scripts). If the OP wants to switch to the One True OS, I believe t-w is perfectly usable with the last Twisted alphas (it won't work with 1.0.1 or below).
Perhaps he can elaborate on it a bit.
I can.

On Thu, 26 Dec 2002, "douglas savitsky" <dsavitsk@mail.e-coli.net> wrote:
#mktap web --path /usr/www --port 80
NEVER RUN MKTAP AS ROOT. I mean it. twistd will run the server as the user who ran mktap, by default. Thus, you want to run mktap as www-data or give appropriate --uid/--gid flags.
when i then run
# coil web.tap
coil isn't in a real working order...

On Thu, Dec 26, 2002 at 11:59:36PM -0800, douglas savitsky wrote:
Man, we really messed this up :) The coil stuff should have been removed, but a few nasty things slipped by and got into the release. twisted.names.dns no longer exists; one solution is to remove all the code referring to it from various locations, mainly plugins.tml. As Moshe pointed out in his response, though, coil is somewhat defunct :) You probably won't be able to do much useful with it even once it works. I can't load www.moshez.org at the moment (dunno why) but, if I'm not mistaken, there's a link to Moshe's twisted-web, which is some sort of t.web configurator, and may be more along the lines of what you're looking for. Perhaps he can elaborate on it a bit. Jp -- "Minerals are inexhaustible and will never be depleted. A stream of investment creates additions to proved reserves, a very large in-ground inventory, constantly renewed as it is extracted... How much was in the ground at the start and how much will be left at the end are unknown and irrelevant." -- Morry Adelman, World Renowned Economist -- 12:00am up 11 days, 9:45, 7 users, load average: 0.26, 0.09, 0.02

On Fri, Dec 27, 2002 at 10:00:33AM -0500, Jp Calderone wrote:
This long-standing annoyance should be going away soon; I've updated the website with 1.0.2alpha1's docs (which don't mention coil) so people won't be mislead any longer. -- Twisted | Christopher Armstrong: International Man of Twistery Radix | Release Manager, Twisted Project ---------+ http://twistedmatrix.com/users/radix.twistd/

On Fri, 27 Dec 2002, Jp Calderone <exarkun@intarweb.us> wrote:
I can't load www.moshez.org at the moment (dunno why)
Power failure, apparently. It should be back up
Unlikely. A. t-w is on tm.com, as are all of my twisted-related stuff: http://twistedmatrix.com/users/moshez/apt/ B. t-w is a Debian specific package. I believe the OP was using FreeBSD C. t-w is not a "twisted-web configurator": it's a flexible configuration system for Twisted-Web, where I do all the non-portable stuff (like determining file placement and put /etc/init.d scripts). If the OP wants to switch to the One True OS, I believe t-w is perfectly usable with the last Twisted alphas (it won't work with 1.0.1 or below).
Perhaps he can elaborate on it a bit.
I can.
participants (4)
-
Christopher Armstrong
-
douglas savitsky
-
Jp Calderone
-
Moshe Zadka