question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing on Rpi 4

See original GitHub issue

Hi I’m havin clvm-rs==0.1.4 error while installing chia on my pi.I have tried installing rust and succeded.But couldn’t install maturin.And i don’t know what to do.

sh install.sh code with clvm-rs==0.1.4 error :

sudo sh install.sh
apt-get is /usr/bin/apt-get
Installing on Ubuntu/Debian pre 20.04 LTS
Get:1 http://archive.raspberrypi.org/debian buster InRelease [32.9 kB]
Get:2 http://archive.raspberrypi.org/debian buster/main armhf Packages [372 kB]
Get:3 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:4 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Fetched 13.4 MB in 8s (1,658 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python3-distutils' instead of 'python3.7-distutils'
python3-distutils is already the newest version (3.7.3-1).
python3.7-venv is already the newest version (3.7.3-2+deb10u2).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Python version is 3.7
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pip in ./venv/lib/python3.7/site-packages (21.0.1)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: wheel in ./venv/lib/python3.7/site-packages (0.36.2)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://pypi.chia.net/simple/
Requirement already satisfied: miniupnpc==2.1 in ./venv/lib/python3.7/site-packages (2.1)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://pypi.chia.net/simple/
Obtaining file:///home/pi/chia-blockchain
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting click@ https://github.com/Chia-Network/click/tarball/master#egg=package-1.0
  Downloading https://github.com/Chia-Network/click/tarball/master
     | 322 kB 218 kB/s
Collecting websockets==8.1.0
  Downloading https://www.piwheels.org/simple/websockets/websockets-8.1-cp37-cp37m-linux_armv7l.whl (78 kB)
     |████████████████████████████████| 78 kB 527 kB/s
Collecting setproctitle==1.2.2
  Downloading https://www.piwheels.org/simple/setproctitle/setproctitle-1.2.2-cp37-cp37m-linux_armv7l.whl (37 kB)
Collecting clvm==0.9.4
  Downloading clvm-0.9.4-py3-none-any.whl (19 kB)
ERROR: Could not find a version that satisfies the requirement clvm-rs==0.1.4 (from chia-blockchain)
ERROR: No matching distribution found for clvm-rs==0.1.4

Maturin installation code with error:

sudo pip install maturin
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting maturin
  Using cached https://files.pythonhosted.org/packages/0a/51/25d94171411d5acaa56d26c5936375e9b1d7a81e2f4cc6f87af47d166616/maturin-0.7.6.tar.gz
  Installing build dependencies ... done
Collecting toml~=0.10.0 (from maturin)
  Using cached https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl
Building wheels for collected packages: maturin
  Running setup.py bdist_wheel for maturin ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-MvXCXB/maturin/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-YubIu3 --python-tag cp27:
  running bdist_wheel
  running build
  installing to build/bdist.linux-aarch64/wheel
  running install
  error: [Errno 2] No such file or directory

  ----------------------------------------
  Failed building wheel for maturin
  Running setup.py clean for maturin
Failed to build maturin
Installing collected packages: toml, maturin
  Running setup.py install for maturin ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-MvXCXB/maturin/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-oxIDcl/install-record.txt --single-version-externally-managed --compile:
    running install
    error: [Errno 2] No such file or directory

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-MvXCXB/maturin/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-oxIDcl/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-MvXCXB/maturin/

Rust installation code with success:

sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  /home/pi/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory located at:

  /home/pi/.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  /home/pi/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

  /home/pi/.profile
  /home/pi/.bashrc

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: aarch64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>1

info: profile set to 'default'
info: default host triple is aarch64-unknown-linux-gnu
info: syncing channel updates for 'stable-aarch64-unknown-linux-gnu'
info: latest update on 2021-03-25, rust version 1.51.0 (2fd73fabe 2021-03-23)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
 15.0 MiB /  15.0 MiB (100 %)   5.5 MiB/s in  3s ETA:  0s
info: downloading component 'rust-std'
 26.3 MiB /  26.3 MiB (100 %)   2.4 MiB/s in  9s ETA:  0s
info: downloading component 'rustc'
 76.9 MiB /  76.9 MiB (100 %)   5.5 MiB/s in 16s ETA:  0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: using up to 500.0 MiB of RAM to unpack components
  5.3 MiB /   5.3 MiB (100 %)   4.8 MiB/s in  1s ETA:  0s
info: installing component 'clippy'
info: installing component 'rust-docs'
 15.0 MiB /  15.0 MiB (100 %)   2.7 MiB/s in  5s ETA:  0s
info: installing component 'rust-std'
 26.3 MiB /  26.3 MiB (100 %)   4.4 MiB/s in  8s ETA:  0s
info: installing component 'rustc'
 76.9 MiB /  76.9 MiB (100 %)   5.0 MiB/s in 16s ETA:  0s
info: installing component 'rustfmt'
info: default toolchain set to 'stable-aarch64-unknown-linux-gnu'

  stable-aarch64-unknown-linux-gnu installed - (error reading rustc version)


Rust is installed now. Great!

To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.

To configure your current shell, run:
source $HOME/.cargo/env

cvlm installation code with error:

sudo pip install clvm-rs
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting clvm-rs
  Using cached https://files.pythonhosted.org/packages/3b/fd/51e6cf80553a3e341c81b36d6d417d6b60d9f029c05e5de5a56a5ed7a6e5/clvm_rs-0.1.2.tar.gz
  Installing build dependencies ... error
  Complete output from command /usr/bin/python -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-fbxb7B --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- maturin:
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://www.piwheels.org/simple
  Collecting maturin
    Using cached https://files.pythonhosted.org/packages/0a/51/25d94171411d5acaa56d26c5936375e9b1d7a81e2f4cc6f87af47d166616/maturin-0.7.6.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
  Collecting toml~=0.10.0 (from maturin)
    Using cached https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl
  Building wheels for collected packages: maturin
    Running setup.py bdist_wheel for maturin: started
    Running setup.py bdist_wheel for maturin: finished with status 'error'
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-rglLjT/maturin/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-3qs7Bg --python-tag cp27:
    running bdist_wheel
    running build
    installing to build/bdist.linux-aarch64/wheel
    running install
    error: [Errno 2] No such file or directory

    ----------------------------------------
    Failed building wheel for maturin
    Running setup.py clean for maturin
  Failed to build maturin
  Installing collected packages: toml, maturin
    Running setup.py install for maturin: started
      Running setup.py install for maturin: finished with status 'error'
      Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-rglLjT/maturin/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-TzgRTV/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-fbxb7B --compile:
      running install
      error: [Errno 2] No such file or directory

      ----------------------------------------
  Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-rglLjT/maturin/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-TzgRTV/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-fbxb7B --compile" failed with error code 1 in /tmp/pip-install-rglLjT/maturin/

  ----------------------------------------
Command "/usr/bin/python -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-fbxb7B --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- maturin" failed with error code 1 in None

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Joseph0002commented, Mar 26, 2021

I’m sorry I have just seen the rpi 4 release in the other platforms section.Thank you for your attention.

0reactions
mariano54commented, Apr 7, 2021

Is it still broken @Joseph0002 ? If so, please re-open

Read more comments on GitHub >

github_iconTop Results From Across the Web

Raspberry Pi Documentation - Getting started
Download the latest version of Raspberry Pi Imager and install it. If you want to use Raspberry Pi Imager from a second Raspberry...
Read more >
How to Install Raspberry Pi OS on Raspberry Pi 4 - Linux Hint
Booting Raspberry Pi OS from the MicroSD Card: ... Insert the microSD card you have just flashed with the Raspberry Pi OS image...
Read more >
How to Set Up a Raspberry Pi for the First Time
1. Insert a microSD card / reader into your computer. · 2. Download and install the official Raspberry Pi Imager. · 3. Click...
Read more >
How to install Ubuntu Desktop on Raspberry Pi 4
What you'll need · A microSD card (9GB minimum, 16GB recommended) · A computer with a microSD card drive · A Raspberry Pi...
Read more >
Setting up your Raspberry Pi
Computer coding for kids, teenagers and young adults. Step-by-step instructions for 250+ free coding projects. Create games, animations, and more with code.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found