[Twisted-Python] ANN: Nufox 0.1.0

Michele Petrazzo michele.petrazzo at unipex.it
Thu Oct 13 10:17:39 EDT 2005


jean-marc pouchoulon wrote:
> Bonjour,
> 
> On windows I needed  to change all   __file__ by  util.__file__
> 
> I needed also to copy examples and doc dir from nufox to 
> C:\Python24\Lib\site-packages\twisted\python . After that twistd -noy
> examples.tac works fine.
> 


Ok. On linux I copy the doc and examples dir to
site-package/twisted/python directory (I think that this is a very bad
hack... Why do it? ) And now I receive:

File "oneShotExample.tac", line 6, in ?
example = reflect.namedAny('%s.example' % os.environ['EXAMPLE'])
File "/usr/lib/python2.3/UserDict.py", line 19, in __getitem__
  def __getitem__(self, key): return self.data[key]
KeyError: 'EXAMPLE'
Failed to load application: 'EXAMPLE'

File "/usr/lib/python2.3/UserDict.py", line 19, in __getitem__
  def __getitem__(self, key): return self.data[key]
  exceptions.KeyError: 'EXAMPLE'

This is right because I don't have any EXAMPLE enviroment variable!

P.s. If I execute "twistd -f oneShotExample.tac" I receive the same error.

> jmp.
> 

Thanks a lot,
Michele




More information about the Twisted-Python mailing list