rake make:upload -- no such file to load -- ruby_to_ansi_c

116 views
Skip to first unread message

Eli Pazooki

unread,
Jun 29, 2010, 3:46:01 PM6/29/10
to Ruby Arduino Development
#Hello friends
#When I write the command for uploading after making the project by
rad blink and editing blink.rb I get this error

~/blink$ rake make:upload
(in ~/c0d3s/ruby/RAD/blink)
rake aborted!
no such file to load -- ruby_to_ansi_c
~/c0d3s/ruby/RAD/blink/Rakefile:1:in `require'
(See full trace by running task with --trace)

#full Trace:

blink$ rake make:upload --trace
(in /home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink)
rake aborted!
no such file to load -- ruby_to_ansi_c
/home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink/vendor/rad/
rad_processor.rb:2:in `require'
/home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink/vendor/rad/
rad_processor.rb:2:in `<top (required)>'
/home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink/vendor/rad/
init.rb:12:in `require'
/home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink/vendor/rad/
init.rb:12:in `block in <top (required)>'
/home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink/vendor/rad/
init.rb:11:in `each'
/home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink/vendor/rad/
init.rb:11:in `<top (required)>'
/home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink/Rakefile:1:in
`require'
/home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink/Rakefile:1:in
`<top (required)>'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in
`raw_load_rakefile'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2017:in `block in
load_rakefile'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2016:in
`load_rakefile'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2000:in `block in
run'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in `<top
(required)>'
/usr/bin/rake:19:in `load'
/usr/bin/rake:19:in `<main>'

#Contents of Rakefile is :

require 'vendor/rad/init.rb'

#and the address is right as you see :
~/blink$ file vendor/rad/init.rb
vendor/rad/init.rb: ASCII text

# I think something doesn't load in init.rb


#It's Hardware configuration part in rad binary file in this path : /
usr/lib/ruby/gems/1.9.1/gems/rad-0.3.0/bin/rad


options = {"hardware" => {
"serial_port" => '/dev/ttyUSB0',
"mcu" => "atmega328",
"physical_reset" => false
},
"software" => {
"arduino_root" => "/usr/local/src/arduino"
}
}


# I edited this file and changed serial_port to /dev/ttyUSB0 (It's the
port which Arduino works with that and it's OK!)
# I changed the value of mcu to atmega328 because I have Arduino
Duemilanove ATmega328

# Thank you very much for this project that you have lunched up, As
soon as I get familiar with RAD I will join you to develop and support

Martin Evans

unread,
Jun 29, 2010, 7:32:45 PM6/29/10
to ruby-arduino...@googlegroups.com
Hi I think you are using old. Version of rad try looking for madrona fork on fit hub and use that. That should work with version of ruby you are using
Martin

Sent from my iPhone

> --
> You received this message because you are subscribed to the Google Groups "Ruby Arduino Development" group.
> To post to this group, send email to ruby-arduino...@googlegroups.com.
> To unsubscribe from this group, send email to ruby-arduino-devel...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ruby-arduino-development?hl=en.
>

Eli Pazooki

unread,
Jun 30, 2010, 12:49:10 PM6/30/10
to Ruby Arduino Development

#I got the new version, I use ubuntu lucid and I have sun-java6-jre. I
tried to install sun-java5-jre from the binary package but I couldn't
give rad the path of sun-java5-jre. ( this Description is for "sudo
rad install arduino")

$ sudo rad install arduino
Welcome to the RAD Linux Installer!
-----------------------------------
Let's begin.

Please plug in your arduino to your usb port... [hit enter to
continue]

you will need to manually install sun-java5-jre! use the command
below.
sudo apt-get install sun-java5-jre


############

#I skipped the first step(rad install arduino) I changed the rad
binary file and I edited hardware configuration, I used rake command
again and I got this error.
### I have no problem with Arduino software for uploading program to
my Arduino.

$ rake make:upload
(in /home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink)
mkdir -p /home/mithridates/Desktop/output/c0d3s/ruby/RAD/blink/blink
1 of 18 plugins are being loaded: blink.rb
rake aborted!
superclass mismatch for class Blink

(See full trace by running task with --trace)




Thank you very much for your support
Eli,


On Jun 29, 8:32 pm, Martin Evans <mar...@domeweb.co.uk> wrote:
> Hi I think you are using old. Version of rad try looking for madrona fork on fit hub and use that. That should work with version of ruby you are using
> Martin
>
> Sent from my iPhone
>
Reply all
Reply to author
Forward
0 new messages