D
David Beckwith
I am using Mechanize to fill out a file upload form for an image file.
My script is telling me that an image file DOESN'T exist:
/opt/local/lib/ruby/gems/1.8/gems/mechanize-0.7.2/lib/www/mechanize/form.rb:273:in
`initialize': No such file or directory -
/Users/dbit/Sites/fuseme/fuseme_rails/app/models/scrapers/web20/web20_logos/evenspacer.gif
(Errno::ENOENT)
Does anybody have a clue as to why it would happen?
When I use the UNIX 'ls' command to ls the file name using the absolute
path name of the image "evenspacer.gif" (as seen in the above error
message), the UNIX prompt lists that file, meaning that it's there!
I thought it might be because the file name was named in a different
character set, but I changed the XML file from which the name of the
file was being taken and retyped in both the XML file and renamed the
file by hand using my keyboard( thereby overwriting whatever character
set it was previously represented in).
Does anybody have any ideas as to what's going on here? I'm a bit
stumped!
Thank you!
David
My script is telling me that an image file DOESN'T exist:
/opt/local/lib/ruby/gems/1.8/gems/mechanize-0.7.2/lib/www/mechanize/form.rb:273:in
`initialize': No such file or directory -
/Users/dbit/Sites/fuseme/fuseme_rails/app/models/scrapers/web20/web20_logos/evenspacer.gif
(Errno::ENOENT)
Does anybody have a clue as to why it would happen?
When I use the UNIX 'ls' command to ls the file name using the absolute
path name of the image "evenspacer.gif" (as seen in the above error
message), the UNIX prompt lists that file, meaning that it's there!
I thought it might be because the file name was named in a different
character set, but I changed the XML file from which the name of the
file was being taken and retyped in both the XML file and renamed the
file by hand using my keyboard( thereby overwriting whatever character
set it was previously represented in).
Does anybody have any ideas as to what's going on here? I'm a bit
stumped!
Thank you!
David