[wxruby-users] xrcise question

Alex Fenton alex at pressure.to
Fri Nov 14 15:48:18 EST 2008


Heinrich Piard wrote:
> one more question popped up:
>
> 14:37:40: Error: Cannot load resources from file 
> 'file:/C%3A/ruby/ruby_scripts/wxFormBuilder/nonam.xrc'.
> c:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-mswin32-60/lib/wx/classes/xmlresource.rb:31:in 
> `load': Failed to load XRC from 'nonam.xrc'; check the file exists and 
> is valid XML (RuntimeError)
The filename looks a bit suspicious to me. I would expect it to be a 
valid path rather than a mangled-looking URL. Hard to know where this 
came from without knowing more about your project layout.

I would check that you call xrcise with a relative path, in a typical 
project structure. Eg I have

app.rb
lib/*.*/rb
share/xrc.xrc

I call "xrcise share/xrc.xrc" from the base directory and that means 
that the paths resolve fine.

a


More information about the wxruby-users mailing list