These are chat archives for nightscout/intend-to-bolus

28th
Aug 2016
Brandon Faloona
@bfaloona
Aug 28 2016 00:09
That looks encouraging.
garykidd
@garykidd
Aug 28 2016 00:18
@bfaloona it does..or it did until I......
pi@raspberrypi:~/APS0 $ pip install -U setuptools
-bash: /usr/bin/pip: /usr/bin/python: bad interpreter: No such file or directory
=============================
wtf?
Paul Martin
@Spazholio
Aug 28 2016 00:30
What does python -V return? I suspect I know already, but...
garykidd
@garykidd
Aug 28 2016 00:39
hmmmm..
pi@raspberrypi:~ $ python -v
-bash: python: command not found
Martin Haeberli
@mhaeberli
Aug 28 2016 00:46
And - which python ?
Probably also blank ...
garykidd
@garykidd
Aug 28 2016 00:47
nothing came back....
pi@raspberrypi:~ $ which python
pi@raspberrypi:~ $
==============================================
Should i just try to re-install jesse and start completely over.
?
===============================================
Martin Haeberli
@mhaeberli
Aug 28 2016 00:50
Before you go that far - one more thing to try ...
garykidd
@garykidd
Aug 28 2016 00:51
.....love to....thx
Martin Haeberli
@mhaeberli
Aug 28 2016 00:51
sudo apt-get install python
On a wing and a prayer ...
Paul Martin
@Spazholio
Aug 28 2016 00:52
Yeah, seems like your python got uninstalled somehow.
garykidd
@garykidd
Aug 28 2016 00:53
pi@raspberrypi:~ $ sudo apt-get install pytho
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pytho
+++++++++++++++++++++++++++++++++++++++++++++
pi@raspberrypi:~ $ sudo apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version.
The following packages were automatically installed and are no longer required:
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal
libroken18-heimdal libwind0-heimdal libxfce4ui-1-0 xfce-keyboard-shortcuts
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
pi@raspberrypi:~ $ which python
pi@raspberrypi:~ $
pi@raspberrypi:~ $ python -v
-bash: python: command not found
pi@raspberrypi:~ $
+++++++++++++++++++++++++++++++++++++++++
garykidd
@garykidd
Aug 28 2016 00:58
....and wait...the python is on my imac not my pi ....right?
===================================================
need major help now.....
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal
libroken18-heimdal libwind0-heimdal libxfce4ui-1-0 xfce-keyboard-shortcuts
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 10 not upgraded.
Need to get 151 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main python armhf 2.7.9-1 [151 kB]
Fetched 151 kB in 0s (225 kB/s)
(Reading database ... 121743 files and directories currently installed.)
Preparing to unpack .../python_2.7.9-1_armhf.deb ...
Unpacking python (2.7.9-1) over (2.7.9-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up python (2.7.9-1) ...
pi@raspberrypi:~ $ python -v
-bash: python: command not found
pi@raspberrypi:~ $
garykidd
@garykidd
Aug 28 2016 01:05
==============================================
You know...I will pay for help now...desparate.
Scott Leibrand
@scottleibrand
Aug 28 2016 01:11
This message was deleted
This message was deleted
This message was deleted
nevermind, you did it right afterward
try echo $PATH
garykidd
@garykidd
Aug 28 2016 01:16
pi@raspberrypi:/ $ echo $PATH
/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
Scott Leibrand
@scottleibrand
Aug 28 2016 01:17
heh: :/ how appropriate
garykidd
@garykidd
Aug 28 2016 01:18
funny---not sure how that happended
but tru.
Scott Leibrand
@scottleibrand
Aug 28 2016 01:18
you're in the / directory, and it displays the current dir after the :
ls /usr/bin/python
garykidd
@garykidd
Aug 28 2016 01:19
pi@raspberrypi:/ $ ls /usr/bin/python
/usr/bin/python
pi@raspberrypi:/ $ ls
bin boot dev etc home lib lost+found media mnt opt proc root run sbin srv sys tmp usr var
pi@raspberrypi:/ $
Scott Leibrand
@scottleibrand
Aug 28 2016 01:19
which python
garykidd
@garykidd
Aug 28 2016 01:20
pi@raspberrypi:/ $ which python
pi@raspberrypi:/ $ python -v
-bash: python: command not found
pi@raspberrypi:/ $
Scott Leibrand
@scottleibrand
Aug 28 2016 01:20
that's bizarre
try a reboot
garykidd
@garykidd
Aug 28 2016 01:20
thx
brb
Scott Leibrand
@scottleibrand
Aug 28 2016 01:21
(of the pi)
just sudo reboot
garykidd
@garykidd
Aug 28 2016 01:21
copy that.
Martin Haeberli
@mhaeberli
Aug 28 2016 01:22
Also another super weird idea @garykidd - @scottleibrand - maybe sudo updatedb followed by sudo locate python assuming locate installed - you may have to sudo apt-get install locate (would help find where python is...)
garykidd
@garykidd
Aug 28 2016 01:23

pi@raspberrypi:/ $ sudo reboot
Connection to raspberrypi.local closed by remote host.
Connection to raspberrypi.local closed.
iMac:~ g$ ssh pi@raspberrypi.local

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Aug 27 21:21:32 2016
pi@raspberrypi:~ $ python -v
-bash: python: command not found
pi@raspberrypi:~ $ sudo reboot
Connection to raspberrypi.local closed by remote host.
Connection to raspberrypi.local closed.
iMac:~ g$ ssh pi@raspberrypi.local

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Aug 27 21:22:25 2016
pi@raspberrypi:~ $ which python
pi@raspberrypi:~ $


pi@raspberrypi:~ $ sudo updatedb
sudo: updatedb: command not found
==============================
pi@raspberrypi:~ $ sudo apt-get install locate
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal
libroken18-heimdal libwind0-heimdal libxfce4ui-1-0 xfce-keyboard-shortcuts
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
locate
0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 140 kB of archives.
After this operation, 220 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main locate armhf 4.4.2-9 [140 kB]
Fetched 140 kB in 0s (180 kB/s)
Selecting previously unselected package locate.
(Reading database ... 121743 files and directories currently installed.)
Preparing to unpack .../locate_4.4.2-9_armhf.deb ...
Unpacking locate (4.4.2-9) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up locate (4.4.2-9) ...
#
pi@raspberrypi:~ $ sudo locate python
pi@raspberrypi:~ $

how could I try to completely remove python and then reinstall?
Martin Haeberli
@mhaeberli
Aug 28 2016 01:32
At this point I'm kinda in the darn it all, just re - install jesse crowd ..
garykidd
@garykidd
Aug 28 2016 01:35
@scottleibrand Do you agree too?
is there a relatively easy way to reinstall jesse from terminal?
Dana Lewis
@danamlewis
Aug 28 2016 01:36
If reboot didn't work, then yea
And you'll have to reflash the SD card
If you want terminal based, then sudo apt-get install --reinstall python
garykidd
@garykidd
Aug 28 2016 01:39
@danamlewis OK thx
I'm pretty sure I tried the re-intall python from terminal and it worked but it didnt.
Dana Lewis
@danamlewis
Aug 28 2016 01:40
Yea. Try one more time after reboot, and then if that fails the reflashing is the next step
garykidd
@garykidd
Aug 28 2016 01:40
yup...
Dana Lewis
@danamlewis
Aug 28 2016 01:40
Maybe the 3rd or 4th time is charm? Who knows.
garykidd
@garykidd
Aug 28 2016 01:40
pi@raspberrypi:/ $ sudo apt-get install --reinstall python
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal
libroken18-heimdal libwind0-heimdal libxfce4ui-1-0 xfce-keyboard-shortcuts
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 10 not upgraded.
Need to get 0 B/151 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 121759 files and directories currently installed.)
Preparing to unpack .../python_2.7.9-1_armhf.deb ...
Unpacking python (2.7.9-1) over (2.7.9-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up python (2.7.9-1) ...
pi@raspberrypi:/ $
======================
I dont even want to try version....
========================
pi@raspberrypi:/ $ which python
pi@raspberrypi:/ $ python -v
-bash: python: command not found
pi@raspberrypi:/ $
=========================
86
Dana Lewis
@danamlewis
Aug 28 2016 01:42
Do ls -la (whatever the path to Python was)
garykidd
@garykidd
Aug 28 2016 01:43
I dont even know what the path was
Dana Lewis
@danamlewis
Aug 28 2016 01:43
Scroll up from earlier where Scott suggested ls Python
Scott Leibrand
@scottleibrand
Aug 28 2016 01:45
ls -la /usr/bin/python
Seems it might have lost its executable bit?
Not sure why reinstall didn't fix that though.
garykidd
@garykidd
Aug 28 2016 01:46
pi@raspberrypi:/ $ ls -la /usr/bin/python
lrwxrwxrwx 1 root root 18 Aug 27 21:03 /usr/bin/python -> /usr/bin/python2.7
Paul Martin
@Spazholio
Aug 28 2016 01:46
What happens with /usr/bin/python -V ?
Scott Leibrand
@scottleibrand
Aug 28 2016 01:47
ls -la /usr/bin/python2.7
garykidd
@garykidd
Aug 28 2016 01:47
pi@raspberrypi:/ $ /usr/bin/python -V
-bash: /usr/bin/python: No such file or directory
pi@raspberrypi:/ $ ls -la /usr/bin/python2.7
ls: cannot access /usr/bin/python2.7: No such file or directory
=========================
Scott Leibrand
@scottleibrand
Aug 28 2016 01:48
sudo apt-get purge python
garykidd
@garykidd
Aug 28 2016 01:48
is anyone else runnign same python.....
Scott Leibrand
@scottleibrand
Aug 28 2016 01:48
then
garykidd
@garykidd
Aug 28 2016 01:48
wonder if I can paste over manually?
Scott Leibrand
@scottleibrand
Aug 28 2016 01:48
sudo apt-get install python
No, if apt doesn't install it right, it won't work.
garykidd
@garykidd
Aug 28 2016 01:49
pi@raspberrypi:/ $ sudo apt-get install python
Reading package lists... Done
Building dependency tree
Reading state information... Done
python is already the newest version.
The following packages were automatically installed and are no longer required:
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal
libroken18-heimdal libwind0-heimdal libxfce4ui-1-0 xfce-keyboard-shortcuts
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
pi@raspberrypi:/ $ python -v
-bash: python: command not found
pi@raspberrypi:/ $
====================================
if installing python didn't work...and installing didn't work...and upgrading didn't work....
wh not sudo uninstall and then fresh sudo install?
actually...I might have tried that already
Paul Martin
@Spazholio
Aug 28 2016 01:51
Can you do a sudo apt-get install python2.7?
Wondering if python is a meta package...
Scott Leibrand
@scottleibrand
Aug 28 2016 01:52
sudo apt-get purge python python2.7
garykidd
@garykidd
Aug 28 2016 01:52
pi@raspberrypi:/ $ sudo apt-get install python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.7 is already the newest version.
python2.7 set to manually installed.
The following packages were automatically installed and are no longer required:
libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libkrb5-26-heimdal
libroken18-heimdal libwind0-heimdal libxfce4ui-1-0 xfce-keyboard-shortcuts
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
pi@raspberrypi:/ $ python -v
-bash: python: command not found
Scott Leibrand
@scottleibrand
Aug 28 2016 01:52
sudo apt-get install python
you haven't purged yet
Paul Martin
@Spazholio
Aug 28 2016 01:53
Yeah, do the purge first. This is definitely peculiar though.
Scott Leibrand
@scottleibrand
Aug 28 2016 01:53
purge = complete uninstall
garykidd
@garykidd
Aug 28 2016 01:53
OK that looked promising...
then....
sudo apt-get install python2.7
?
Paul Martin
@Spazholio
Aug 28 2016 01:54
Yep.
Wait, if you purged both python and python2.7 then install the same.
garykidd
@garykidd
Aug 28 2016 01:55
pi@raspberrypi:/ $ sudo apt-get install python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2.7 is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
jackd : Depends: jackd2 but it is not going to be installed or
jackd1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Scott Leibrand
@scottleibrand
Aug 28 2016 01:55
pretty sure you got python2.7 along with python. check the ls and which stuff again?
you can also try the sudo apt-get -f install it recommends
if none of this works, then I don't know what kind of screwy install you have here, and would start from a freshly imaged SD card, or a known working backup
garykidd
@garykidd
Aug 28 2016 01:57
meaning..... sudo apt-get install python python2.7
?
Scott Leibrand
@scottleibrand
Aug 28 2016 01:57
you already did that
you haven't tried sudo apt-get -f install yet
Paul Martin
@Spazholio
Aug 28 2016 01:58
Ok, run these: sudo apt-get purge python python2.7 and then sudo apt-get install -f python python2.7
Scott Leibrand
@scottleibrand
Aug 28 2016 01:58
and you should check if anything you just did fixed the which python problem, or fixed ls -la /usr/bin/python2.7
Paul Martin
@Spazholio
Aug 28 2016 01:58
Rip ‘em all out, then put ‘em all back. The -f means force.
Scott Leibrand
@scottleibrand
Aug 28 2016 01:58
@Spazholio his apt-get outpus is also suggesting to "Try 'apt-get -f install' with no packages"
to fix jackd, whatever the heck that is
garykidd
@garykidd
Aug 28 2016 01:59
and maybe it doesnt matter but I sudo apt-get install python2.7 and not sudo apt-get install python python2.7
Paul Martin
@Spazholio
Aug 28 2016 01:59
Yeah, I saw that but forgot about that message.
Scott Leibrand
@scottleibrand
Aug 28 2016 01:59
not sure who gave his Pi a Jack Daniels, but that might be the issue. ;-)
Paul Martin
@Spazholio
Aug 28 2016 01:59
HAH
garykidd
@garykidd
Aug 28 2016 01:59
I think it justmeans that I got jacked.
Paul Martin
@Spazholio
Aug 28 2016 01:59
@garykidd I’d suggest doing both python and python2.7.
Also, try the sudo apt-get -f install by itself like the error message suggested. Honestly, I’ve never tried running that without a package name though. Interesting suggestion.
garykidd
@garykidd
Aug 28 2016 02:00
or maybe I dont know jack[ed] [sh#t]
Scott Leibrand
@scottleibrand
Aug 28 2016 02:03
@Spazholio that suggestion only comes up when there are unresolved dependencies
and it does usually seem to fix them
garykidd
@garykidd
Aug 28 2016 02:03
I could use a JD.
Paul Martin
@Spazholio
Aug 28 2016 02:03
Well, that certainly seems to be the situation we’re in here. Yeesh.
@garykidd What happens when you run sudo apt-get -f install?
garykidd
@garykidd
Aug 28 2016 02:04
I think iot looked great.
but.
pi@raspberrypi:/ $ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
javascript-common libasn1-8-heimdal libboost-atomic1.55.0 libboost-filesystem1.55.0 libboost-program-options1.55.0 libboost-regex1.55.0
libboost-thread1.55.0 libcdio-cdda1 libcdio-paranoia1 libcdio13 libcwiid1 libfftw3-single3 libgd3 libgoa-1.0-0b libgoa-1.0-common libgphoto2-6
libgphoto2-port10 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libimobiledevice4 libjs-jquery
libjs-node-uuid libjs-prettify libjs-underscore libkrb5-26-heimdal libmtp-common libmtp9 libplist2 libqscintilla2-11 libqscintilla2-l10n libqt4-network
libqt4-xmlpatterns libqtwebkit4 libroken18-heimdal libruby1.9.1 libruby1.9.1-dbg libruby2.1 libscsynth1 libtcltk-ruby1.9.1 libusbmuxd2 libwind0-heimdal
libxfce4ui-1-0 libyaml-0-2 node-abbrev node-ansi node-ansi-color-table node-archy node-async node-block-stream node-combined-stream node-cookie-jar
node-delayed-stream node-forever-agent node-form-data node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-inherits
node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt
node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read node-read-package-json node-request node-retry node-rimraf node-semver
node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore node-which ri1.9.1 ruby ruby1.9.1 ruby1.9.1-dev ruby1.9.1-examples
ruby1.9.1-full ruby1.9.3 ruby2.1 rubygems-integration supercollider supercollider-common supercollider-ide supercollider-language supercollider-server
supercollider-supernova xfce-keyboard-shortcuts
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
gconf2 jackd2
Suggested packages:
gconf-defaults-service jack-tools meterbridge
The following NEW packages will be installed:
gconf2 jackd2
0 upgraded, 2 newly installed, 0 to remove and 10 not upgraded.
3 not fully installed or removed.
Need to get 921 kB of archives.
After this operation, 1,988 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main gconf2 armhf 3.2.6-3 [419 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main libgksu2-0 armhf 2.0.13~pre1-8 [93.1 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main jackd2 armhf 1.9.10+20140719git3eb0ae6a~dfsg-2 [409 kB]
Fetched 921 kB in 11s (78.8 kB/s)
Preconfiguring packages ...
Selecting previously unselected package gconf2.
(Reading database ... 117340 files and directories currently installed.)
Preparing to unpack .../gconf2_3.2.6-3_armhf.deb ...
Unpacking gconf2 (3.2.6-3) ...
Selecting previously unselected package jackd2.
Preparing to unpack .../jackd2_1.9.10+20140719git3eb0ae6a~dfsg-2_armhf.deb ...
Unpacking jackd2 (1.9.10+20140719git3eb0ae6a~dfsg-2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up alacarte (3.11.91-2+rpi2) ...
/var/lib/dpkg/info/alacarte.postinst: 6: /var/lib/dpkg/info/alacarte.postinst: pycompile: not found
dpkg: error processing package alacarte (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up gyp (0.1~svn1729-3) ...
/var/lib/dpkg/info/gyp.postinst: 6: /var/lib/dpkg/info/gyp.postinst: pycompile: not found
dpkg: error processing package gyp (--configure):
subprocess installed post-installation script returned error exit status 127
Setting up gconf2 (3.2.6-3) ...
/var/lib/dpkg/info/gconf2.postinst: 45: /var
Paul Martin
@Spazholio
Aug 28 2016 02:05
Oof.
Alright….
garykidd
@garykidd
Aug 28 2016 02:06
pi@raspberrypi:/ $ python -v
-bash: python: command not found
Paul Martin
@Spazholio
Aug 28 2016 02:06
Run sudo apt-get purge python python2.7
Then run sudo apt-get install -f python python2.7
I don’t know if the -f is needed there, but it stands for force and I’m thinking your install needs some aggression.
garykidd
@garykidd
Aug 28 2016 02:08
pi@raspberrypi:/ $ sudo apt-get purge python python2.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
fonts-roboto gconf-service gconf2-common gir1.2-atk-1.0 gir1.2-freedesktop gir1.2-gdkpixbuf-2.0 gir1.2-gmenu-3.0 gir1.2-gtk-3.0 gir1.2-pango-1.0
gnome-menus gtk2-engines-clearlookspix javascript-common libasn1-8-heimdal libboost-atomic1.55.0 libboost-filesystem1.55.0 libboost-program-options1.55.0
libboost-regex1.55.0 libboost-thread1.55.0 libc-ares-dev libcdio-cdda1 libcdio-paranoia1 libcdio13 libcwiid1 libfftw3-single3 libgconf-2-4 libgd3
libgnome-keyring-common libgnome-keyring0 libgnome-menu-3-0 libgoa-1.0-0b libgoa-1.0-common libgphoto2-6 libgphoto2-port10 libgssapi3-heimdal libgtop2-7
libgtop2-common libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libimobiledevice4 libjs-jquery libjs-node-uuid
libjs-prettify libjs-underscore libkrb5-26-heimdal libldb1 libmtp-common libmtp9 libntdb1 libplist2 libqscintilla2-11 libqscintilla2-l10n libqt4-network
libqt4-xmlpatterns libqtwebkit4 libroken18-heimdal librtimulib-dev librtimulib-utils librtimulib7 libruby1.9.1 libruby1.9.1-dbg libruby2.1 libscsynth1
libssh-4 libssl-dev libssl-doc libtcltk-ruby1.9.1 libtevent0 libusbmuxd2 libv8-3.14-dev libwebpdemux1 libwebpmux1 libwind0-heimdal libxfce4ui-1-0
libxfce4util-bin libxfce4util-common libxfce4util6 libxfconf-0-2 libyaml-0-2 node-abbrev node-ansi node-ansi-color-table node-archy node-async
node-block-stream node-combined-stream node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fstream node-fstream-ignore
node-github-url-from-git node-glob node-graceful-fs node-inherits node-ini node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch
node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-qs node-read
node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-sigmund node-slide node-tar node-tunnel-agent node-underscore
node-which pimixer python-rtimulib python3-pil python3-rtimulib python3-sense-hat ri1.9.1 ruby ruby1.9.1 ruby1.9.1-dev ruby1.9.1-examples ruby1.9.1-full
ruby1.9.3 ruby2.1 rubygems-integration supercollider supercollider-common supercollider-ide supercollider-language supercollider-server
supercollider-supernova xfce-keyboard-shortcuts xfconf
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
jackd1 libjack0 libzita-alsa-pcmi0 libzita-resampler1
Suggested packages:
jack-tools meterbridge
The following packages will be REMOVED:
alacarte gconf2 gyp jackd2 libgksu2-0 libjack-jackd2-0 libsmbclient lsb-release lxde lxde-common lxde-core lxkeymap lxsession minecraft-pi
nodejs-dev
nodered omxplayer pipanel python python-apt python-cairo python-chardet python-colorama python-dbus python-dev python-distlib
python-gi
python-gobject python-gobject-2 python-gpiozero python-gtk2 python-html5lib python-minecraftpi python-ndg-httpsclient python-numpy
python-openssl python-picamera python-pifacecommon python-pifacedigitalio python-pil python-pip python-pkg-resources python-pyasn1 python-pygame
python-requests
python-rpi.gpio python-sense-hat python-serial python-setuptools python-six python-software-properties python-spidev
python-support
python-talloc python-tk python-urllib3 python-wheel python-xklavier python2.7 python2.7-dev python3-minecraftpi
raspberrypi-net-mods raspberrypi-ui-mods rc-gui samba-libs sense-hat unattended-upgrades
The following NEW packages will be installed:
jackd1 libjack0 libzita-alsa-pcmi0 libzita-resampler1
0 upgraded, 4 newly installed, 67 to remove and 9 not upgraded.
4 not fully installed or removed.
Need to get 0 B/325 kB of archives.
After this operation, 75.2 MB disk space will be freed.
Do you want to continue?
Paul Martin
@Spazholio
Aug 28 2016 02:08
Do it up.
It’s gonna remove quite a few python-related packages, which you may have to reinstall, but we’re in the weeds here. =)
garykidd
@garykidd
Aug 28 2016 02:09
Do you want to continue? [Y/n] y
(Reading database ... 117452 files and directories currently installed.)
Removing libgksu2-0 (2.0.13~pre1-8) ...
/var/lib/dpkg/info/libgksu2-0.postrm: 20: /var/lib/dpkg/info/libgksu2-0.postrm: update-gconf-defaults: not found
dpkg: error processing package libgksu2-0 (--remove):
subprocess installed post-removal script returned error exit status 127
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Errors were encountered while processing:
libgksu2-0
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:/ $
maybe reboot now?
Paul Martin
@Spazholio
Aug 28 2016 02:10
…I’m really worried that it might not come back, honestly.
You may very well need an old priest and a young priest.
garykidd
@garykidd
Aug 28 2016 02:10
hmmmm....
Do you think it has anything to do with the fact I dropped it in saltwater bath to cool off ...
or maybe the magnet I sued to stick the sd card to the fridge so I could find it later?
garykidd
@garykidd
Aug 28 2016 02:15
@Spazholio @scottleibrand @danamlewis @mhaeberli @MitchDex @bewest
Scott Leibrand
@scottleibrand
Aug 28 2016 02:16
@garykidd at this point I would start over
garykidd
@garykidd
Aug 28 2016 02:16
Thanks for helping dealing with me/my situation
I appreciate your continued help.
Dana Lewis
@danamlewis
Aug 28 2016 02:16
:+1:
garykidd
@garykidd
Aug 28 2016 02:16
Starting over...
but not giving up...
Martin Haeberli
@mhaeberli
Aug 28 2016 02:17
:+1: glad to hear you're hanging in there
garykidd
@garykidd
Aug 28 2016 02:17
since the last hour or so was about a problem that's not likley to be incredibly helpful for others...should I delete my posts?
Dana Lewis
@danamlewis
Aug 28 2016 02:19
Don't delete, they might help someone else in future
Paul Martin
@Spazholio
Aug 28 2016 02:24
:thumbsup:
John Kelleher
@jkelleher
Aug 28 2016 11:16
Hi all, putting a toe into #openaps. Daughter (16), 6 y dx'd on 640G and Enlite CGM (Guardian 2 Link Transmitter). Comfortable with soft dev & IoT work. Question - from my reading, 640G+OpenAPS not yet there. Have old Veo with suitable firmware, have Carelink USB stick but reckon the Guardian 2 Link Transmitter won't play nice with this Veo so am I stuck before I start?
andyhandy
@andyhandy
Aug 28 2016 12:25
Hi all - I'm up to the Nightscout integration part of the setup and am getting some weird errors - anyone able to help?? (apologies for the data dump)

pi@raspberrypi:~/myopenaps $ openaps do-everything
PREFLIGHT
PREFLIGHT OK
cgm://JSON/oref0_glucose/raw-cgm/glucose-raw.json
reporting raw-cgm/glucose-raw.json
tz://JSON/rezone/monitor/glucose.json
reporting monitor/glucose.json
pump://JSON/read_temp_basal/monitor/temp-basal-status.json
reporting monitor/temp-basal-status.json
pump://JSON/reservoir/monitor/reservoir.json
reporting monitor/reservoir.json
pump://JSON/read_status/monitor/status.json
reporting monitor/status.json
pump://JSON/read_battery_status/monitor/battery.json
reporting monitor/battery.json
pump://JSON/iter_pump_hours/raw-pump/pump-history-raw.json
reporting raw-pump/pump-history-raw.json
tz://JSON/rezone/monitor/pump-history.json
reporting monitor/pump-history.json
pump://JSON/read_bg_targets/raw-pump/bg-targets-raw.json
reporting raw-pump/bg-targets-raw.json
Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 743, in run_script
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 1531, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 23, in main
device = app.devices[report.fields['device']]
KeyError: 'units'
ns://JSON/shell/nightscout/preflight.json
reporting nightscout/preflight.json
ns://JSON/shell/nightscout/recent-treatments.json
No JSON object could be decoded
Unknown request: nightscout/recent-treatments.json
TODO: improve help
openaps use ns shell get entries.json 'count=10'
openaps use ns shell upload treatments.json recently/combined-treatments.json

-h This message.
get type args Get records of type from
Nightscout matching args.

upload endpoint file Upload a file to the Nightscout endpoint.
latest-treatment-time - get latest treatment time from Nightscout
format-recent-history-treatments history model - Formats medtronic pump
history and model into
Nightscout compatible
treatments.

format-recent-type ZONE type file - Selects elements from the
file where the elements would
satisfy a gap in the last 1000
Nightscout records.

upload-non-empty-treatments file - Upload a non empty treatments
file to Nightscout.
lsgaps tz entries - Re-use openaps timezone device
to find gaps in a type (entries)
by default.
upload-non-empty-type type file
status - Retrieve status
preflight - NS preflight

Traceback (most recent call last):
File "/usr/local/bin/openaps-report", line 4, in <module>
import('pkg_resources').run_script('openaps==0.1.5', 'openaps-report')
File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 743, in run_script

File "build/bdist.linux-armv7l/egg/pkg_resources/init.py", line 1531, in run_script
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
app( )
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/init.py", line 51, in call
self.run(self.args)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
output = app(args, self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/cli/subcommand.py", line 52, in call
return self.method.main(args, app)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/invoke.py", line 48, in main
reporters.Reporter(report, device, task)(output)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 33, in call
self.blob = self.serialize(data)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/reports/reporters/init.py", line 31, in serialize
return self.method.serialize(render(data), self)
File "/usr/local/lib/python2.7/dist-packages/openaps-0.1.5-py2.7.egg/openaps/vendors/process.py", line 56, in prerender_json
return json.loads(data)
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Martin Haeberli
@mhaeberli
Aug 28 2016 13:39
@jkelleher see if @bewest or @jasoncalabrese can connect you with Wes Ton. He just recently interviewed a British team working on 640g Nightscout integration and I think they mentioned OpenAPS
also check out CGM in the Cloud Facebook group, and Nightscout Foundation Facebook group. You'll find Wes over there ... As well as that video.
Scott Leibrand
@scottleibrand
Aug 28 2016 14:46
@jkelleher if you can get you BG data uploaded to Nightscout somehow (which I think is possible with the 640G) you can have your openaps rig download it from there and then set temps on the Veo. Not a great long-term solution, but might give you a way to make progress (and at least test) while you figure out the hardware or wait for folks to improve the 640G communications.
For the latest on 640G, talk to the folks in https://gitter.im/pazaan/decoding-contour-next-link
John Kelleher
@jkelleher
Aug 28 2016 18:21
@mhaeberli @scottleibrand much appreciated. Have (since posting) got Nightscout (almost) working - just need USB dongle for phone. @scottleibrand idea to have #openaps pull from cloud sounds ideal but don't know if the openaps rig can push basal changes to 640G? I'll read...
Colin Lennon
@colinlennon
Aug 28 2016 18:47
Hi @C-Ville @tim2000s (and anyone else interested in getting glucose data from the xDrip Android app into OpenAPS without the need for an internet connection)
Here's the python script I've created to extract glucose data from a mongodb instance running on an OpenAPS rig -
https://gist.github.com/colinlennon/d099e5ff42bc3d074dc89580a012182f
I've been looping successfully for the past two days using this approach, but still need to perform more thorough testing and document this properly. Also need to add authentication.
On an Edison running Yocto, setting up a mongodb instance was surprisingly simple. I will try to document the steps involved properly in the coming week
I'll also try to set up mongodb on a RPi device and document that as well. Great to finally be able to go anywhere without worrying about WiFi hotspots, lack of mobile coverage, etc! :smile:
C-Ville
@C-Ville
Aug 28 2016 18:50
@colinlennon so you have mongodb runnung but not NS on your edison? and your cell phone with Xdrip loads the signal into the mongoDB using the cellphone as WiFi AP?
Colin Lennon
@colinlennon
Aug 28 2016 18:53
@C-Ville yeah, that's correct. I have the xDrip app configured to upload to both NS and my local mongodb instance. It might be possible to run NS locally too, but personally I'm happy to go without that for the occasional periods where I don't have an internet connection.
I'm using oref0-pebble for visualisation when offline, so I can still monitor my loop easily.
I'm using bluetooth tethering, but should work with a personal WiFi hotspot too. You just need a personal network that allows the Android phone running xDrip and the OpenAPS rig to talk to each other.
The command I'm executing in the new OpenAPS device is python /home/root/ella_aps/scripts/xDripAPS.py | json -e 'this.glucose = this.sgv'
(you need to use json to add a glucose field to every stanza)
C-Ville
@C-Ville
Aug 28 2016 19:04
@colinlennon thanks that is great news. I would prefer BT over personal wlan as this drains the battery like grazy but i am using ubilinux, which seems to be more difficult with BT. other than that I was not certain how I could access the edison when using BT tethering to upload data
@colinlennon could you post me a
df -h
from your rig?
Dana Lewis
@danamlewis
Aug 28 2016 19:08
@jkelleher no, we can't send temp basals to a 640, unfortunately
Colin Lennon
@colinlennon
Aug 28 2016 19:08
@C-Ville When using BT tethering, your Edison gets assigned an IP address 192.168.x.x. So in the xDrip app, you can specify e.g. mongodb://192.168.x.x/xdrip in the Mongo DB Uri field
root@ella_aps:~/ella_aps# df -h
Filesystem       Size  Used Avail Use% Mounted on
/dev/root        1.4G  995M  328M  76% /
devtmpfs         480M     0  480M   0% /dev
tmpfs            481M     0  481M   0% /dev/shm
tmpfs            481M  580K  480M   1% /run
tmpfs            481M     0  481M   0% /sys/fs/cgroup
tmpfs            481M   12K  481M   1% /tmp
/dev/mmcblk0p10  1.3G  738M  553M  58% /home
tmpfs            481M   49M  432M  11% /var/volatile
/dev/mmcblk0p5  1003K   19K  913K   3% /factory
tmpfs             97M     0   97M   0% /run/user/0
/dev/loop0       767M  4.0K  767M   1% /media/storage
C-Ville
@C-Ville
Aug 28 2016 19:19
thank you so much
Scott Leibrand
@scottleibrand
Aug 28 2016 19:37
@jkelleher my idea was to use the 640G to get CGM data, but send the temp basals to the older MDT pump. so you'd have to carry both devices whenever you wanted to test with that approach. not ideal, but maybe better than not looping at all
Matthias
@ceben80
Aug 28 2016 19:42
@colinlennon awesome a openAPS offline solution :+1:
Colin Lennon
@colinlennon
Aug 28 2016 20:53
@ceben80 Thanks :smile:
Mattyfleck
@Mattyfleck
Aug 28 2016 23:11
Hello All, I am working on closing the loop and I feel like everything has been going great until I got to this point. I have an older pump that will work with the Openaps (Medtronic 715), however I currently use the Medtronic 751 that works with the enlite sensor (my CGM). Is it possible for me to continue to use the enlite sensor with the older medtronic 715 pump? Do I have to switch to a Dexcom? What are some of the ways Medtronic pump wearers have done this? Any information you all can provide me is greatly appreciated. Thanks!
Chris Oattes
@cjo20
Aug 28 2016 23:47
Does the 715 not have sensor support? One option is to have openaps read the CGM data from the newer pump and send the control signals to the 715