Comments (7)
Oh, you mean that you have a command that works with both gnu and busybox. That's fine, can you please create a PR to fix that?
from homeassistant_on_openwrt.
It's difficult to say without logs, but
echo 'python3-base - 3.10.9-1 - This package contains only the interpreter and the bare minimum for the interpreter to start.' | grep -Eo '\d+\.\d+'
3.10
works correctly and returns the python's version.
You may add set -x
in the beginning of the file to track every executed command and find a real last command
from homeassistant_on_openwrt.
Busybox version of grep
root@Openwrt:~# opkg list | grep python3-base | head -n 1 | grep -Eo '\d+.\d+'
3.10
9-1
root@Openwrt:~#
root@Openwrt:~# grep
BusyBox v1.35.0 (2023-04-27 20:28:15 UTC) multi-call binary.
GNU version of grep
root@Openwrt:~# opkg list | grep python3-base | head -n 1 | grep -Eo '\d+.\d+'
root@Openwrt:~#
root@Openwrt:~# opkg list | grep python3-base | head -n 1 | grep -Eo '[[:digit:]]+.[[:digit:]]+'
3.10
9-1
root@Openwrt:~# grep --version
grep (GNU grep) 3.7
from homeassistant_on_openwrt.
You use a different command, not from the script. Note a backslash before the dot in the script in the latest version
from homeassistant_on_openwrt.
You are right. But still my point is valid. Those regex won't work with GNU grep which returns null.
Busybox grep
root@OPIPlusLTS:~# opkg list | grep python3-base | head -n 1 | grep -Eo '\d+\.\d+'
3.9
root@OPIPlusLTS:~# opkg list | grep python3-base | head -n 1 | grep -Eo '[[:digit:]]+\.[[:digit:]]+'
3.9
root@OPIPlusLTS:~# grep
BusyBox v1.33.2 (2022-04-16 12:59:34 UTC) multi-call binary.
GNU grep
root@OPIPlusLTS:~# opkg list | grep python3-base | head -n 1 | grep -Eo '\d+\.\d+'
root@OPIPlusLTS:~# opkg list | grep python3-base | head -n 1 | grep -Eo '[[:digit:]]+\.[[:digit:]]+'
3.9
root@OPIPlusLTS:~# grep --version
grep (GNU grep) 3.6
from homeassistant_on_openwrt.
@hugoleosp Script works. opkg install python3-pip-src
is needed for openwrt 22.03 branch.
from homeassistant_on_openwrt.
Fixed by #32
from homeassistant_on_openwrt.
Related Issues (20)
- HA Log error radios==0.1.1 package not able to be installed HOT 3
- pip complaining about update HOT 1
- script fails at install of "frozenlist-1.3.3" package using pip HOT 2
- zeroconf HOT 1
- error: subprocess-exited-with-error HOT 7
- Installation on External Storage HOT 4
- Is it HomeAssistant OS or docker container? HOT 1
- How to delete previous owner? HOT 1
- Does this version support the full plugin? HOT 2
- Error on transport creation for incoming connection HOT 7
- bluetooth to wifi proxy support missing? HOT 1
- doesnt appear to work for Banana PI BPI-R4 / missing dependency libbz2 HOT 5
- unable to finish homeassistant init process HOT 5
- "sed: unmatched '/'" stops the installation. HOT 3
- Homeassistant have to be restarted before each access. HOT 5
- it can run on arm aarch64 platform? HOT 1
- Whether or not you can specify a mounting location
- Components MQTT doesn't work since version 2024.02.1
- No package python3-gdbm HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeassistant_on_openwrt.