New to rails so please bear with me. Am having difficulties with the
flickr plugin. trying to follow the video as a starter, and keep hitting
the following problem when I require ‘flickr’ in the environment.rb file
Thought it was possibly to do with the Ruby RPM (Suse 9.3), so got rid
of that and installed Ruby 1.8.4 from source. Didn’t make any
difference. Anybody got any clues?
OK. Have now tested this on a Debian box. Installed Ruby from source,
rubygems, then rails and finally flickr/xml-simple.
– Set up new project: rails flickrtest
– Ran webrick – all OK
– added require ‘flickr’ to environment.rb
– Suddenly getting these same errors.
Anyone got any ideas?
Chris T wrote:
New to rails so please bear with me. Am having difficulties with the
flickr plugin. trying to follow the video as a starter, and keep hitting
the following problem when I require ‘flickr’ in the environment.rb file
Thought it was possibly to do with the Ruby RPM (Suse 9.3), so got rid
of that and installed Ruby 1.8.4 from source. Didn’t make any
difference. Anybody got any clues?
Victor
Got this email from the author a couple of days ago…
It looks to me like there aren’t any errors int that output, just
warnings, so that shouldn’t keep your app from working. I suspect both
Rails and Flickr.rb are requiring XmlSimple, and so the constants are
getting defined twice. Or something like that.
Anyhow, I’m afraid that I haven’t been able to maintain Flickr.rb very
well, so it’s likely fallen apart in places. There are a couple of
other Flickr-Ruby projects that may be more actively maintained.
Sorry!
Scott
Knowing I could ignore the warnings, managed to work out where I was
going wrong – sloppy typing, mainly – and as Scott suggested, it
worked just fine. Haven’t had time to try and work out how to avoid
calling XmlSimple twice. Hope this helps – CT
Victor T. wrote:
I get the same error, Chris, has this issue been resolved for you? If
so, how did you fix.
Thanks.
I am using Ruby 1.8.2, Rails 1.0, flickr 1.0, and xml-simple 1.08 on
Mac OS X 10.4.4