Skip to content
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

Ruby test code doesn't run, i2c-devices library problem? #497

Open
iandouglas opened this issue Oct 29, 2020 · 1 comment
Open

Ruby test code doesn't run, i2c-devices library problem? #497

iandouglas opened this issue Oct 29, 2020 · 1 comment

Comments

@iandouglas
Copy link

I installed the repo tonight, flashed the firmware, all of it said it was successful.

I updated the script to use D2 since I already had a grove temperature sensor plugged in there, but I'm getting this error:

~/Dexter/GrovePi/Software/Ruby/tests $ ruby test_read_digital.rb
Traceback (most recent call last):
	11: from test_read_digital.rb:3:in `<main>'
	10: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	 9: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	 8: from /home/pi/Dexter/GrovePi/Software/Ruby/grove_pi.rb:3:in `<top (required)>'
	 7: from /home/pi/Dexter/GrovePi/Software/Ruby/grove_pi.rb:5:in `<module:GrovePi>'
	 6: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require'
	 5: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
	 4: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:135:in `require'
	 3: from /var/lib/gems/2.5.0/gems/i2c-devices-0.0.6/lib/i2c/driver/i2c-dev.rb:3:in `<top (required)>'
	 2: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
	 1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/var/lib/gems/2.5.0/gems/i2c-devices-0.0.6/lib/i2c/driver.rb:5:in `<top (required)>': uninitialized constant I2CDevice (NameError)
@CleoQc
Copy link
Member

CleoQc commented Nov 5, 2020

We're sorry. Ruby was given to us by the community.
We don't have anyone on staff that would be Ruby knowledgeable.

We'll have to trust the community for this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants