[Solved] GoPiGo3 Update was failing

I was unable to successfully run the desktop DI Software Update, and the update command also:

pi@Carl:~ $ sudo curl -kL dexterindustries.com/upgate_gopigo3 | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   178  100   178    0     0   1185      0 --:--:-- --:--:-- --:--:--  1194
100   178  100   178    0     0    622      0 --:--:-- --:--:-- --:--:--   622
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: `<!DOCTYPE html>'
 33 96012   33 32032    0     0  48757      0  0:00:01 --:--:--  0:00:01 48757
curl: (23) Failed writing body (534 != 16182)

I rebooted, ran ~/Dexter/update_master.sh

Check for internet connectivity...
==================================
Connected.  Do not close this window!
Cloning into 'Raspbian_For_Robots'...
remote: Enumerating objects: 259, done.
remote: Counting objects: 100% (259/259), done.
remote: Compressing objects: 100% (246/246), done.
remote: Total 259 (delta 8), reused 186 (delta 4), pack-reused 0
Receiving objects: 100% (259/259), 17.66 MiB | 7.80 MiB/s, done.
Resolving deltas: 100% (8/8), done.
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-psutil is already the newest version (5.0.1-1).
python-wxgtk2.8 is already the newest version (2.8.12.1+dfsg2-2).
python-wxgtk3.0 is already the newest version (3.0.2.0+dfsg-4).
python-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
START UPDATE GUI.
==============================
Script started, file is /home/pi/Desktop/Dexter_Software_Update_log_2019_08_22__12_19_18.txt
xhost:  unable to open display ""
GoPiGo3
write_state: GoPiGo3
Unable to access the X Display, is $DISPLAY set properly?
Script done, file is /home/pi/Desktop/Dexter_Software_Update_log_2019_08_22__12_19_18.txt
To finish any changes, we need to reboot the Pi.
Pi must reboot for changes and updates to take effect.

then I rebooted again and tried the GUI DI Software Update and it ran to UPDATE COMPLETE.

Errors in the log:

byte-compiling build/bdist.linux-armv7l/egg/di_sensors/easy_light_color_sensor.py to easy_light_color_sensor.pyc
  File "build/bdist.linux-armv7l/egg/di_sensors/easy_light_color_sensor.py", line 195
    print (f"Invalid color name: [{color}].")
                                           ^
SyntaxError: invalid syntax

and

modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.14.98-v7+/modules.dep.bin'
modprobe: FATAL: Module ipv6 not found in directory /lib/modules/4.14.98-v7+

I see there’s a typo in this command.

As for the error in the logs about the f string, that may be caused if the version of Python is below 3.6. Is this done on Buster?

Edit: I see you’ve already solved it. What was it?

1 Like

Less than Python3.6: interesting. I’m using 3.5, supposedly for OpenCV compatibility.

Buster? No - R4R Stretch

What was it? Typo - you spotted - wow! Thanks.