Hi!
Technical specs: MacBook Air (10.14 Mojave), everything is updated (brew packages updated too).
I’ve never took the time to fix my sonic-pi-tool but it is now more necessary than ever. The program works nice except for the most useful command: start-server
. Here is a copy of the error log for both versions:
Lpil version:
Failed to load the fast_osc c-extension, falling back to pure Ruby version
Overriding fast_osc c-extension FastOsc::decode_single_message, falling back to pure Ruby version
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- ffi_c (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Applications/Sonic Pi.app/app/server/ruby/vendor/ffi-1.9.17/lib/ffi.rb:6:in `rescue in <top (required)>'
from /Applications/Sonic Pi.app/app/server/ruby/vendor/ffi-1.9.17/lib/ffi.rb:3:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Applications/Sonic Pi.app/app/server/ruby/vendor/ruby-aubio-prerelease/lib/aubio/api.rb:1:in `<top (required)>'
from /Applications/Sonic Pi.app/app/server/ruby/vendor/ruby-aubio-prerelease/lib/aubio.rb:2:in `require_relative'
from /Applications/Sonic Pi.app/app/server/ruby/vendor/ruby-aubio-prerelease/lib/aubio.rb:2:in `<top (required)>'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Applications/Sonic Pi.app/app/server/ruby/lib/sonicpi/samplebuffer.rb:17:in `<top (required)>'
from /Applications/Sonic Pi.app/app/server/ruby/lib/sonicpi/studio.rb:16:in `require_relative'
from /Applications/Sonic Pi.app/app/server/ruby/lib/sonicpi/studio.rb:16:in `<top (required)>'
from /Applications/Sonic Pi.app/server/ruby/bin/sonic-pi-server.rb:20:in `require_relative'
from /Applications/Sonic Pi.app/server/ruby/bin/sonic-pi-server.rb:20:in `<main>'
Emlyn Python version:
Found installation at: /Applications/Sonic Pi.app
Running: /Applications/Sonic Pi.app/server/native/ruby/bin/ruby /Applications/Sonic Pi.app/server/ruby/bin/sonic-pi-server.rb
Traceback (most recent call last):
File "/usr/local/bin/sonic-pi-tool.py", line 291, in <module>
cli(obj=None)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/bin/sonic-pi-tool.py", line 256, in start_server
subprocess.run([inst.ruby_path(), inst.server_path()]).check_returncode()
AttributeError: 'module' object has no attribute 'run'
It might be easy to fix but everything I tried so far was unsuccessful. I’m basically trying to run Sonic-Pi and edit code from the terminal using Vim or any other application. So far, I was just opening the app and letting it run in the background but I want to go one step further.