Re: [Rest2web-develop] Installation instructions not correct
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2006-08-27 16:40:49
|
Grzegorz Adam Hankiewicz wrote: > Hi. > > In the installing section I read "The files in the 'modules' > folder are used by macros. They will also need to be somewhere on > sys.path (e.g. in 'site-packages'.) Alternatively, if the modules > directory is in the same directory as 'r2w.py' when you run it, > it will automatically be added to the path.". > > I understand that means I can call r2w from anywhere as long as > the modules directory is there too. But it doesn't work: > > [~/t]$ python ../instalacion_manual/rest2web-dist-201/r2w.py > rest2web version 0.5.0 beta1 > Running rest2web the Site Builder. > Sun Aug 27 18:25:18 2006 > > Traceback (most recent call last): > [err] File "../instalacion_manual/rest2web-dist-201/r2w.py", line 185, in ? > [err] count = main(options, config) > [err] File "../instalacion_manual/rest2web-dist-201/r2w.py", line 94, in main > [err] return processor.walk() > [err] File "/home/gradha/instalacion_manual/rest2web-dist-201/rest2web/restprocessor.py", line 246, in walk > [err] self.setmacros(self.macrofile) > [err] File "/home/gradha/instalacion_manual/rest2web-dist-201/rest2web/restprocessor.py", line 193, in setmacros > [err] raise RuntimeError('macros file can\'t be found "%s".' % macrofile) > [err] RuntimeError: macros file can't be found "macros.py". > [err] > Hit return to continue >>> > Hello Grzegorz, The actual error being reported here is that rest2web can't find macros file pointed to in your config (r2w.ini) file. If the macros file is not in the same directory as your config file, then you need to provide the full path to it. This will all change in the next release (soon), which puts the macro modules *into* the rest2web package itself, and builds all the standard macros in as well. All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml > [~/t]$ ls ../instalacion_manual/rest2web-dist-201/modules/ > colorize.py colorize.pyc path.py path.pyc smiley.py smiley.pyc > [~/t]$ ls ../instalacion_manual/rest2web-dist-201/macros.py > ../instalacion_manual/rest2web-dist-201/macros.py > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Rest2web-develop mailing list > Res...@li... > https://lists.sourceforge.net/lists/listinfo/rest2web-develop > > |