OpenVoiceOS / ovos-installer

Open Voice OS and/or HiveMind installer using Ansible with an intuitive and easy Text-based User Interface
https://www.openvoiceos.org
82 stars 24 forks source link

Update README.md #172

Closed ExploWare closed 1 month ago

ExploWare commented 1 month ago

I noticed during my setup I needed to have cargo installed before running the installation script

Summary by CodeRabbit

coderabbitai[bot] commented 1 month ago

Walkthrough

The changes involve an update to the README.md file for the Open Voice OS and HiveMind Installer. The primary modification is the addition of the cargo package to the list of required packages for installation, which previously included only curl, git, and sudo. The Quickstart section has been updated accordingly, while the rest of the document remains unchanged.

Changes

File Change Summary
README.md Updated package requirements to include cargo along with curl, git, and sudo.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Installer
    User->>Installer: Request installation
    Installer->>User: Check required packages
    User->>Installer: Provide package list (curl, git, sudo, cargo)
    Installer->>User: Installation proceeds

🐰 In the garden, the rabbit hops,
With cargo added, the project tops.
Curl and git, they dance in cheer,
A quick start now, let’s all draw near!
Hooray for updates, let’s install with glee,
In the world of code, how happy we’ll be! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❀️ Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
πŸͺ§ Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit , please review it.` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (Invoked using PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. ### Other keywords and placeholders - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. - Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description. - Add `@coderabbitai` anywhere in the PR title to generate the title automatically. ### CodeRabbit Configuration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
goldyfruit commented 1 month ago

Hi @ExploWare

cargo is not required by the ovos-installer as there is no Rust pieces in there.

Do you have any logs or traces?

ExploWare commented 1 month ago
$ sudo apt install curl git sudo curl is already the newest version (8.5.0-2ubuntu10.4). git is already the newest version (1:2.43.0-1ubuntu7.1). sudo is already the newest version (1.9.15p5-3ubuntu5). 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
$ uname -a Linux printer-25f8fc 6.6.44-current-sunxi #1 SMP Sat Aug 3 06:54:42 UTC 2024 armv7l armv7l armv7l GNU/Linux
$ lscpu Architecture: armv7l Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Vendor ID: ARM Model name: Cortex-A7 Model: 5 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Stepping: r0p5 CPU(s) scaling MHz: 37% CPU max MHz: 1296.0000 CPU min MHz: 480.0000 BogoMIPS: 48.00 Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm Vulnerabilities: Gather data sampling: Not affected Itlb multihit: Not affected L1tf: Not affected Mds: Not affected Meltdown: Not affected Mmio stale data: Not affected Reg file data sampling: Not affected Retbleed: Not affected Spec rstack overflow: Not affected Spec store bypass: Not affected Spectre v1: Mitigation; __user pointer sanitization Spectre v2: Not affected Srbds: Not affected Tsx async abort: Not affected
$ sh -c "curl -s https://raw.githubusercontent.com/OpenVoiceOS/ovos-installer/main/installer.sh -o installer.sh && chmod +x installer.sh && sudo ./installer.sh && rm installer.sh"  ++. .::::. .++. :****%@@@@@@%*+**: :++ -#@@@@@@@@@@@@@@#= ++: -**. .%@@@@@@@@@@@@@@@@%. **= =**: .%@@@@@@@@@@@@@@@@@@%. .**+ +**- .%@@@@@@@@@@@@@@@@@@@@%: -*** ***= .%@@@@@@@@@@@@@@@@@@@@@@% =*** :-. ***+ *@@@@@@@@@@@@@@@@@@@@@@@@# +***. -: .**+ .**** =@@@@@@@@@@@@@@@@@@@@@@@@@@+ ****: =**: :*** :****.:%@@@@@@@@@@@@@@@@@@@@@@@@@@@:.****: +**- -***. -****:#@@@@@@@@@@@@@@@@@@@@@@@@@@@@#:****- .***= -*+. =***: =****#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*****= :***+ .+*= .***- +***= =****@@@@@@@@@@@%%#%@@@@@@@@@@@@@@@@@****+ -**** -***: =***+ ****+ +***%@@@@@@@@*-. .. .-*@@@@@@@@@@@@@@%***+ +****. =***= ***** .***** ****@@@@@@@#. -+ ...+. -#+--:-=+#@@@@@#*** *****: *****. -*****: :*****. .***%@@@@@@@: .%=..** ..:-:...-%@@@%***. .*****- .*****- ******- -*****- .**#@@@@@@@@ :@:=%. =#=-+#- .%@@@#**: :*****= -*****+ :******+ +*****= :**%@@@@@@@@- -%%: @- +% *@@@%**: -*****+ +******- +*******. ******+ -**#@@@@@*-. .. #*. .#* #@@@%**- +****** *******+ -===+**+*****-.***+***.=*#%%%%%: .=++=. -+++- =%%%%%#*= ***+***.:*****+**+===- :---:. -******. .*****+@@@@: :@- -@: -#*+++ .:+%@@@@@@@*****. ******- .:---: -***** +****-#@@@. =@....@= *#. . .%@@@@@@@@@#****+ +****- .****+ =****:=@@@= .#*--+# .=***- : #@@@@@@@@@-****= =****. +***= :****. %@@@+. .--. .@-: .%@@@@@@@@* ****- -***+ =***: .**** -@@@@@*=::::=++. +*++**..:#@@@@@@@@%. ****. :***= :***. **** *@@@@@@@@@@@@@%+-....:-*%@@@@@@@@@= +*** ***- *** +**+ #@@#@@@@@@@@@@@@@@@@@@@@@@@@@@@@+ =**+ +**. -+- =**= .@@@*@@@@@@@@@@@@@@@@@@@@@@@@@@+ -**= -+= :**- *%@%+%@@@@@@@@@@@@@@@@@@@@@@@% -**- :: +*#@@##%@@@@@@@@@@@@@@@@@@@@#+ :: =****%@%%@@@@@@@@@@@@@@@@%#**= -*** .+%@@@@@@@@@@@@@@@#= +**- :**+ :=*%@@@@@@%%*=. =**: .**= .::.. -**.  =============================================== OPEN VOICE OS INSTALLER | Version: 86a27ccb =============================================== ➀ Checking for existing instance... [done] ➀ Retrieving OS information... [done] ➀ Detecting AVX/SIMD support... [done] ➀ Checking for Raspberry Pi board... [done] ➀ Detecting sound server... [done] ➀ Detecting display server... [done] ➀ Validating installer package requirements... [done] ➀ Creating installer Python virtualenv... [done] ➀ Installing Ansible requirements in Python virtualenv... [fail] Unable to continue the process, please check /var/log/ovos-installer.log for more details. Please share this URL with us https://dpaste.com/*********

Important sidenote here: Security infringement over here: you are disclosing details of my system without my permission on the internet. I would really like to OPT IN on this dpaste.com postings...

$ cat /var/log/ovos-installer.log [?2004l utils/common.sh: line 116: docker: command not found utils/common.sh: line 119: podman: command not found Already have PKG_NAME='python3' Already have PKG_NAME='python3-dev' Already have PKG_NAME='python3-pip' Already have PKG_NAME='python3-venv' Do not have PKG_NAME='whiptail' Already have PKG_NAME='expect' Already have PKG_NAME='jq' WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Hit:1 http://ports.ubuntu.com noble InRelease Get:2 http://ports.ubuntu.com noble-security InRelease [126 kB] Get:3 http://ports.ubuntu.com noble-updates InRelease [126 kB] Hit:4 http://ports.ubuntu.com noble-backports InRelease Get:5 http://netcup.armbian.com/beta noble InRelease [52.4 kB] Get:6 http://ports.ubuntu.com noble-security/main armhf Packages [266 kB] Get:7 http://ports.ubuntu.com noble-security armhf Contents (deb) [12.1 MB] Get:8 http://netcup.armbian.com/beta noble/main all Packages [1979 B] Get:9 http://netcup.armbian.com/beta noble/main armhf Packages [82.5 kB] Get:10 http://netcup.armbian.com/beta noble/main all Contents (deb) [32.5 kB] Get:11 http://netcup.armbian.com/beta noble/main armhf Contents (deb) [2125 kB] Get:12 http://netcup.armbian.com/beta noble/noble-utils armhf Packages [7500 B] Get:13 http://netcup.armbian.com/beta noble/noble-desktop armhf Packages [43.7 kB] Get:14 http://netcup.armbian.com/beta noble/noble-desktop all Packages [6339 B] Get:15 http://ports.ubuntu.com noble-security/universe armhf Packages [360 kB] Get:16 http://ports.ubuntu.com noble-updates/main armhf Packages [456 kB] Get:17 http://ports.ubuntu.com noble-updates armhf Contents (deb) [13.5 MB] Get:18 http://ports.ubuntu.com noble-updates/universe armhf Packages [489 kB] Fetched 29.8 MB in 35s (862 kB/s) Reading package lists... Building dependency tree... Reading state information... 18 packages can be upgraded. Run 'apt list --upgradable' to see them. WARNING: apt does not have a stable CLI interface. Use with caution in scripts. Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: whiptail 0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded. Need to get 17.2 kB of archives. After this operation, 48.1 kB of additional disk space will be used. Get:1 http://ports.ubuntu.com noble/main armhf whiptail armhf 0.52.24-2ubuntu2 [17.2 kB] Fetched 17.2 kB in 0s (115 kB/s) Selecting previously unselected package whiptail. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 47926 files and directories currently installed.) Preparing to unpack .../whiptail_0.52.24-2ubuntu2_armhf.deb ... Unpacking whiptail (0.52.24-2ubuntu2) ... Setting up whiptail (0.52.24-2ubuntu2) ... Processing triggers for man-db (2.12.0-4build2) ... Collecting uv>=0.4.10 Downloading uv-0.4.20-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.metadata (11 kB) Downloading uv-0.4.20-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (12.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 2.8 MB/s eta 0:00:00 Installing collected packages: uv Successfully installed uv-0.4.20 Using Python 3.12.3 environment at /home/user/.venvs/ovos-installer Resolved 2 packages in 366ms Prepared 2 packages in 1.24s Uninstalled 1 package in 229ms Installed 2 packages in 105ms - pip==24.0 + pip==24.2 + setuptools==75.1.0 Using Python 3.12.3 environment at /home/user/.venvs/ovos-installer Resolved 16 packages in 1.49s error: Failed to prepare distributions Caused by: Failed to fetch wheel: cryptography==43.0.1 Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1) [stdout] Running `maturin pep517 build-wheel -i /root/.cache/uv/builds-v0/.tmpLeRqeB/bin/python --compatibility off` [stderr] πŸ’₯ maturin failed Caused by: Cargo metadata failed. Do you have cargo in your PATH? Caused by: No such file or directory (os error 2) Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/root/.cache/uv/builds-v0/.tmpLeRqeB/bin/python', '--compatibility', 'off'] returned non-zero exit status 1

when I did sudo apt install cargo all was fine and the installer continued

goldyfruit commented 1 month ago

Based on the logs, you are running a 32-bit OS which is not supported by the installer.

Get:9 http://netcup.armbian.com/beta noble/main armhf Packages [82.5 kB]
Downloading uv-0.4.20-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.metadata (11 kB)
ExploWare commented 1 month ago

Based on the logs, you are running a 32-bit OS which is not supported by the installer.

Get:9 http://netcup.armbian.com/beta noble/main armhf Packages [82.5 kB]
Downloading uv-0.4.20-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.metadata (11 kB)

Not only a 32bits OS, thats why I posted my lscpu also: it is an arm Single Board Computer with and H3 processor, which is a 32bits SOC.

I did read I needed to build something myself for this earlier this week, but I couldn't find anything. But apart from that, the rest of the installer did a great attempt but couldn't finish yet...

TASK [ovos_installer : Install Open Voice OS in Python venv] ***************************************************************************************************************************
Thursday 10 October 2024  23:43:25 +0200 (0:00:00.157)       0:04:25.033 ****** 
FAILED - RETRYING: [127.0.0.1]: Install Open Voice OS in Python venv (5 retries left).
FAILED - RETRYING: [127.0.0.1]: Install Open Voice OS in Python venv (4 retries left).
FAILED - RETRYING: [127.0.0.1]: Install Open Voice OS in Python venv (3 retries left).
FAILED - RETRYING: [127.0.0.1]: Install Open Voice OS in Python venv (2 retries left).
FAILED - RETRYING: [127.0.0.1]: Install Open Voice OS in Python venv (1 retries left).
ExploWare commented 1 month ago

I'll close this as this is not based on a 64bits experience. I just didn't expect that being the cause of the search for cargo :)

goldyfruit commented 1 month ago

Important sidenote here: Security infringement over here: you are disclosing details of my system without my permission on the internet. I would really like to OPT IN on this dpaste.com postings...

That is a really good point, I'm gonna see what I can do about that.

I'll close this as this is not based on a 64bits experience. I just didn't expect that being the cause of the search for cargo :)

:+1:

goldyfruit commented 1 month ago

That is a really good point, I'm gonna see what I can do about that.

Done πŸ‘ https://github.com/OpenVoiceOS/ovos-installer/pull/176