maxvram / signifier Goto Github PK
View Code? Open in Web Editor NEWA modular Python framework for interactive LED/audio installations.
License: MIT License
A modular Python framework for interactive LED/audio installations.
License: MIT License
After installing pyalsaaudio like I do any other module python3 -m pip install pyalsaaudio
on the remote machine I'm developing on, the import alsaaudio
module would not play ball with my VS Code's Intellisense.
The package import auto-completes, but stays grey, even after being called later in the script. None of the functions or constants I use from the module appear to be registered, so I've had to work of the examples and source code in another window to navigate the library. However, all the functions appear to work fine during runtime. So I figure it's just a weird Pylance import issue or something of the sort. This is the first package it's happened to though.
I'm not using any virtual environments, it's bare-metal Python package install on Raspberry Pi OS Bullseye Lite 64-bit. I'm accessing it from a remote Windows 11 desktop.
On my development Pi environment I ran into a restart-persistent error that prevents Docker commands from functioning:
> docker compose ps -a
runtime.bucketMask(...)
/usr/local/go/src/runtime/map_fast64.go:132
runtime.bucketMask(...)
/usr/local/go/src/runtime/map_fast64.go:132
runtime.bucketMask(...)
/usr/local/go/src/runtime/map_fast64.go:132
...
The Docker service is running, but reports it can't find the memory controller:
```bash
> sudo systemctl status docker
โ docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-01-15 13:19:32 AEDT; 19min ago
TriggeredBy: โ docker.socket
Docs: https://docs.docker.com
Main PID: 730 (dockerd)
Tasks: 29
CPU: 2.788s
CGroup: /system.slice/docker.service
โโ730 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
โโ959 /usr/bin/docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 9001 -container-ip 172.17.0.2 -container-port 9001
โโ966 /usr/bin/docker-proxy -proto tcp -host-ip :: -host-port 9001 -container-ip 172.17.0.2 -container-port 9001
Jan 15 13:19:03 sigdev dockerd[730]: time="2022-01-15T13:19:03.485258959+11:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Jan 15 13:19:14 sigdev dockerd[730]: time="2022-01-15T13:19:14.794604952+11:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
Jan 15 13:19:14 sigdev dockerd[730]: time="2022-01-15T13:19:14.937609414+11:00" level=warning msg="Unable to find memory controller"
Jan 15 13:19:14 sigdev dockerd[730]: time="2022-01-15T13:19:14.939336801+11:00" level=info msg="Loading containers: start."
Jan 15 13:19:17 sigdev dockerd[730]: time="2022-01-15T13:19:17.856453554+11:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
Jan 15 13:19:21 sigdev dockerd[730]: time="2022-01-15T13:19:21.904047826+11:00" level=info msg="Loading containers: done."
Jan 15 13:19:31 sigdev dockerd[730]: time="2022-01-15T13:19:31.842295617+11:00" level=info msg="Docker daemon" commit=459d0df graphdriver(s)=overlay2 version=20.10.12
Jan 15 13:19:31 sigdev dockerd[730]: time="2022-01-15T13:19:31.869054408+11:00" level=info msg="Daemon has completed initialization"
Jan 15 13:19:32 sigdev dockerd[730]: time="2022-01-15T13:19:32.359792900+11:00" level=info msg="API listen on /run/docker.sock"
Jan 15 13:19:32 sigdev systemd[1]: Started Docker Application Container Engine.
System memory is okay:
> free -m
total used free shared buff/cache available
Mem: 1849 153 1320 0 376 1637
Swap: 99 0 99
htop
shows containerd processes are consuming resources:
604 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.89 โโ containerd
623 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.10 โ โโ containerd
624 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.03 โ โโ containerd
625 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.13 โ โโ containerd
626 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.00 โ โโ containerd
627 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.00 โ โโ containerd
635 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.08 โ โโ containerd
636 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.16 โ โโ containerd
637 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.15 โ โโ containerd
979 root 20 0 1374M 38964 24724 S 0.0 2.1 0:00.07 โ โโ containerd
I'm unsure why this has become an issue. It's possible an update/procedure I conducted along the way altered something. I haven't been maticulously documenting package installs.
Without success, I tried adding the line cgroup_enable=memory
to the file /boot/cmdline.txt
.
Which was suggested for a similiarly appearing issue provided from here:
https://www.linuxquestions.org/questions/slackware-arm-108/trouble-with-kernel-5-4-65-and-docker-unable-to-find-memory-in-controller-set-4175682623/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.