hybridgroup / artoo-raspi

Artoo adaptor for the Raspberry Pi
http://artoo.io
Other
33 stars 2 forks source link

Pi Rails Load error: cannot load such file -- lib/artoo/adaptors/raspi #8

Open cvbh opened 9 years ago

cvbh commented 9 years ago

I have a pi running raspbian, ruby 2.2.2 and Rails 4.2.3 I have artoo-raspi installed and can run code that reads thermo and switches leds from the consol. ruby raspi_therm.rb does just what i expect reading and writing to pi pins. When i try to do the same thing from within Rails Bundler installs with out error and lists the gems artoo 1.8.1 artoo-gpio 0.4.1 artoo-i2c 0.5.0 artoo-raspi 0.6.0

Starting rails s results in Load error: require cannot load such file -- lib/artoo/adaptors/raspi Looking at the path in the message i can see artoo-raspi.rb which requires lib/artoo/adaptors/raspi on line one and i can also see lib/artoo/adaptors/raspi.rb

Any ideas about what is going on? Cheers Chris

Hibati commented 8 years ago

use rails 4.0 and ruby 2.1.5

deadprogram commented 8 years ago

This issues has been fixed in https://github.com/hybridgroup/artoo-raspi/pull/9

I will get a new release out very soon.

cvbh commented 8 years ago

THX DP look forward to it

deadprogram commented 8 years ago

OK, released. Please give the new version 0.6.1 a try.

cvbh commented 8 years ago

I'm off on a bit of a trip in another direction but i will check it when i can Cheers Chris