Comments (18)
Do you have Bundler installed?
Could you try running this command:
gem install bundler
and then trying again?
from artoo.
Thanks, I had wiped the Ruby. But after installing Bundler, the adapter keeps crashing:
[525][chimkan: /Users/chimkan]$ ruby test_artoo.rb
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/cpu_counter.rb:7: warning: Insecure world writable dir /usr/local in PATH, mode 040777
I, [2014-04-15T11:17:31.679099 #18475] INFO -- : Registering connection 'neurosky'...
I, [2014-04-15T11:17:31.679201 #18475] INFO -- : Registering device 'neurosky'...
I, [2014-04-15T11:17:31.679247 #18475] INFO -- : Preparing work...
I, [2014-04-15T11:17:31.680000 #18475] INFO -- : Initializing connection neurosky...
I, [2014-04-15T11:17:31.686832 #18475] INFO -- : Initializing device neurosky...
I, [2014-04-15T11:17:31.691534 #18475] INFO -- : Starting work...
I, [2014-04-15T11:17:31.691924 #18475] INFO -- : Connecting to 'neurosky' on port '/dev/rfcomm0'...
E, [2014-04-15T11:17:31.714724 #18475] ERROR -- : Artoo::Adaptors::Neurosky crashed!
Errno::ENOENT: No such file or directory - /dev/rfcomm0
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-serialport-1.2.1/lib/serialport.rb:22:in create' /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-serialport-1.2.1/lib/serialport.rb:22:in
new'
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-mindset-0.3/lib/mindset.rb:170:in initialize_serialport' /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-mindset-0.3/lib/mindset.rb:157:in
initialize'
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-mindset-0.3/lib/mindset.rb:312:in new' /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-mindset-0.3/lib/mindset.rb:312:in
connect'
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/artoo-neurosky-0.1.2/lib/artoo/adaptors/neurosky.rb:19:in connect' /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in
public_send'
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in dispatch' /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in
dispatch'
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in block in handle_message' /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in
block in task'
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in block in initialize' /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in
block in create'
E, [2014-04-15T11:17:31.714888 #18475] ERROR -- : No such file or directory - /dev/rfcomm0
E, [2014-04-15T11:17:31.717201 #18475] ERROR -- : ["/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-serialport-1.2.1/lib/serialport.rb:22:in create'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-serialport-1.2.1/lib/serialport.rb:22:in
new'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-mindset-0.3/lib/mindset.rb:170:in initialize_serialport'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-mindset-0.3/lib/mindset.rb:157:in
initialize'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-mindset-0.3/lib/mindset.rb:312:in new'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/hybridgroup-mindset-0.3/lib/mindset.rb:312:in
connect'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/artoo-neurosky-0.1.2/lib/artoo/adaptors/neurosky.rb:19:in connect'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in
public_send'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in dispatch'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in
dispatch'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in block in handle_message'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in
block in task'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in block in initialize'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in
block in create'", "(celluloid):0:in remote procedure call'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:92:in
value'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:33:in method_missing'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/artoo-1.6.7/lib/artoo/connection.rb:34:in
connect'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in public_send'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in
dispatch'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in dispatch'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in
block in handle_message'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in block in task'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in
block in initialize'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in block in create'"] I, [2014-04-15T11:17:31.719683 #18475] INFO -- : Starting driver 'Artoo::Drivers::Neurosky'... Scanning... E, [2014-04-15T11:17:31.821909 #18475] ERROR -- : attempted to call a dead actor E, [2014-04-15T11:17:31.822088 #18475] ERROR -- : ["/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/proxies/sync_proxy.rb:23:in
method_missing'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/artoo-1.6.7/lib/artoo/connection.rb:81:in method_missing'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in
public_send'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:25:in dispatch'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/calls.rb:67:in
dispatch'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:322:in block in handle_message'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/actor.rb:416:in
block in task'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks.rb:55:in block in initialize'", "/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/tasks/task_fiber.rb:13:in
block in create'"]
E, [2014-04-15T11:17:31.822900 #18475] ERROR -- : Artoo::Drivers::Neurosky crashed!
NoMethodError: undefined method empty?' for nil:NilClass /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/artoo-neurosky-0.1.2/lib/artoo/drivers/neurosky.rb:27:in
handle_message_events'
/Users/chimkan/.rbenv/ve
...
from artoo.
Have you paired the mindwave to your computer?
What does this commands returns?
artoo connect scan
from artoo.
@designium I can see from your error message Errno::ENOENT: No such file or directory - /dev/rfcomm0
you are likely referencing the incorrect serial port.
After pairing the neurosky to your computer, running artoo blueooth scan
should give you the correct serial port which you must then add here https://github.com/hybridgroup/artoo-neurosky/blob/master/example/eeg.rb#L3. Replace '/dev/rfcomm0' with whatever the serial address of the neurosky is.
I also noticed that you're using rbenv to manage your ruby environment, you should run your ruby programs with bundle exec ruby
from artoo.
Thanks a lot. Tried both commands:
[530][chimkan: /Users/chimkan]$ artoo bluetooth scan
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/cpu_counter.rb:7: warning: Insecure world writable dir /usr/local in PATH, mode 040777
OS not yet supported...
[531][chimkan: /Users/chimkan]$ artoo connect scan
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/cpu_counter.rb:7: warning: Insecure world writable dir /usr/local in PATH, mode 040777
Could not find command "connect".
[532][chimkan: /Users/chimkan]$
Let me rebuild the ruby 2.1 and reinstall all the gems again.
from artoo.
@designium yes I'm sorry for that, since you're on mac you have to use artoo scan serial
from artoo.
Well. I'm having trouble using the following command:
artoo install soc
553][chimkan: /Users/chimkan/.rbenv/versions]$ artoo install socat
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/cpu_counter.rb:7: warning: Insecure world writable dir /usr/local in PATH, mode 040777
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/artoo-1.6.7/lib/artoo/commands/install.rb:16:in socat': uninitialized constant Artoo::Commands::Install::Bundler (NameError) from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/command.rb:27:in
run'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in invoke_command' from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor.rb:363:in
dispatch'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:109:in invoke' from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor.rb:232:in
block in subcommand'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/command.rb:27:in run' from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in
invoke_command'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor.rb:363:in dispatch' from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/base.rb:439:in
start'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/artoo-1.6.7/bin/artoo:56:in <top (required)>' from /Users/chimkan/.rbenv/versions/2.1.0/bin/artoo:23:in
load'
from /Users/chimkan/.rbenv/versions/2.1.0/bin/artoo:23:in `
[554][chimkan: /Users/chimkan/.rbenv/versions]$
from artoo.
I'm using:
brew install socat
To install socat, not sure if this is the best way or it matters.
The output for artoo scan serial:
[554][chimkan: /Users/chimkan/.rbenv/versions]$ artoo scan serial
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/cpu_counter.rb:7: warning: Insecure world writable dir /usr/local in PATH, mode 040777
run ls /dev/{tty,cu}.* from "."
/dev/cu.Bluetooth-Incoming-Port /dev/cu.MindWaveMobile-DevA-6 /dev/tty.MindWaveMobile-DevA-3
/dev/cu.Bluetooth-Modem /dev/cu.MindWaveMobile-DevA-7 /dev/tty.MindWaveMobile-DevA-4
/dev/cu.MindWaveMobile-DevA /dev/cu.MindWaveMobile-DevA-8 /dev/tty.MindWaveMobile-DevA-5
/dev/cu.MindWaveMobile-DevA-1 /dev/tty.Bluetooth-Incoming-Port /dev/tty.MindWaveMobile-DevA-6
/dev/cu.MindWaveMobile-DevA-2 /dev/tty.Bluetooth-Modem /dev/tty.MindWaveMobile-DevA-7
/dev/cu.MindWaveMobile-DevA-3 /dev/tty.MindWaveMobile-DevA /dev/tty.MindWaveMobile-DevA-8
/dev/cu.MindWaveMobile-DevA-4 /dev/tty.MindWaveMobile-DevA-1
/dev/cu.MindWaveMobile-DevA-5 /dev/tty.MindWaveMobile-DevA-2
from artoo.
@designium did you run gem install artoo
and rbenv rehash
from artoo.
@designium /dev/tty.MindWaveMobile-DevA
is probably the address you want
from artoo.
So, even with
gem install artoo and rbenv rehash
I get the installing issue on Mac
[556][chimkan: /Users/chimkan/.rbenv/versions]$ gem install artoo
Successfully installed artoo-1.6.7
1 gem installed
[557][chimkan: /Users/chimkan/.rbenv/versions]$ rebenv rehash
-bash: rebenv: command not found
[558][chimkan: /Users/chimkan/.rbenv/versions]$ rbenv rehash
[559][chimkan: /Users/chimkan/.rbenv/versions]$ artoo install socat
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/celluloid-0.15.2/lib/celluloid/cpu_counter.rb:7: warning: Insecure world writable dir /usr/local in PATH, mode 040777
/Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/artoo-1.6.7/lib/artoo/commands/install.rb:16:in socat': uninitialized constant Artoo::Commands::Install::Bundler (NameError) from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/command.rb:27:in
run'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in invoke_command' from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor.rb:363:in
dispatch'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:109:in invoke' from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor.rb:232:in
block in subcommand'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/command.rb:27:in run' from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in
invoke_command'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor.rb:363:in dispatch' from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/thor-0.18.1/lib/thor/base.rb:439:in
start'
from /Users/chimkan/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/artoo-1.6.7/bin/artoo:56:in <top (required)>' from /Users/chimkan/.rbenv/versions/2.1.0/bin/artoo:23:in
load'
from /Users/chimkan/.rbenv/versions/2.1.0/bin/artoo:23:in `
[560][chimkan: /Users/chimkan/.rbenv/versions]$
I'll try that address.
from artoo.
I think you need to run this again:
gem install bundler
from artoo.
It still gives me the same error after running
gem install bundler
rbenv rehash
Is Artoo leveraging something that it doesn't have on Mac?
from artoo.
What happens if you run:
bundle exec artoo install socat
from artoo.
So, I had to work in the following steps:
Create Gemfile with gem "artoo"
Then
bundle exec artoo install socat
So, it actually runs homebrew to install socat.
from artoo.
Good to hear @designium, so you were able to connect?
from artoo.
I can connect to it! :)
I'm going to write a tutorial for it. There are some in-between steps that need more clarification.
Happy now.
from artoo.
Thanks... looking forward to the tutorial.. 😄
from artoo.
Related Issues (20)
- Support for Hover? HOT 1
- Ollie Support HOT 2
- Any plans to support MAVLink? HOT 1
- Cannot connect to Arduino UNO through firmata HOT 6
- Do you plan to support other languages such as scala or clojure? HOT 2
- Adjustable serial baud rate HOT 1
- How to terminate cleanly? HOT 1
- Help me get started. HOT 14
- Artoo Generate Adapter not working HOT 1
- How can i make blink led robot running independently of the physical computer? HOT 1
- Question: Raspberry Pi and Sensors HOT 10
- Documentation Request: Sphero support for BB-8 HOT 1
- Control Arduino slave from RPi? HOT 3
- GrovePi or Arduberry
- Connect to raspberry pi via bluetooth
- Is this project still alive? HOT 1
- Firmata fails to start a connection with Arduino mega2560 HOT 1
- method #close doesn't exists for File class
- How to connect addon-cards on arduino? Also how to add library?
- This gem and library is dam good and excellent for ruby echo system , problem not updated new ruby version and not support new hardware access and driver.. and gem has not update.please maintained the gem. I love to write ruby language .. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artoo.