Hello
So at least reinstalling Scratch from Scratch did help but i really don’t understand why.
Please find all the action i did to make it works :
pi@caramel:~ $ sudo apt-get remove nuscratch
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
scratch squeak-plugins-scratch squeak-vm
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
nuscratch
0 upgraded, 0 newly installed, 1 to remove and 110 not upgraded.
After this operation, 46.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 113259 files and directories currently installed.)
Removing nuscratch (20170112) …
Removing ‘diversion of /usr/bin/scratch to /usr/bin/scratch.old by nuscratch’
Removing ‘diversion of /usr/bin/squeak to /usr/bin/squeak.old by nuscratch’
Removing ‘diversion of /usr/share/scratch/locale/ja_HIRA.po to /usr/share/scratch/locale/ja_HIRA.po.old by nuscratch’
Removing ‘diversion of /usr/share/scratch/locale/ja.po to /usr/share/scratch/locale/ja.po.old by nuscratch’
pi@caramel:~ $ sudo apt-get install nuscracth
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package nuscracth
pi@caramel:~ $ sudo apt-get install nuscratch
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
nuscratch
0 upgraded, 1 newly installed, 0 to remove and 110 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 46.0 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian stretch/main armhf nuscratch armhf 20170112 [11.8 MB]
Fetched 11.8 MB in 4s (2,622 kB/s)
Selecting previously unselected package nuscratch.
(Reading database … 113216 files and directories currently installed.)
Preparing to unpack …/nuscratch_20170112_armhf.deb …
Adding ‘diversion of /usr/bin/scratch to /usr/bin/scratch.old by nuscratch’
Adding ‘diversion of /usr/bin/squeak to /usr/bin/squeak.old by nuscratch’
Adding ‘diversion of /usr/share/scratch/locale/ja_HIRA.po to /usr/share/scratch/locale/ja_HIRA.po.old by nuscratch’
Adding ‘diversion of /usr/share/scratch/locale/ja.po to /usr/share/scratch/locale/ja.po.old by nuscratch’
Unpacking nuscratch (20170112) …
Setting up nuscratch (20170112) …
// NO SOUND FROM SCRATCH LAUNCHED FROM THE DESKTOP ( ICON )
pi@caramel:~ $ aplay /usr/share/scratch/Media/Sounds/Animal/Kitten.wav
Playing WAVE ‘/usr/share/scratch/Media/Sounds/Animal/Kitten.wav’ : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
// TEST IF THE SETUP IS WORKING TEST OK
pi@caramel:~ $ sudo apt-get remove nuscratch
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
scratch squeak-plugins-scratch squeak-vm
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
nuscratch
0 upgraded, 0 newly installed, 1 to remove and 110 not upgraded.
After this operation, 46.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 113259 files and directories currently installed.)
Removing nuscratch (20170112) …
Removing ‘diversion of /usr/bin/scratch to /usr/bin/scratch.old by nuscratch’
Removing ‘diversion of /usr/bin/squeak to /usr/bin/squeak.old by nuscratch’
Removing ‘diversion of /usr/share/scratch/locale/ja_HIRA.po to /usr/share/scratch/locale/ja_HIRA.po.old by nuscratch’
Removing ‘diversion of /usr/share/scratch/locale/ja.po to /usr/share/scratch/locale/ja.po.old by nuscratch’
pi@caramel:~ $ sudo apt-get install nuscratch
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
nuscratch
0 upgraded, 1 newly installed, 0 to remove and 110 not upgraded.
Need to get 0 B/11.8 MB of archives.
After this operation, 46.0 MB of additional disk space will be used.
Selecting previously unselected package nuscratch.
(Reading database … 113216 files and directories currently installed.)
Preparing to unpack …/nuscratch_20170112_armhf.deb …
Adding ‘diversion of /usr/bin/scratch to /usr/bin/scratch.old by nuscratch’
Adding ‘diversion of /usr/bin/squeak to /usr/bin/squeak.old by nuscratch’
Adding ‘diversion of /usr/share/scratch/locale/ja_HIRA.po to /usr/share/scratch/locale/ja_HIRA.po.old by nuscratch’
Adding ‘diversion of /usr/share/scratch/locale/ja.po to /usr/share/scratch/locale/ja.po.old by nuscratch’
Unpacking nuscratch (20170112) …
Setting up nuscratch (20170112) …
// SECOND TEST // NO SOUND FROM SCRATCH LAUNCHED FROM THE DESKTOP ( ICON )
pi@caramel:/usr/bin $ ./scratch
sound_Start(default)
soundStart: snd_add_pcm_handler: Function not implemented
sound_Start(default)
soundStart: snd_add_pcm_handler: Function not implemented
sound_Start(default)
soundStart: snd_add_pcm_handler: Function not implemented
sound_Start(default)
soundStart: snd_add_pcm_handler: Function not implemented
sound_Start(default)
soundStart: snd_add_pcm_handler: Function not implemented
sound_Start(default)
soundStart: snd_add_pcm_handler: Function not implemented
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// THIRD TEST // NO SOUND // LAUNCHED FROM THE CLI. I REPRODUCED THE OUTPUT ON THE TERMINAL sound_Start(default)
soundStart: snd_add_pcm_handler: Function not implemented
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pi@caramel:/usr/bin $ sudo apt-get remove nuscratch
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
scratch squeak-plugins-scratch squeak-vm
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
nuscratch
0 upgraded, 0 newly installed, 1 to remove and 110 not upgraded.
After this operation, 46.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 113259 files and directories currently installed.)
Removing nuscratch (20170112) …
Removing ‘diversion of /usr/bin/scratch to /usr/bin/scratch.old by nuscratch’
Removing ‘diversion of /usr/bin/squeak to /usr/bin/squeak.old by nuscratch’
Removing ‘diversion of /usr/share/scratch/locale/ja_HIRA.po to /usr/share/scratch/locale/ja_HIRA.po.old by nuscratch’
Removing ‘diversion of /usr/share/scratch/locale/ja.po to /usr/share/scratch/locale/ja.po.old by nuscratch’
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
THE WEIRD IS YET TO COME - I UNISTALL SCRATCH
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
pi@caramel:/usr/bin $ ./scratch
Executing: /usr/lib/squeak/4.10.2-2614/squeakvm -encoding UTF-8 -vm-display-x11 -plugins /usr/lib/scratch/plugins/:/usr/lib/squeak/4.10.2-2614/ -vm-sound-pulse /usr/share/scratch/Scratch.image
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
!!! TEST SOUND OK ???
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
It’s weird no ?
Anyway, i’m so happy it works now. Thanks a lot for your help. I hope what i try to described will help the community
Thanks again.