01-24-2023, 08:19 AM
(01-23-2023, 02:10 AM)TheOldPresbyope Wrote: @KmPanthanks Kent for reply i just followed steps in page 1 1st post ..as it worked on v7 moode.
Seems you took a wrong turn somewhere but we can't know where you ended up if you don't tell us how you got there.
In my case, I have no suitable LCD/OLED display but that didn't stop me from doing a quick test.
On a moOde 8.2.4 (64-bit) player on an RPi4B I had no trouble executing the following steps (note that I'm presenting command line output so you can see what directory I'm in at each point)
Code:pi@m824p4b:~ $ git clone https://github.com/dhrone/pydPiper
...typical lines of output...
pi@m824p4b:~ $ sudo curl -fsSL https://get.docker.com -o get-docker.sh
pi@m824p4b:~ $ sudo sh get-docker.sh
...lots of output...
pi@m824p4b:~ $ cd pydPiper
pi@m824p4b:~/pydPiper $ sudo python configure.py
...accepted most defaults, wrote "moode" as name of distro...
pi@m824p4b:~/pydPiper $ cd
pi@m824p4b:~ $ sudo /usr/bin/docker run --network=host --privileged -ti -v /var/log:/var/log:rw -v /home/pi/pydPiper:/app:rw dhrone/pydpiper:v0.31-alpha /bin/bash
...number of lines of output as docker pulls bits and pieces, ending with...
Status: Downloaded newer image for dhrone/pydpiper:v0.31-alpha
WARNING: The requested image's platform (linux/arm) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
root@m824p4b:/app# python pydPiper.py
pydPiper starting
Loading font from /app/displays/fonts/latin1_5x8_fixed.fnt
...more font loading after which pydPiper is running...
I added some comment lines beginning and ending with "...". The warning that the requested image's platform doesn't match the host platform is not consequential here.
So how did your install differ?
Regards,
Kent
extra step is install git.
i have saved the text during install
Code:
login as: pi
pi@192.168.1.5's password:
Linux: 5.15.76-v7l+ #1597 | armv7l (32-bit) | DebOS: 11.6
Model: Pi-4B 1.2 4GB
Audio: Pi HDMI 1
____ __ ___
__ _ ___ / __ \___/ /__ ( _ )
/ ' \/ _ \/ /_/ / _ / -_) / _ |
/_/_/_/\___/\____/\_,_/\__/ \___/
moOde audio player
Release 8.2.4 2022-12-27
(C) 2014 Tim Curtis
The programs included with moOde are free software; the
exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright or
in the moOde source files. moOde comes with absolutely
no warranties either expressed or implied, or any other
such guarantees.
To set a new password for the user 'pi' type 'passwd'.
pi@moode:~ $ sudo install git
install: missing destination file operand after 'git'
Try 'install --help' for more information.
pi@moode:~ $ sudo apt install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,583 kB of archives.
After this operation, 33.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirror.ossplanet.net/raspbian/raspbian bullseye/main armhf liberror-perl all 0.17029-1 [31.0 kB]
Get:2 http://mirror.ossplanet.net/raspbian/raspbian bullseye/main armhf git-man all 1:2.30.2-1 [1,827 kB]
Get:3 http://mirror.ossplanet.net/raspbian/raspbian bullseye/main armhf git armhf 1:2.30.2-1 [4,724 kB]
Fetched 6,583 kB in 26s (256 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 65171 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.30.2-1_all.deb ...
Unpacking git-man (1:2.30.2-1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.30.2-1_armhf.deb ...
Unpacking git (1:2.30.2-1) ...
Setting up liberror-perl (0.17029-1) ...
Setting up git-man (1:2.30.2-1) ...
Setting up git (1:2.30.2-1) ...
Processing triggers for man-db (2.9.4-2) ...
pi@moode:~ $ cd /home/pi
git clone https://github.com/dhrone/pydPiper
Cloning into 'pydPiper'...
remote: Enumerating objects: 2766, done.
remote: Counting objects: 100% (77/77), done.
remote: Compressing objects: 100% (35/35), done.
remote: Total 2766 (delta 47), reused 64 (delta 42), pack-reused 2689
Receiving objects: 100% (2766/2766), 1.10 MiB | 709.00 KiB/s, done.
Resolving deltas: 100% (2001/2001), done.
pi@moode:~ $ cd pydPiper
pi@moode:~/pydPiper $ sudo ./install_docker.sh
Installing Docker from the convenience script
# Executing docker install script, commit: 1d97565eca92bb523082b7d4f530c74104e05d35
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null
+ sh -c mkdir -p /etc/apt/keyrings && chmod -R 0755 /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/raspbian/gpg" | gpg --dearmor --yes -o /etc/apt/keyrings/docker.gpg
+ sh -c chmod a+r /etc/apt/keyrings/docker.gpg
+ sh -c echo "deb [arch=armhf signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/raspbian bullseye stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends docker-ce docker-ce-cli containerd.io docker-compose-plugin >/dev/null
+ version_gte 20.10
+ [ -z ]
+ return 0
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce-rootless-extras >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
Version: 20.10.23
API version: 1.41
Go version: go1.18.10
Git commit: 7155243
Built: Thu Jan 19 17:33:53 2023
OS/Arch: linux/arm
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.23
API version: 1.41 (minimum version 1.12)
Go version: go1.18.10
Git commit: 6051f14
Built: Thu Jan 19 17:31:38 2023
OS/Arch: linux/arm
Experimental: false
containerd:
Version: 1.6.15
GitCommit: 5b842e528e99d4d4c1686467debf2bd4b88ecd86
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
================================================================================
To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:
dockerd-rootless-setuptool.sh install
Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.
To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/
WARNING: Access to the remote API on a privileged Docker daemon is equivalent
to root access on the host. Refer to the 'Docker daemon attack surface'
documentation for details: https://docs.docker.com/go/attack-surface/
================================================================================
Enabling docker
Synchronizing state of docker.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable docker
v0.31-alpha: Pulling from dhrone/pydpiper
689dda5de45e: Pull complete
a3ed95caeb02: Pull complete
7e28376ea400: Pull complete
f98467deb8d3: Pull complete
7d26b233d4ce: Pull complete
a5642ef2c19b: Pull complete
c1543a387200: Pull complete
Digest: sha256:7096658fc25df45c6fd04c27f9d43c807c5761fb19c0328cb96ef5311e56020b
Status: Downloaded newer image for dhrone/pydpiper:v0.31-alpha
docker.io/dhrone/pydpiper:v0.31-alpha
Testing docker
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
04341b189be6: Pull complete
Digest: sha256:aa0cc8055b82dc2509bed2e19b275c8f463506616377219d9642221ab53cf9fe
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(arm32v7)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
pi@moode:~/pydPiper $ sudo raspi-config
pi@moode:~/pydPiper $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@moode:~/pydPiper $ sudo python configure.py
Creating configuration file for pydPiper
----------------------------------------
STARTUP CONFIGURATION
Startup mode duration (in seconds)? [5]: 5
DISPLAY CONFIGURATION
Display type? [winstar_weg]: hd44780_i2c
I2C Port? [1]: 1
I2C Address? [0x3d]: 0x27
Width of display (in pixels)? [80]: 100
Height of display (in pixels)? [16]: 32
Enable pulse duration (in microseconds)? [0.1]: 0.1
Location of the pagefile? [pages_weh_80x16.py]: pages_led_20x4.py
Animation Smoothing (in seconds)? [0.1]: 0.15
SYSTEM CONFIGURATION
Location of log file? [/var/log/pydPiper.log]: /var/log/pydPiper.log
Logging Level? [info]: info
Time Zone? [US/Eastern]: ASIA/Calcutta
24-hour clock? [false]: false
Temperature Scale? [fahrenheit]: celsius
Enable weather? [n]: n
MUSIC DISTRIBUTION
Name of distribution? [volumio]: moode
Server address? [localhost]: localhost
Port? [6600]: 6600
Password?: moodeaudio
UPDATING pydPiper.cfg
Creating pydpiper.service file
pi@moode:~/pydPiper $ sudo /usr/bin/docker run --network=host --privileged -ti -v /var/log:/var/log:rw -v /home/pi/pydPiper:/app:rw dhrone/pydpiper:v0.31-alpha /bin/bash
root@moode:/app# python pydPiper.py
GPIO not installed
Traceback (most recent call last):
File "pydPiper.py", line 23, in <module>
class music_controller(threading.Thread):
File "pydPiper.py", line 68, in music_controller
'localtime':moment.utcnow().timezone(pydPiper_config.TIMEZONE),
File "/usr/local/lib/python2.7/dist-packages/moment/core.py", line 81, in timezone
date = times.to_local(date, zone)
File "/usr/local/lib/python2.7/dist-packages/times/__init__.py", line 61, in to_local
'First argument to to_local() should be a universal time.'
ValueError: First argument to to_local() should be a universal time.
root@moode:/app# ^C