no html pages generated
Brought to you by:
blais
ran curator with no options and it generted the
tumbnail images but then it outputs the following:
====> executing global rc file
==> directory index generation
Traceback (most recent call last):
File "./curator", line 2704, in ?
main()
File "./curator", line 2656, in main
rootdir.visit(walkDirsForIndex)
File "./curator", line 755, in visit
sd.visit(functor)
File "./curator", line 756, in visit
functor(self)
File "./curator", line 2648, in walkDirsForIndex
envir['dir'] = dir
NameError: global name 'envir' is not defined
I have python-2.1.1-2 and ImageMagick-5.3.8-3 installed.
Logged In: YES
user_id=699457
it seems that it has something to do with nested scopes..
if so, you should get 4 errors like the following (first
thing after start) when you run the script:
../curator/curator:2280: SyntaxWarning: local name 'envir'
in 'main' shadows use of 'envir' as global in nested scope
'walkDirsForIndex'
after a little research, this is what i found somewhere:
- Python < 2.1 doesn't have nested scopes; you'd have to
play tricks with lambda IIRC; but then, I consider Python <
2.1 obsolete
- Python 2.1 has nested scopes, if the first import
statement in a module is "from future import nested_scopes".
- Python 2.2 and later always use nested scopes
so upgrading to python2.2 or using the import statement from
above will *likely* fix it (that's what it did here at
last). with this "fix", it now works flawlessly over here,
and the HTML-pages are generated. i'm happy :)
kind regards,
pirre.