Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: John Plumridge
RE: rexml problem [ reply ]  
2010-08-24 17:59
Here's the rsesult:
$ ruby -d -S webgen -v
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:1113 - no such file to load -- rubygems/defaults/operating_system
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:50 - no such file to load -- Win32API
Starting webgen...
Updating tree...
...done in 14.8006 seconds
Writing changed nodes...
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31 - no such file to load -- coderay
Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - no such file to load -- coderay
Exception `NameError' at /usr/local/lib/ruby/gems/1.8/gems/kramdown-0.10.0/lib/kramdown/parser/html.rb:40 - uninitialized constant REXML::Parsers::BaseParser::UNAME_STR
Exception `Webgen::RenderError' at /usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/sourcehandler.rb:170 - uninitialized constant REXML::Parsers::BaseParser::UNAME_STR
Exception `Webgen::RenderError' at /usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/sourcehandler.rb:78 - uninitialized constant REXML::Parsers::BaseParser::UNAME_STR
An error has occurred:
Error while rendering </agroforestry/ecosystemproductivity_oda.en.html>:
uninitialized constant REXML::Parsers::BaseParser::UNAME_STR
/usr/local/lib/ruby/gems/1.8/gems/kramdown-0.10.0/lib/kramdown/parser/html.rb:40
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/kramdown-0.10.0/lib/kramdown/parser/kramdown/html.rb:23
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/local/lib/ruby/gems/1.8/gems/kramdown-0.10.0/lib/kramdown/parser/kramdown.rb:287
/usr/local/lib/ruby/gems/1.8/gems/kramdown-0.10.0/lib/kramdown/document.rb:101:in `const_get'
/usr/local/lib/ruby/gems/1.8/gems/kramdown-0.10.0/lib/kramdown/document.rb:101:in `initialize'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/contentprocessor/kramdown.rb:14:in `new'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/contentprocessor/kramdown.rb:14:in `call'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/page.rb:43:in `render'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/page.rb:41:in `each'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/page.rb:41:in `render'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/contentprocessor/blocks.rb:86:in `render_block'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/contentprocessor/blocks.rb:20:in `call'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/contentprocessor/blocks.rb:15:in `gsub!'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/contentprocessor/blocks.rb:15:in `call'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/page.rb:43:in `render'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/page.rb:41:in `each'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/page.rb:41:in `render'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/sourcehandler/page.rb:35:in `content'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/node.rb:426:in `send'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/node.rb:426:in `method_missing'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/sourcehandler.rb:155:in `write_tree'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/sourcehandler.rb:147:in `each'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/sourcehandler.rb:147:in `write_tree'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/sourcehandler.rb:72:in `render'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/sourcehandler.rb:71:in `render'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/website.rb:275:in `render'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/website.rb:316:in `execute_in_env'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/website.rb:270:in `render'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/cli/run_command.rb:17:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/cmdparse-2.0.2/lib/cmdparse.rb:438:in `parse'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/lib/webgen/cli.rb:125:in `parse'
/usr/local/lib/ruby/gems/1.8/gems/webgen-0.5.14/bin/webgen:6
/usr/local/bin/webgen:19:in `load'
/usr/local/bin/webgen:19

By: John Plumridge
RE: rexml problem [ reply ]  
2010-08-24 17:47
Certainly, I shall.

I solved the problem by installing webgen and ruby 1.8.6 from macports; the problem had occurred with Ruby 1.8.6. installed from http://rubyosx.rubyforge.org/ - a frequently used package.

By: Thomas Leitner
RE: rexml problem [ reply ]  
2010-08-23 08:55
Could you run webgen like this and post the output:

ruby -d -S webgen -v

By: John Plumridge
RE: rexml problem [ reply ]  
2010-08-19 11:17
I have the same problem, with ruby 1.8.6 on OS X
A fresh update of webgen today.


ERROR:
Error while rendering </agroforestry/ecosystemproductivity_oda.en.html>:
uninitialized constant REXML::Parsers::BaseParser::UNAME_STR

It happens on all files.
This particular file is as foillows:

---
title: Enhancing ecosystem and productivity in Oda
---

Enhancing the sustainability of natural assets to alleviate land-use problems, and thereby reverse decreasing financial and social capital.

John Plumridge MSC 27/11/03

### Introduction
Householders report serious problems concerning land use ...

By: zsolt kormany
RE: rexml problem [ reply ]  
2010-06-17 19:18
Sorry, it was my fault. The problem caused by two installed rexml version.

Everything works fine now.

Thanks. :)

By: zsolt kormany
RE: rexml problem [ reply ]  
2010-06-17 18:39
Hi Thomas,

ruby -v
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]

By: Thomas Leitner
RE: rexml problem [ reply ]  
2010-06-17 18:17
Hi,

which version of ruby are you using? The constant that is missing (REXML::Parsers::BaseParser::UNAME_STR) should be available in the standard library of Ruby 1.8.6 and upwards, and is added for compatibility by kramdown for 1.8.5.

-- Thomas

By: zsolt kormany
RE: rexml problem [ reply ]  
2010-06-17 08:51
The problem is about <webgen:block name="content" /> tag. When I delete this element from default.template webgen works (renders title, menu, breadcrumb, everything).

When I run

ruby -d -S webgen

command with the block tag in place I got this output:

Exception `LoadError' at /Library/Ruby/Site/1.8/rubygems.rb:1113 - no such file to load -- rubygems/defaults/operating_system
Exception `LoadError' at /Library/Ruby/Site/1.8/rubygems/config_file.rb:50 - no such file to load -- Win32API
Exception `NoMethodError' at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rational.rb:78 - undefined method `gcd' for Rational(1, 2):Rational
Exception `LoadError' at /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31 - no such file to load -- rubygems/commands/migrate
Starting webgen...
Updating tree...
...done in 0.0136 seconds
Writing changed nodes...
Exception `LoadError' at /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31 - no such file to load -- coderay
Exception `LoadError' at /Library/Ruby/Site/1.8/rubygems/custom_require.rb:38 - no such file to load -- coderay
Exception `NameError' at /Library/Ruby/Gems/1.8/gems/kramdown-0.8.0/lib/kramdown/parser/html.rb:40 - uninitialized constant REXML::Parsers::BaseParser::UNAME_STR
Exception `Webgen::RenderError' at /Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/sourcehandler.rb:170 - uninitialized constant REXML::Parsers::BaseParser::UNAME_STR
Exception `Webgen::RenderError' at /Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/sourcehandler.rb:78 - uninitialized constant REXML::Parsers::BaseParser::UNAME_STR
An error has occurred:
Error while rendering </index.hu.html>:
uninitialized constant REXML::Parsers::BaseParser::UNAME_STR
/Library/Ruby/Gems/1.8/gems/kramdown-0.8.0/lib/kramdown/parser/html.rb:40
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Library/Ruby/Gems/1.8/gems/kramdown-0.8.0/lib/kramdown/parser/kramdown/html.rb:23
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Library/Ruby/Gems/1.8/gems/kramdown-0.8.0/lib/kramdown/parser/kramdown.rb:285
/Library/Ruby/Gems/1.8/gems/kramdown-0.8.0/lib/kramdown/document.rb:99:in `const_get'
/Library/Ruby/Gems/1.8/gems/kramdown-0.8.0/lib/kramdown/document.rb:99:in `initialize'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/contentprocessor/kramdown.rb:14:in `new'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/contentprocessor/kramdown.rb:14:in `call'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/page.rb:43:in `render'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/page.rb:41:in `each'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/page.rb:41:in `render'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/contentprocessor/blocks.rb:86:in `render_block'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/contentprocessor/blocks.rb:20:in `call'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/contentprocessor/blocks.rb:15:in `gsub!'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/contentprocessor/blocks.rb:15:in `call'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/page.rb:43:in `render'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/page.rb:41:in `each'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/page.rb:41:in `render'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/sourcehandler/page.rb:35:in `content'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/node.rb:426:in `send'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/node.rb:426:in `method_missing'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/sourcehandler.rb:155:in `write_tree'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/sourcehandler.rb:147:in `each'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/sourcehandler.rb:147:in `write_tree'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/sourcehandler.rb:72:in `render'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/sourcehandler.rb:71:in `render'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/website.rb:275:in `render'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/website.rb:316:in `execute_in_env'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/website.rb:270:in `render'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/cli/run_command.rb:17:in `execute'
/Library/Ruby/Gems/1.8/gems/cmdparse-2.0.2/lib/cmdparse.rb:438:in `parse'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/lib/webgen/cli.rb:125:in `parse'
/Library/Ruby/Gems/1.8/gems/webgen-0.5.12/bin/webgen:6
/usr/local/bin/webgen:19:in `load'
/usr/local/bin/webgen:19

By: zsolt kormany
rexml problem [ reply ]  
2010-06-16 11:08
Hi,

I got this error issuing webgen command in a webgen generated directory:

An error has occurred:
Error while rendering </index.en.html>:
uninitialized constant REXML::Parsers::BaseParser::UNAME_STR

Can you help me, what can I do?