Moode Forum

Full Version: PeppyMeter and moOde
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
IIRC something similar happened back when Stretch became oldstable prior to Buster. Theres an option that is something like below that I think we used to allow apt-get update to succeed on the oldstable Stretch. YMMV.

--allow-releaseinfo-change
(09-21-2021, 01:58 AM)Pranjal Wrote: [ -> ]
(09-20-2021, 11:50 AM)TheOldPresbyope Wrote: [ -> ]@Pranjal

The 404 error means the file 

libfluidsynth1_1.1.11-1_armhf.deb 

wasn't found in the http://raspbian.raspberrypi.org/raspbian...luidsynth/ directory.

When I look at the contents of the RaspiOS repository I don't see that file either. However I do see 

libfluidsynth1_1.1.11-1+deb10u1_armhf.deb

so it would seem the file has been updated.

I suggest you run the following from the command line to update the local package index and then try the install again.

Code:
sudo apt-get update

Regards,
Kent

Hi Kent, thanks for the reply but here too hit a roadblock. The update doesnt take place !! I hope its not a issue with Moode 7.3 distro. The error I get is as below.

pi@moode:~ $ udo apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Reading package lists... Done
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'                     
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.                        
pi@moode:~ $

Hi,
What is the command you hit:

Code:
udo
or
Code:
sudo
 The correct one is

Code:
sudo apt-get update
Regards,
Francesco
(09-21-2021, 03:26 AM)fdealexa Wrote: [ -> ]
(09-21-2021, 01:58 AM)Pranjal Wrote: [ -> ]
(09-20-2021, 11:50 AM)TheOldPresbyope Wrote: [ -> ]@Pranjal

The 404 error means the file 

libfluidsynth1_1.1.11-1_armhf.deb 

wasn't found in the http://raspbian.raspberrypi.org/raspbian...luidsynth/ directory.

When I look at the contents of the RaspiOS repository I don't see that file either. However I do see 

libfluidsynth1_1.1.11-1+deb10u1_armhf.deb

so it would seem the file has been updated.

I suggest you run the following from the command line to update the local package index and then try the install again.

Code:
sudo apt-get update

Regards,
Kent

Hi Kent, thanks for the reply but here too hit a roadblock. The update doesnt take place !! I hope its not a issue with Moode 7.3 distro. The error I get is as below.

pi@moode:~ $ udo apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Reading package lists... Done
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'                     
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.                        
pi@moode:~ $

Hi,
What is the command you hit:

Code:
udo
or
Code:
sudo
 The correct one is

Code:
sudo apt-get update
Regards,
Francesco

Hi hit sudo.. while copying, the 's' got left behind.
(09-21-2021, 03:20 AM)Tim Curtis Wrote: [ -> ]IIRC something similar happened back when Stretch became oldstable prior to Buster. Theres an option that is something like below that I think we used to allow apt-get update to succeed on the oldstable Stretch. YMMV.

--allow-releaseinfo-change

Hi Tim, what should be the syntax of the get update now ?. Sorry for the noob question
(09-21-2021, 04:14 AM)Pranjal Wrote: [ -> ]
(09-21-2021, 03:20 AM)Tim Curtis Wrote: [ -> ]IIRC something similar happened back when Stretch became oldstable prior to Buster. Theres an option that is something like below that I think we used to allow apt-get update to succeed on the oldstable Stretch. YMMV.

--allow-releaseinfo-change

Hi Tim, what should be the syntax of the get update now ?. Sorry for the noob question

You could try....

Code:
sudo apt update --allow-releaseinfo-change
That is what I would do....but then I don't mind breakage and have backups.... ymmv

it will work or it won't...
If it works then fine..
if it doesn't then it will spit an error message...and you will know a little more about linux... :-)

Here...I have tried it for you...:-)

Code:
pi@argonone:~ $ sudo apt update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.7 kB]
Get:2 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]      
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] Y
Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:5 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.7 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]
Fetched 13.6 MB in 35s (386 kB/s)                                              
Reading package lists... Done
Building dependency tree      
Reading state information... Done
213 packages can be upgraded. Run 'apt list --upgradable' to see them.
pi@argonone:~ $
note from the output above the line shown below....

Code:
Do you want to accept these changes and continue updating from this repository? [y/N] Y

select Y and enter


or if that does not work then try as I suggested...
Code:
sudo apt update --allow-releaseinfo-change

Code:
pi@argonone:~ $ sudo apt update --allow-releaseinfo-change
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Building dependency tree      
Reading state information... Done
213 packages can be upgraded. Run 'apt list --upgradable' to see them.
pi@argonone:~ $

All done :-)
Results seem to be the same for both so once you run either 'update' then you should be able to access the package you want.... try the first first and if that doesn't work and you are bold then try the second..
cheers Bob...
@Pranjal

Sorry, in all of the disruption caused by my move I missed this change in repo 'Suite' value. (Actually, I think it must have propagated very recently to the local mirror of the RaspiOS repo I'm directed to because I saw the same error message for the first time when I tried the apt-get update operation this morning.)

Regards,
Kent
(09-21-2021, 08:08 AM)DRONE7 Wrote: [ -> ]
(09-21-2021, 04:14 AM)Pranjal Wrote: [ -> ]
(09-21-2021, 03:20 AM)Tim Curtis Wrote: [ -> ]IIRC something similar happened back when Stretch became oldstable prior to Buster. Theres an option that is something like below that I think we used to allow apt-get update to succeed on the oldstable Stretch. YMMV.

--allow-releaseinfo-change

Hi Tim, what should be the syntax of the get update now ?. Sorry for the noob question

You could try....

Code:
sudo apt update --allow-releaseinfo-change
That is what I would do....but then I don't mind breakage and have backups.... ymmv

it will work or it won't...
If it works then fine..
if it doesn't then it will spit an error message...and you will know a little more about linux... :-)

Here...I have tried it for you...:-)

Code:
pi@argonone:~ $ sudo apt update
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.7 kB]
Get:2 http://archive.raspberrypi.org/debian buster/main armhf Packages [393 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]      
E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] Y
Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:5 http://raspbian.raspberrypi.org/raspbian buster/contrib armhf Packages [58.7 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian buster/non-free armhf Packages [104 kB]
Fetched 13.6 MB in 35s (386 kB/s)                                              
Reading package lists... Done
Building dependency tree      
Reading state information... Done
213 packages can be upgraded. Run 'apt list --upgradable' to see them.
pi@argonone:~ $
note from the output above the line  shown below....

Code:
Do you want to accept these changes and continue updating from this repository? [y/N] Y

select Y and enter


or if that does not work then try as I suggested...
Code:
sudo apt update --allow-releaseinfo-change

Code:
pi@argonone:~ $ sudo apt update --allow-releaseinfo-change
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Building dependency tree      
Reading state information... Done
213 packages can be upgraded. Run 'apt list --upgradable' to see them.
pi@argonone:~ $

All done :-)
Results seem to be the same for both so once you run either 'update' then you should be able to access the package you want.... try the first first and if that doesn't work and you are bold then try the second..
cheers Bob...
Thanks Bob, will try tonight..
Thank you everyone, phew one step crossed. Now hit another hurdle, While testing the working of peppymeter I get the undermentioned error

pi@moode:~/PeppyMeter $ sudo python3 peppymeter.py
pygame 1.9.4.post1
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "peppymeter.py", line 290, in <module>
pm.init_display()
File "peppymeter.py", line 150, in init_display
pygame.display.init()
pygame.error: Unable to open mouse

Can I please receive your esteemed guidance how to cross this hurdle
(09-22-2021, 04:11 AM)Pranjal Wrote: [ -> ]Thank you everyone, phew one step crossed. Now hit another hurdle, While testing the working of peppymeter I get the undermentioned error

pi@moode:~/PeppyMeter $ sudo python3 peppymeter.py
pygame 1.9.4.post1                                                                                                                                  
Hello from the pygame community. https://www.pygame.org/contribute.html                                                                              
Traceback (most recent call last):                                                                                                                  
 File "peppymeter.py", line 290, in <module>                                                                                                        
   pm.init_display()                                                                                                                                
 File "peppymeter.py", line 150, in init_display                                                                                                    
   pygame.display.init()                                                                                                                            
pygame.error: Unable to open mouse                                                                                                                  

Can I please receive your esteemed guidance how to cross this hurdle

Hi Pranjal,
Have you modified the 
Quote:/home/pi/PeppyMeter/config.txt
as reported on the tutorial?

Could you please try:
Code:
cat /home/pi/PeppyMeter/config.txt

Thanks and regards,
Francesco
(09-22-2021, 04:53 AM)fdealexa Wrote: [ -> ]
(09-22-2021, 04:11 AM)Pranjal Wrote: [ -> ]Thank you everyone, phew one step crossed. Now hit another hurdle, While testing the working of peppymeter I get the undermentioned error

pi@moode:~/PeppyMeter $ sudo python3 peppymeter.py
pygame 1.9.4.post1                                                                                                                                  
Hello from the pygame community. https://www.pygame.org/contribute.html                                                                              
Traceback (most recent call last):                                                                                                                  
 File "peppymeter.py", line 290, in <module>                                                                                                        
   pm.init_display()                                                                                                                                
 File "peppymeter.py", line 150, in init_display                                                                                                    
   pygame.display.init()                                                                                                                            
pygame.error: Unable to open mouse                                                                                                                  

Can I please receive your esteemed guidance how to cross this hurdle

Hi Pranjal,
Have you modified the 
Quote:/home/pi/PeppyMeter/config.txt
as reported on the tutorial?

I did Francesco, but in Moode 7.3,  this option is not there
Code:
"screen.size = large"

Could you please try:
Code:
cat /home/pi/PeppyMeter/config.txt

Yes certainly, the results are as below :-

Code:
pi@moode:~ $ cat /home/pi/PeppyMeter/config.txt
[current]                                                                                                                                            
meter = random                                                                                                                                      
random.meter.interval = 20                                                                                                                          
meter.size = large                                                                                                                                  
screen.width =400                                                                                                                                    
screen.height =800                                                                                                                                  
exit.on.touch = False                                                                                                                                
output.display = True                                                                                                                                
output.serial = False                                                                                                                                
output.i2c = False                                                                                                                                  
output.pwm = False                                                                                                                                  
output.http = False                                                                                                                                  
use.logging = False                                                                                                                                  
use.cache = True                                                                                                                                    
frame.rate = 30                                                                                                                                      
                                                                                                                                                 
[sdl.env]                                                                                                                                            
framebuffer.device = /dev/fb0                                                                                                                        
mouse.device = /dev/input/event0                                                                                                                    
mouse.driver = TSLIB                                                                                                                                
mouse.enabled = True                                                                                                                                
video.driver = dummy                                                                                                                                
video.display = :0                                                                                                                                  
double.buffer = False                                                                                                                                
no.frame = False                                                                                                                                    
                                                                                                                                                 
[serial.interface]                                                                                                                                  
device.name = /dev/serial0                                                                                                                          
baud.rate = 9600                                                                                                                                    
include.time = False                                                                                                                                
update.period = 0.1                                                                                                                                  
                                                                                                                                                 
[i2c.interface]                                                                                                                                      
port = 1                                                                                                                                            
left.channel.address = 0x21                                                                                                                          
right.channel.address = 0x20                                                                                                                        
output.size = 10                                                                                                                                    
update.period = 0.1                                                                                                                                  
                                                                                                                                                 
[pwm.interface]                                                                                                                                      
frequency = 500                                                                                                                                      
gpio.pin.left = 24                                                                                                                                  
gpio.pin.right = 25                                                                                                                                  
update.period = 0.1                                                                                                                                  
                                                                                                                                                 
[http.interface]                                                                                                                                    
target.url = http://localhost:8000/vumeter                                                                                                          
update.period = 0.033                                                                                                                                
                                                                                                                                                 
[web.server]                                                                                                                                        
http.port = 8001                                                                                                                                    
                                                                                                                                                 
[data.source]                                                                                                                                        
type = pipe                                                                                                                                          
polling.interval = 0.033                                                                                                                            
pipe.name = /var/tmp/peppyfifo                                                                                                                      
volume.constant = 80.0                                                                                                                              
volume.min = 0.0                                                                                                                                    
volume.max = 100.0                                                                                                                                  
volume.max.in.pipe = 100.0                                                                                                                          
step = 6                                                                                                                                            
mono.algorithm = average                                                                                                                            
stereo.algorithm = new                                                                                                                              
smooth.buffer.size = 4                                                                                                                              

-------------------------------------------------------------------------
Thanks and regards,
Francesco

Please help
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32