Install GoPiGo on my own image?

Where do I find instructions to install the GoPiGo Python on my own image. Note that I am NOT looking for GoPiGo3 instructions (which is the only thing I can find). Also, I am not looking to use a Dexter image. I have an OS image already built that I need GoPiGo added.

I have GoPiGo versions 14.0, 14.5, and 16.9 (total of 10 boards)

Thanks

Hi @wmatchett,

Reading the following README should give you all the required insight.

Thanks you!

Thanks! After running this install the gopigo system was not installed, just the python library. I guess my question wasn’t specific enough. I have Raspian Jesse without any Dexter software installed. I need to install GoPiGo libraries with Python. I only need to run Python, but additional languages are no problem.

Hi @wmatchett,

What do you mean by “gopigo system” ? The install scripts installs you everything that you need and that’s only the gopigo library. What are those other things that you don’t want to have installed? I need more details.

Thank you!

There is nothing I don’t want installed. I just want to ensure that python is available. On my previous images from Dexter there are two folders in /home/pi: lib and GoPiGo. When I ran the install commands above all that was install was lib. I guess I need to know how to get the GoPiGo folder installed?

Hi @wmatchett,

If you use this command

curl -kL dexterindustries.com/update_gopigo | sudo bash

You’ll end up with 2 main directories in the home directory of the pi user: lib and Dexter folders. The GoPiGo repository will be found in Dexter directory once installed.

After you have ran the above command, can you tell us if you end up with that hierarchy of the pi user? You can show us the output of ls.

Thank you!

The ‘pi’ directory was not created:

$ curl -kL [dexterindustries.com/update_gopigo](http://dexterindustries.com/update_gopigo) | sudo bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   178  100   178    0     0   1312      0 --:--:-- --:--:-- --:--:--  1328
100   178  100   178    0     0    743      0 --:--:-- --:--:-- --:--:--   743
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   992  100   992    0     0    807      0  0:00:01  0:00:01 --:--:--   807
bash: line 44: git: command not found
bash: line 50: cd: /home/pi/Dexter/lib/Dexter/script_tools: No such file or directory
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.3).
python-dev is already the newest version (2.7.13-2).
python-dev set to manually installed.
The following additional packages will be installed:
  read-edid
Suggested packages:
  python-smbus
The following NEW packages will be installed:
  i2c-tools libffi-dev libi2c-dev read-edid
0 upgraded, 4 newly installed, 0 to remove and 17 not upgraded.
Need to get 242 kB of archives.
After this operation, 603 kB of additional disk space will be used.
Get:1 [http://raspbian-us.ngc292.space/raspbian](http://raspbian-us.ngc292.space/raspbian) stretch/main armhf libffi-dev armhf 3.2.1-6 [159 kB]
Get:2 [http://raspbian-us.ngc292.space/raspbian](http://raspbian-us.ngc292.space/raspbian) stretch/main armhf read-edid armhf 3.0.2-1 [15.4 kB]
Get:3 [http://raspbian-us.ngc292.space/raspbian](http://raspbian-us.ngc292.space/raspbian) stretch/main armhf i2c-tools armhf 3.1.2-3 [56.7 kB]
Get:4 [http://raspbian-us.ngc292.space/raspbian](http://raspbian-us.ngc292.space/raspbian) stretch/main armhf libi2c-dev all 3.1.2-3 [10.7 kB]
Fetched 242 kB in 1s (168 kB/s)
Selecting previously unselected package libffi-dev:armhf.
(Reading database ... 37022 files and directories currently installed.)
Preparing to unpack .../libffi-dev_3.2.1-6_armhf.deb ...
Unpacking libffi-dev:armhf (3.2.1-6) ...
Selecting previously unselected package read-edid.
Preparing to unpack .../read-edid_3.0.2-1_armhf.deb ...
Unpacking read-edid (3.0.2-1) ...
Selecting previously unselected package i2c-tools.
Preparing to unpack .../i2c-tools_3.1.2-3_armhf.deb ...
Unpacking i2c-tools (3.1.2-3) ...
Selecting previously unselected package libi2c-dev.
Preparing to unpack .../libi2c-dev_3.1.2-3_all.deb ...
Adding 'diversion of /usr/include/linux/i2c-dev.h to /usr/include/linux/i2c-dev.h.kernel by libi2c-dev'
Unpacking libi2c-dev (3.1.2-3) ...
Setting up read-edid (3.0.2-1) ...
Setting up i2c-tools (3.1.2-3) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ...
Setting up libi2c-dev (3.1.2-3) ...
Setting up libffi-dev:armhf (3.2.1-6) ...
Processing triggers for man-db (2.7.6.1-2) ...
python: can't open file 'setup.py': [Errno 2] No such file or directory
python3: can't open file 'setup.py': [Errno 2] No such file or directory
bash: line 8: /home/pi/Dexter/lib/Dexter/script_tools/functions_library.sh: No such file or directory
bash: line 12: folder_exists: command not found
bash: line 20: git: command not found
bash: line 21: cd: /home/pi/Dexter/GoPiGo: No such file or directory
bash: line 23: change_branch: command not found
bash: line 25: pushd: /home/pi/Dexter/GoPiGo/Setup: No such file or directory
bash: line 26: feedback: command not found
bash: line 27: feedback: command not found
bash: ./install.sh: No such file or directory
bash: line 29: popd: directory stack empty
:~ $ ls -ltr
total 4
drwxr-xr-x 3 root root 4096 Apr 23 12:17 Dexter

Hi @wmatchett,

When there are so many errors, most likely there’s something small that’s being missed out (like something obvious).

Also, please tell us if you somehow ran curl -kL [dexterindustries.com/update_gopigo](http://dexterindustries.com/update_gopigo) | sudo bash, because that’s what I can see in your message.
It’s not supposed to be that way, but this way:

curl -kL http://dexterindustries.com/update_gopigo | sudo bash

Waiting for a reply from you.

Thank you!

Sorry about that. You are seeing the converted text after gmail converted the pasted text because the it contained a url. Gmail it converted it into a clickable link. Below is the same text that I forced gmail not to convert. It appears to me that in line 7 of the output the script is trying to run ‘git’ and it fails. I don’t think git is installed by default on the jessie image. I will install it and re-run.

curl -kL [dexterindustries.com/update_](http://dexterindustries.com/update_)gopigo | sudo bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 178 100 178 0 0 1312 0 --:--:-- --:--:-- --:--:-- 1328 100 178 100 178 0 0 743 0 --:--:-- --:--:-- --:--:-- 743 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 992 100 992 0 0 807 0 0:00:01 0:00:01 --:--:-- 807 bash: line 44: git: command not found bash: line 50: cd: /home/pi/Dexter/lib/Dexter/script_tools: No such file or directory Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.3). python-dev is already the newest version (2.7.13-2). python-dev set to manually installed. The following additional packages will be installed: read-edid Suggested packages: python-smbus The following NEW packages will be installed: i2c-tools libffi-dev libi2c-dev read-edid 0 upgraded, 4 newly installed, 0 to remove and 17 not upgraded. Need to get 242 kB of archives. After this operation, 603 kB of additional disk space will be used. Get:1 [http://raspbian-us.ngc292](http://raspbian-us.ngc292).space/raspbian stretch/main armhf libffi-dev armhf 3.2.1-6 [159 kB] Get:2 [http://raspbian-us.ngc292](http://raspbian-us.ngc292).space/raspbian stretch/main armhf read-edid armhf 3.0.2-1 [15.4 kB] Get:3 [http://raspbian-us.ngc292](http://raspbian-us.ngc292).space/raspbian stretch/main armhf i2c-tools armhf 3.1.2-3 [56.7 kB] Get:4 [http://raspbian-us.ngc292](http://raspbian-us.ngc292).space/raspbian stretch/main armhf libi2c-dev all 3.1.2-3 [10.7 kB] Fetched 242 kB in 1s (168 kB/s) Selecting previously unselected package libffi-dev:armhf. (Reading database ... 37022 files and directories currently installed.) Preparing to unpack .../libffi-dev_3.2.1-6_armhf.deb ... Unpacking libffi-dev:armhf (3.2.1-6) ... Selecting previously unselected package read-edid. Preparing to unpack .../read-edid_3.0.2-1_armhf.deb ... Unpacking read-edid (3.0.2-1) ... Selecting previously unselected package i2c-tools. Preparing to unpack .../i2c-tools_3.1.2-3_armhf.deb ... Unpacking i2c-tools (3.1.2-3) ... Selecting previously unselected package libi2c-dev. Preparing to unpack .../libi2c-dev_3.1.2-3_all.deb ... Adding 'diversion of /usr/include/linux/i2c-dev.h to /usr/include/linux/i2c-dev.h.kernel by libi2c-dev' Unpacking libi2c-dev (3.1.2-3) ... Setting up read-edid (3.0.2-1) ... Setting up i2c-tools (3.1.2-3) ... Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ... Setting up libi2c-dev (3.1.2-3) ... Setting up libffi-dev:armhf (3.2.1-6) ... Processing triggers for man-db (2.7.6.1-2) ... python: can't open file 'setup.py': [Errno 2] No such file or directory python3: can't open file 'setup.py': [Errno 2] No such file or directory bash: line 8: /home/pi/Dexter/lib/Dexter/script_tools/functions_library.sh: No such file or directory bash: line 12: folder_exists: command not found bash: line 20: git: command not found bash: line 21: cd: /home/pi/Dexter/GoPiGo: No such file or directory bash: line 23: change_branch: command not found bash: line 25: pushd: /home/pi/Dexter/GoPiGo/Setup: No such file or directory bash: line 26: feedback: command not found bash: line 27: feedback: command not found bash: ./install.sh: No such file or directory bash: line 29: popd: directory stack empty ls -ltr
total 4
drwxr-xr-x 3 root root 4096 Apr 23 12:17 Dexter

Ok, having git install improved things a lot - things are running fine. This solved it.

Thanks for your help.

@wmatchett,
I’m glad that you were able to figure it out! Are you using full Jessie or Jessie light?
Git is installed on full Jessie, but it’s possible the Raspberry Pi Foundation took out of Jessie Light since last time we checked.

Cleo.

Yes, it is Jessie Light. I forgot that version was chosen.

Hi @wmatchett,

The GoPiGo is going through a series of small changes that will fix whatever issue you have (in this case, it didn’t know how to throw an error on git not being installed).

Which by the way, did installing git fix your issue altogether?

Thank you!

Yes, after installing git and rerunning the GoPiGo install command everything is working.

Thanks again for all the help. We use these in a programming class and the students log into the pi by authenticating to an Active Directory server. This defined the baseline OS image required. I had attempted several different methods to add the authentication to the Dexter image but could not get it to work. Dropping back and using the Jessie image, which I already had working with AD, was my last resort. I am very relieved that it worked.

Hi @wmatchett,

I’m glad you have it up and running.

Just to give you a quick insight, we’re developing the support for Stretch for all of our suite of products for Raspbian for Robots and the very near future we are going to release it. At some point we’re going to make an announcement.

Thank you!