pi2003
July 22, 2016, 7:35pm
1
I am following the explorer hat shift register leaning portal article and when running this command curl https://get.pimoroni.com/getstarted | bash
it tells me I need to run sudo./i2c.py or something about root user. If i continue with learning portal article the script doesn’t work. This is the only install with an error message so I assumed it was the problem.
Thanks
Will
RogueM
July 22, 2016, 8:20pm
2
I assume you are talking about this:
http://learn.pimoroni.com/tutorial/sandyj/explorer-hat-shift-register
if so, that article is a bit out of date… if the problem is:
curl https://get.pimoroni.com/i2c | bash
sudo apt-get install python-smbus
git clone https://github.com/sandyjmacdonald/explorer-hat.git
cd explorer-hat/library
sudo python setup.py install
you can replace all of that with just:
curl https://get.pimoroni.com/explorerhat | bash
let me know if it’s something else in this article that causes you trouble.
RogueM
July 22, 2016, 9:04pm
3
ah, I am mistaken, @sandyjmacdonald ShiftRegister class has not made it into the main repo.
still, the issue is mostly that the i2c script can’t be called like that directly at this point, but you can do:
curl get.pimoroni.com/i2c | sudo bash
so, passing the script downloaded using curl to bash but with elevated privileges, hence the extra ‘sudo’.
pi2003
July 23, 2016, 8:14am
4
Ah great thanks for the work I didn’t know where to put the sudo?
Thanks
Will
Download Email (https://itunes.apple.com/app/apple-store/id922793622?pt=814382&mt=8&ct=download_email )