[Twisted-web] [formal] missing examples.css in formal.examples

Manlio Perillo manlio_perillo at libero.it
Thu Jun 15 04:25:17 CDT 2006


Matt Goodall ha scritto:
> Manlio Perillo wrote:
>> I don't know if this is the right place but I have installed formal from
>> trunk (on a Windows XP system) and when trying to run the examples.tac I
>> got:
>>
>> ...
>> Failed to load application: 'formal\\examples\\examples.css'
>>
>> I unzipped the egg and this file is missing...
> 
> You're correct. examples.css was not picked up by setup.py at all and
> I've never run the examples.tac from outside the source directory.
> 
> This should be fixed in svn trunk now.
> 

Thanks!

>>
>>
>> Another problem is with the test.tac.
>> I run this from its directory but I got:
>>
>> ...
>> File "C:\Python2.4\lib\site-packages\twisted\python\logfile.py",
>> line 26, in __init__
>>     assert os.path.isdir(self.directory)
>> AssertionError
>>
>>
>> What's the problem?
> 
> Heh, test.tac was logging web access to /dev/null. Apparently, some OS's
> don't have a /dev directory ;-).
> 

You can use os.devnull (new in Pyhton 2.4).
On Windows the "pseudo"/"virtual"/"who knows" device is "NUL"




Regards  Manlio Perillo



More information about the Twisted-web mailing list