-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is NoMethodError encode': undefined method
force_encoding' while running through terminal
#18
Comments
I think this is an error from Sonic Pi because you used run-code instead of run_code (See the syntax in the Help File Lang section for Sonic Pi) |
No sir. I'm just using sonic-pi-cli and i am just placing this command |
OK: sorry. What platform are you running on? what version of Sonic Pi? What version of ruby do you have installed? |
I am running sonic-pi on RaspberryPi with latest version of
|
Am I right in thinking that you're running a relatively old version of Ruby (1.8)? Would you be able to try again with a newer version? |
The terminal error logs are:
/var/lib/gems/1.8/gems/osc-ruby-1.1.1/lib/osc-ruby/osc_types.rb:21:in
encode': undefined method
force_encoding' for "/run-code\000\000\000":String (NoMethodError)from /var/lib/gems/1.8/gems/osc-ruby-1.1.1/lib/osc-ruby/message.rb:31:in
encode' from /var/lib/gems/1.8/gems/osc-ruby-1.1.1/lib/osc-ruby/client.rb:10:in
send'from /var/lib/gems/1.8/gems/sonic-pi-cli-0.1.1/lib/sonic_pi.rb:39:in
send_command' from /var/lib/gems/1.8/gems/sonic-pi-cli-0.1.1/lib/sonic_pi.rb:14:in
run'from /var/lib/gems/1.8/gems/sonic-pi-cli-0.1.1/bin/sonic_pi:58:in
run' from /var/lib/gems/1.8/gems/sonic-pi-cli-0.1.1/bin/sonic_pi:62 from /usr/local/bin/sonic_pi:23:in
load'from /usr/local/bin/sonic_pi:23
The text was updated successfully, but these errors were encountered: