Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing gateway 0.9 - seeing install dependency errors #31

Open
kgiori opened this issue Jul 24, 2019 · 4 comments
Open

testing gateway 0.9 - seeing install dependency errors #31

kgiori opened this issue Jul 24, 2019 · 4 comments

Comments

@kgiori
Copy link

kgiori commented Jul 24, 2019

  • using test image of RPi WebThings gateway 0.9 (on RPi3)
  • installed voice-controller add-on
  • added oath token to config
    seeing these errors in run-app.log:
2019-07-24 19:48:37.849 INFO   : Finished updating add-ons
2019-07-24 19:48:46.898 INFO   : voice-addon: DATA snips_installation: Selecting previously unselected package libgfortran3:armhf.
2019-07-24 19:48:46.901 INFO   : voice-addon: 
2019-07-24 19:48:47.014 INFO   : voice-addon: DATA snips_installation: (Reading database ... 58544 files and directories currently installed.)
2019-07-24 19:48:47.017 INFO   : voice-addon: 
2019-07-24 19:48:47.030 INFO   : voice-addon: DATA snips_installation: Preparing to unpack libgfortran3_6.3.0-18+rpi1+deb9u1_armhf.deb ...
2019-07-24 19:48:47.032 INFO   : voice-addon: 
2019-07-24 19:48:47.122 INFO   : voice-addon: DATA snips_installation: Unpacking libgfortran3:armhf (6.3.0-18+rpi1+deb9u1) ...
2019-07-24 19:48:47.125 INFO   : voice-addon: 
2019-07-24 19:48:47.436 INFO   : voice-addon: Error executing install_script.sh dpkg: dependency problems prevent configuration of libgfortran3:armhf:
2019-07-24 19:48:47.438 INFO   : voice-addon:  libgfortran3:armhf depends on gcc-6-base (= 6.3.0-18+rpi1+deb9u1); however:
2019-07-24 19:48:47.440 INFO   : voice-addon:   Version of gcc-6-base:armhf on system is 6.5.0-1+rpi1+b1.
2019-07-24 19:48:47.441 INFO   : voice-addon: 
2019-07-24 19:48:47.443 INFO   : voice-addon: dpkg: error processing package libgfortran3:armhf (--install):
2019-07-24 19:48:47.445 INFO   : voice-addon:  dependency problems - leaving unconfigured
2019-07-24 19:48:47.447 INFO   : voice-addon: 
2019-07-24 19:48:47.448 INFO   : voice-addon: DATA snips_installation: Processing triggers for libc-bin (2.28-10+rpi1) ...
2019-07-24 19:48:47.450 INFO   : voice-addon: 
2019-07-24 19:48:49.478 INFO   : voice-addon: Error executing install_script.sh Errors were encountered while processing:
2019-07-24 19:48:49.481 INFO   : voice-addon:  libgfortran3:armhf```
@kgiori
Copy link
Author

kgiori commented Jul 24, 2019

click on voice-controller to spawn training:

2019-07-24 19:53:14.946 INFO   : voice-addon: setCachedValueAndNotify for property on from false to true for voice-controller
2019-07-24 19:53:14.986 INFO   : voice-addon: ERROR: python2: can't open file 'script_recording.py': [Errno 2] No such file or directory
2019-07-24 19:53:14.988 INFO   : voice-addon: 
2019-07-24 19:53:14.992 INFO   : voice-addon: process exit code 2```

@kgiori
Copy link
Author

kgiori commented Jul 24, 2019

click "disable" of voice-controller on add-ons page:

2019-07-24 19:54:53.919 INFO   : voice-addon: unloaded addon undefined
2019-07-24 19:54:54.338 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 58547 files and directories currently installed.)
2019-07-24 19:54:54.341 INFO   : voice-addon: 
2019-07-24 19:54:54.356 INFO   : voice-addon: DATA snips_uninstall: Removing libportaudio2:armhf (19.6.0-1) ...
2019-07-24 19:54:54.358 INFO   : voice-addon: 
2019-07-24 19:54:55.112 INFO   : voice-addon: DATA snips_uninstall: Processing triggers for libc-bin (2.28-10+rpi1) ...
2019-07-24 19:54:55.114 INFO   : voice-addon: 
2019-07-24 19:54:56.103 INFO   : voice-addon: Error executing install_script.sh dpkg: python-ply: dependency problems, but removing anyway as you requested:
2019-07-24 19:54:56.105 INFO   : voice-addon:  python-pycparser depends on python-ply-lex-3.8; however:
2019-07-24 19:54:56.106 INFO   : voice-addon:   Package python-ply-lex-3.8 is not installed.
2019-07-24 19:54:56.109 INFO   : voice-addon:   Package python-ply which provides python-ply-lex-3.8 is to be removed.
2019-07-24 19:54:56.111 INFO   : voice-addon:  python-pycparser depends on python-ply-yacc-3.8; however:
2019-07-24 19:54:56.112 INFO   : voice-addon:   Package python-ply-yacc-3.8 is not installed.
2019-07-24 19:54:56.114 INFO   : voice-addon:   Package python-ply which provides python-ply-yacc-3.8 is to be removed.
2019-07-24 19:54:56.115 INFO   : voice-addon:  python-pycparser depends on python-ply-lex-3.8; however:
2019-07-24 19:54:56.117 INFO   : voice-addon:   Package python-ply-lex-3.8 is not installed.
2019-07-24 19:54:56.137 INFO   : voice-addon:   Package python-ply which provides python-ply-lex-3.8 is to be removed.
2019-07-24 19:54:56.138 INFO   : voice-addon:  python-pycparser depends on python-ply-yacc-3.8; however:
2019-07-24 19:54:56.140 INFO   : voice-addon:   Package python-ply-yacc-3.8 is not installed.
2019-07-24 19:54:56.142 INFO   : voice-addon:   Package python-ply which provides python-ply-yacc-3.8 is to be removed.
2019-07-24 19:54:56.144 INFO   : voice-addon: 
2019-07-24 19:54:56.145 INFO   : voice-addon: 
2019-07-24 19:54:56.229 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 58541 files and directories currently installed.)
2019-07-24 19:54:56.231 INFO   : voice-addon: 
2019-07-24 19:54:56.245 INFO   : voice-addon: DATA snips_uninstall: Removing python-ply (3.9-1) ...
2019-07-24 19:54:56.247 INFO   : voice-addon: 
2019-07-24 19:54:56.577 INFO   : voice-addon: DATA snips_uninstall: Processing triggers for man-db (2.8.5-2) ...
2019-07-24 19:54:56.579 INFO   : voice-addon: 
2019-07-24 19:54:59.818 INFO   : voice-addon: Error executing install_script.sh dpkg: python-pycparser: dependency problems, but removing anyway as you requested:
2019-07-24 19:54:59.820 INFO   : voice-addon:  python-cffi depends on python-pycparser; however:
2019-07-24 19:54:59.821 INFO   : voice-addon:   Package python-pycparser is to be removed.
2019-07-24 19:54:59.823 INFO   : voice-addon: 
2019-07-24 19:54:59.824 INFO   : voice-addon: 
2019-07-24 19:54:59.942 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 58522 files and directories currently installed.)
2019-07-24 19:54:59.944 INFO   : voice-addon: 
2019-07-24 19:54:59.958 INFO   : voice-addon: DATA snips_uninstall: Removing python-pycparser (2.17-2) ...
2019-07-24 19:54:59.960 INFO   : voice-addon: 
2019-07-24 19:55:02.312 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 58389 files and directories currently installed.)
2019-07-24 19:55:02.314 INFO   : voice-addon: 
2019-07-24 19:55:02.327 INFO   : voice-addon: DATA snips_uninstall: Removing python-cffi (1.9.1-2) ...
2019-07-24 19:55:02.329 INFO   : voice-addon: 
2019-07-24 19:55:03.077 INFO   : voice-addon: DATA snips_uninstall: (Reading database ... 58359 files and directories currently installed.)
2019-07-24 19:55:03.079 INFO   : voice-addon: 
2019-07-24 19:55:03.095 INFO   : voice-addon: DATA snips_uninstall: Removing libgfortran3:armhf (6.3.0-18+rpi1+deb9u1) ...
2019-07-24 19:55:03.098 INFO   : voice-addon: 
2019-07-24 19:55:03.444 INFO   : voice-addon: DATA snips_uninstall: Processing triggers for libc-bin (2.28-10+rpi1) ...
2019-07-24 19:55:03.446 INFO   : voice-addon: 
2019-07-24 19:55:05.336 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove libblas-common which isn't installed
2019-07-24 19:55:05.338 INFO   : voice-addon: 
2019-07-24 19:55:05.699 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove libatlas3-base which isn't installed
2019-07-24 19:55:05.701 INFO   : voice-addon: 
2019-07-24 19:55:05.941 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove libblas3 which isn't installed
2019-07-24 19:55:05.943 INFO   : voice-addon: 
2019-07-24 19:55:06.188 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove python-soundfile which isn't installed
2019-07-24 19:55:06.190 INFO   : voice-addon: 
2019-07-24 19:55:06.429 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove liblapack3 which isn't installed
2019-07-24 19:55:06.431 INFO   : voice-addon: 
2019-07-24 19:55:06.670 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove libttspico-data which isn't installed
2019-07-24 19:55:06.673 INFO   : voice-addon: 
2019-07-24 19:55:06.912 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove libttspico0 which isn't installed
2019-07-24 19:55:06.915 INFO   : voice-addon: 
2019-07-24 19:55:07.136 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove libttspico-utils which isn't installed
2019-07-24 19:55:07.139 INFO   : voice-addon: 
2019-07-24 19:55:07.333 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove python-numpy which isn't installed
2019-07-24 19:55:07.336 INFO   : voice-addon: 
2019-07-24 19:55:07.533 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove python-pyaudio which isn't installed
2019-07-24 19:55:07.536 INFO   : voice-addon: 
2019-07-24 19:55:07.731 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove libwebsockets8 which isn't installed
2019-07-24 19:55:07.734 INFO   : voice-addon: 
2019-07-24 19:55:07.932 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove mosquitto which isn't installed
2019-07-24 19:55:07.935 INFO   : voice-addon: 
2019-07-24 19:55:08.139 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-platform-common which isn't installed
2019-07-24 19:55:08.142 INFO   : voice-addon: 
2019-07-24 19:55:08.570 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-kaldi-atlas which isn't installed
2019-07-24 19:55:08.573 INFO   : voice-addon: 
2019-07-24 19:55:08.848 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-asr which isn't installed
2019-07-24 19:55:08.855 INFO   : voice-addon: 
2019-07-24 19:55:09.217 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-audio-server which isn't installed
2019-07-24 19:55:09.220 INFO   : voice-addon: 
2019-07-24 19:55:09.415 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-dialogue which isn't installed
2019-07-24 19:55:09.417 INFO   : voice-addon: 
2019-07-24 19:55:09.619 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-hotword which isn't installed
2019-07-24 19:55:09.621 INFO   : voice-addon: 
2019-07-24 19:55:09.816 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-injection which isn't installed
2019-07-24 19:55:09.819 INFO   : voice-addon: 
2019-07-24 19:55:10.013 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-nlu which isn't installed
2019-07-24 19:55:10.016 INFO   : voice-addon: 
2019-07-24 19:55:10.214 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-platform-voice which isn't installed
2019-07-24 19:55:10.218 INFO   : voice-addon: 
2019-07-24 19:55:10.408 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-tts which isn't installed
2019-07-24 19:55:10.411 INFO   : voice-addon: 
2019-07-24 19:55:10.612 INFO   : voice-addon: Error executing install_script.sh dpkg: warning: ignoring request to remove snips-watch which isn't installed
2019-07-24 19:55:10.615 INFO   : voice-addon: 
2019-07-24 19:55:10.826 INFO   : voice-addon: Error executing install_script.sh rm: cannot remove 'setup_complete'
2019-07-24 19:55:10.829 INFO   : voice-addon: Error executing install_script.sh : No such file or directory
2019-07-24 19:55:10.831 INFO   : voice-addon: 
2019-07-24 19:55:10.834 INFO   : voice-addon: End of snips_uninstall 1

@kgiori
Copy link
Author

kgiori commented Jul 24, 2019

re-enable add-on now gets stuck here:

2019-07-24 19:58:18.846 INFO   : voice-addon: 
2019-07-24 19:58:18.950 INFO   : voice-addon: Error executing install_script.sh dpkg: dependency problems prevent configuration of python-cffi:
2019-07-24 19:58:18.952 INFO   : voice-addon:  python-cffi depends on python-cffi-backend (<< 1.9.1-2+c); however:
2019-07-24 19:58:18.954 INFO   : voice-addon:   Version of python-cffi-backend on system is 1.12.2-1.
2019-07-24 19:58:18.955 INFO   : voice-addon: 
2019-07-24 19:58:18.957 INFO   : voice-addon: dpkg: error processing package python-cffi (--install):
2019-07-24 19:58:18.959 INFO   : voice-addon:  dependency problems - leaving unconfigured
2019-07-24 19:58:18.961 INFO   : voice-addon: 
2019-07-24 19:58:19.031 INFO   : voice-addon: Error executing install_script.sh Errors were encountered while processing:
2019-07-24 19:58:19.034 INFO   : voice-addon:  python-cffi```

@flatsiedatsie
Copy link

flatsiedatsie commented Jul 26, 2019

I also saw these. They were in 0.8 also actually.

here is the complete list. I got around it each time by running sudo apt --fix-broken install -y after each error, and then restarting the installation process. In the end it pulls through.


Preparing to unpack python-cffi_1.9.1-2_all.deb ...
Unpacking python-cffi (1.9.1-2) ...
dpkg: dependency problems prevent configuration of python-cffi:
 python-cffi depends on python-cffi-backend (<< 1.9.1-2+c); however:
  Version of python-cffi-backend on system is 1.12.2-1.

dpkg: error processing package python-cffi (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-cffi


….. sudo apt --fix-broken install -y

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  python-cffi
The following packages will be upgraded:
  python-cffi
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 83.2 kB of archives.
After this operation, 26.6 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf python-cffi all 1.12.2-1 [83.2 kB]
Fetched 83.2 kB in 0s (635 kB/s)     
apt-listchanges: Reading changelogs...
(Reading database ... 59828 files and directories currently installed.)
Preparing to unpack .../python-cffi_1.12.2-1_all.deb ...
Unpacking python-cffi (1.12.2-1) over (1.9.1-2) ...
Setting up python-cffi (1.12.2-1) ...











2.

Selecting previously unselected package libgfortran3:armhf.
(Reading database ... 59831 files and directories currently installed.)
Preparing to unpack libgfortran3_6.3.0-18+rpi1+deb9u1_armhf.deb ...
Unpacking libgfortran3:armhf (6.3.0-18+rpi1+deb9u1) ...
dpkg: dependency problems prevent configuration of libgfortran3:armhf:
 libgfortran3:armhf depends on gcc-6-base (= 6.3.0-18+rpi1+deb9u1); however:
  Version of gcc-6-base:armhf on system is 6.5.0-1+rpi1+b1.

dpkg: error processing package libgfortran3:armhf (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.28-10+rpi1) ...
Errors were encountered while processing:
 libgfortran3:armhf


….. sudo apt --fix-broken install -y


Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libgfortran3
The following packages will be upgraded:
  libgfortran3
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 165 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf libgfortran3 armhf 6.5.0-1+rpi1+b1 [165 kB]
Fetched 165 kB in 0s (1,567 kB/s)    
apt-listchanges: Reading changelogs...
(Reading database ... 59834 files and directories currently installed.)
Preparing to unpack .../libgfortran3_6.5.0-1+rpi1+b1_armhf.deb ...
Unpacking libgfortran3:armhf (6.5.0-1+rpi1+b1) over (6.3.0-18+rpi1+deb9u1) ...
Setting up libgfortran3:armhf (6.5.0-1+rpi1+b1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...









3.

Unpacking python-numpy (1:1.12.1-3) ...
dpkg: dependency problems prevent configuration of python-numpy:
 libpython2.7-stdlib:armhf (2.7.16-2) breaks python-numpy (<< 1:1.12.1-3.1) and is installed.
  Version of python-numpy to be configured is 1:1.12.1-3.

dpkg: error processing package python-numpy (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 python-numpy


….. sudo apt --fix-broken install -y


pi@gateway:~/.mozilla-iot/addons/voco/deps $ sudo apt --fix-broken install -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  python-numpy
Suggested packages:
  gfortran python-pytest python-numpy-dbg python-numpy-doc
The following packages will be upgraded:
  python-numpy
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 1,856 kB of archives.
After this operation, 1,028 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf python-numpy armhf 1:1.16.2-1 [1,856 kB]
Fetched 1,856 kB in 0s (5,458 kB/s)    
apt-listchanges: Reading changelogs...
(Reading database ... 60299 files and directories currently installed.)
Preparing to unpack .../python-numpy_1%3a1.16.2-1_armhf.deb ...
Unpacking python-numpy (1:1.16.2-1) over (1:1.12.1-3) ...
Setting up python-numpy (1:1.16.2-1) ...
Processing triggers for man-db (2.8.5-2) ...






4.

Selecting previously unselected package libwebsockets8:armhf.
(Reading database ... 60364 files and directories currently installed.)
Preparing to unpack libwebsockets8_2.0.3-2+b1~rpt1_armhf.deb ...
Unpacking libwebsockets8:armhf (2.0.3-2+b1~rpt1) ...
dpkg: dependency problems prevent configuration of libwebsockets8:armhf:
 libwebsockets8:armhf depends on libev4 (>= 1:4.04); however:
  Package libev4 is not installed.
 libwebsockets8:armhf depends on libuv1 (>= 1.4.2); however:
  Package libuv1 is not installed.

dpkg: error processing package libwebsockets8:armhf (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.28-10+rpi1) ...
Errors were encountered while processing:
 libwebsockets8:armhf


…. sudo apt --fix-broken install -y

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libev4 libuv1
The following NEW packages will be installed:
  libev4 libuv1
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
1 not fully installed or removed.
Need to get 131 kB of archives.
After this operation, 289 kB of additional disk space will be used.
Get:1 http://raspbian.raspberrypi.org/raspbian buster/main armhf libev4 armhf 1:4.25-1 [34.5 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libuv1 armhf 1.24.1-1 [96.7 kB]
Fetched 131 kB in 0s (801 kB/s)  
Selecting previously unselected package libev4:armhf.
(Reading database ... 60370 files and directories currently installed.)
Preparing to unpack .../libev4_1%3a4.25-1_armhf.deb ...
Unpacking libev4:armhf (1:4.25-1) ...
Selecting previously unselected package libuv1:armhf.
Preparing to unpack .../libuv1_1.24.1-1_armhf.deb ...
Unpacking libuv1:armhf (1.24.1-1) ...
Setting up libev4:armhf (1:4.25-1) ...
Setting up libuv1:armhf (1.24.1-1) ...
Setting up libwebsockets8:armhf (2.0.3-2+b1~rpt1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@flatsiedatsie @kgiori and others