Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions on Raspberry Pi 3/4 installation not working #980

Closed
rowlandrose opened this issue Feb 20, 2021 · 17 comments
Closed

Instructions on Raspberry Pi 3/4 installation not working #980

rowlandrose opened this issue Feb 20, 2021 · 17 comments

Comments

@rowlandrose
Copy link

This happened yesterday and today. I'm following the instructions on this wiki page: https://github.com/Chia-Network/chia-blockchain/wiki/Raspberry-Pi. My device is a Raspberry Pi 400 on Rasberry Pi OS 64 bit. I get as far as sh install.sh but it always gives me this error:

ERROR: Could not find a version that satisfies the requirement clvm-rs==0.1.3 (from chia-blockchain)
ERROR: No matching distribution found for clvm-rs==0.1.3

Next I tried sudo pip3 install clvm-rs==0.1.3 but I get this error:

pi@raspberrypi:~/chia-blockchain $ sudo pip3 install clvm-rs==0.1.3
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting clvm-rs==0.1.3
  Could not find a version that satisfies the requirement clvm-rs==0.1.3 (from versions: 0.1.0, 0.1.1, 0.1.2)
No matching distribution found for clvm-rs==0.1.3

I even downloaded and tried installing the relevant whl file from here: https://pypi.org/project/clvm-rs/0.1.3/#files but it said it wasn't compatible.

Full output of sh install.sh:

pi@raspberrypi:~/chia-blockchain $ sh install.sh
apt-get is /usr/bin/apt-get
Installing on Ubuntu/Debian pre 20.04 LTS
Hit:1 http://packages.microsoft.com/repos/code stable InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease                  
Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease               
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).
The following packages were automatically installed and are no longer required:
  gconf-service gconf2-common libbluetooth3 libexiv2-14 libgconf-2-4 libgfortran3 libgmime-2.6-0 libncurses5 libssl1.0.2 lxplug-volume uuid-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 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://download.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://download.chia.net/simple/
Obtaining file:///home/pi/chia-blockchain
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting aiosqlite@ git+https://github.com/mariano54/aiosqlite.git@47c7b21dd04adb1d41073ee9911a9d4b9c4b370f#egg=aiosqlite
  Cloning https://github.com/mariano54/aiosqlite.git (to revision 47c7b21dd04adb1d41073ee9911a9d4b9c4b370f) to /tmp/pip-install-_lnd47tt/aiosqlite_9816e0d865e64385ba4b512d2783839e
  Running command git clone -q https://github.com/mariano54/aiosqlite.git /tmp/pip-install-_lnd47tt/aiosqlite_9816e0d865e64385ba4b512d2783839e
  Running command git rev-parse -q --verify 'sha^47c7b21dd04adb1d41073ee9911a9d4b9c4b370f'
  Running command git fetch -q https://github.com/mariano54/aiosqlite.git 47c7b21dd04adb1d41073ee9911a9d4b9c4b370f
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
    Preparing wheel metadata ... done
Collecting blspy==0.3.5
  Using cached blspy-0.3.5.tar.gz (258 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting aiter==0.13.20191203
  Using cached https://www.piwheels.org/simple/aiter/aiter-0.13.20191203-py3-none-any.whl (14 kB)
Collecting websockets==8.1.0
  Using cached https://www.piwheels.org/simple/websockets/websockets-8.1-cp37-cp37m-linux_armv7l.whl (78 kB)
Collecting keyring==21.5.0
  Using cached https://www.piwheels.org/simple/keyring/keyring-21.5.0-py3-none-any.whl (32 kB)
Collecting PyYAML==5.4.1
  Using cached PyYAML-5.4.1.tar.gz (175 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting chiapos==0.12.44
  Using cached chiapos-0.12.44.tar.gz (1.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting concurrent-log-handler==0.9.19
  Using cached https://www.piwheels.org/simple/concurrent-log-handler/concurrent_log_handler-0.9.19-py2.py3-none-any.whl (18 kB)
Collecting clvm==0.8.9
  Using cached clvm-0.8.9-py3-none-any.whl (18 kB)
Collecting chiabip158==0.19
  Using cached https://www.piwheels.org/simple/chiabip158/chiabip158-0.19-cp37-cp37m-linux_armv7l.whl (2.0 MB)
Collecting bitstring==3.1.7
  Using cached https://www.piwheels.org/simple/bitstring/bitstring-3.1.7-py3-none-any.whl (37 kB)
Collecting cryptography==3.3.2
  Using cached https://www.piwheels.org/simple/cryptography/cryptography-3.3.2-cp37-cp37m-linux_armv7l.whl (782 kB)
Collecting clvm-tools==0.3.5
  Using cached clvm_tools-0.3.5-py3-none-any.whl (35 kB)
Collecting colorlog==4.7.2
  Using cached https://www.piwheels.org/simple/colorlog/colorlog-4.7.2-py2.py3-none-any.whl (10 kB)
Collecting chiavdf==0.15.0
  Using cached chiavdf-0.15.0.tar.gz (639 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting aiohttp==3.7.3
  Using cached https://www.piwheels.org/simple/aiohttp/aiohttp-3.7.3-cp37-cp37m-linux_armv7l.whl (1.3 MB)
Collecting sortedcontainers==2.3.0
  Using cached https://www.piwheels.org/simple/sortedcontainers/sortedcontainers-2.3.0-py2.py3-none-any.whl (29 kB)
Collecting setproctitle==1.2.2
  Using cached https://www.piwheels.org/simple/setproctitle/setproctitle-1.2.2-cp37-cp37m-linux_armv7l.whl (37 kB)
ERROR: Could not find a version that satisfies the requirement clvm-rs==0.1.3 (from chia-blockchain)
ERROR: No matching distribution found for clvm-rs==0.1.3
@dorkmo
Copy link

dorkmo commented Feb 20, 2021

ive got it running on the ubuntu pi version, if youre not tied to the other os you might try it

@hoffmang9
Copy link
Member

There is really no reason it shouldn't work on both 64 bit versions. I have one running each so will check it out shortly.

-Gene

@SebastianMetzger
Copy link

i have the same issue on Pi, even when going back to beta27, I get the same error with an older version of the dependency:

ERROR: Could not find a version that satisfies the requirement clvm-rs==0.1.2 (from chia-blockchain)
ERROR: No matching distribution found for clvm-rs==0.1.2

@hoffmang9
Copy link
Member

Unfortunately, this just works for me. Now it's odd that it isn't happy with the Pypi wheels so I will continue to investigate but.

uname -a : Linux raspberrypi 5.10.5-v8+ #1392 SMP PREEMPT Sat Jan 9 18:56:30 GMT 2021 aarch64 GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
cat /proc/cpuinfo | tail -4
Hardware	: BCM2835
Revision	: b03111
Serial		: 10000000e909854d
Model		: Raspberry Pi 4 Model B Rev 1.1
Collecting clvm-rs==0.1.3
  Downloading https://download.chia.net/simple/clvm-rs/clvm_rs-0.1.3-cp37-cp37m-manylinux2014_aarch64.whl (1.0 MB)
     |████████████████████████████████| 1.0 MB 492 kB/s 

And now I see the problem for at least @rowlandrose....

From his output:

Collecting setproctitle==1.2.2
  Using cached https://www.piwheels.org/simple/setproctitle/setproctitle-1.2.2-cp37-cp37m-linux_armv7l.whl

See that linux_armv7l? You're running a 32 bit Raspbian and we don't support that. 64 bit Raspbian is availabe.

@SebastianMetzger what does uname -a say for you?

@SebastianMetzger
Copy link

@hoffmang9 You are probably right, seems I have the 32bit version installed:
Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux
Actually just assumed it was 64bit, I use a preinstalled version I received in a kit. Will look into upgrading/reinstalling os 👍

@hoffmang9
Copy link
Member

There are instructions for installing the 64 bit image on the wiki - second paragraph - https://github.com/Chia-Network/chia-blockchain/wiki/Raspberry-Pi

@hoffmang9
Copy link
Member

This should make this all simpler - #983

@SebastianMetzger
Copy link

Thanks, was quite easy to upgrade to 64bit:
Linux raspberrypi 5.10.16-v8+ #1402 SMP PREEMPT Tue Feb 16 14:16:34 GMT 2021 aarch64 GNU/Linux
With current main version, I unfortunaltey still get the original error: 🤔

ERROR: Could not find a version that satisfies the requirement clvm-rs==0.1.3 (from chia-blockchain)
ERROR: No matching distribution found for clvm-rs==0.1.3

I also removed the folder completely and cloned it again to download all dependency again.

@hoffmang9
Copy link
Member

If you installed over the same filesystem then make sure you are both out of the venv and do a rm -rf venv in chia-blockchain and run sh install.sh again

@hoffmang9
Copy link
Member

Out of the venv = deactivate

@hoffmang9
Copy link
Member

I also removed the folder completely and cloned it again to download all dependency again.
Missed that. Hrm.

@SebastianMetzger
Copy link

removed .cache/pip as well and still the same error.
maybe necessary to install 64bit from scratch? Might be a lot of dependencies in the OS only in 32bit or something? 🤔

@hoffmang9
Copy link
Member

On a Pi 4 2GB that I imaged clean it works like a charm.. Here it is syncing again after I blew it away to test this:

image

@hoffmang9
Copy link
Member

It hit me that your python3.7 may still be a 32 bit compiled version as that will run on a 64 bit OS but won't run 64 bit dependencies like ours.

@hoffmang9
Copy link
Member

Try this:

(venv) pi@raspberrypi:~/chia-blockchain $ python3
Python 3.7.3 (default, Jul 25 2020, 13:03:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.architecture()
('64bit', 'ELF')
>>> exit()

@SebastianMetzger
Copy link

yep, this is still 32bit 🙈

>>> platform.architecture()
('32bit', 'ELF')

Will see how to update

@rowlandrose
Copy link
Author

And now I see the problem for at least @rowlandrose....

From his output:

Collecting setproctitle==1.2.2
  Using cached https://www.piwheels.org/simple/setproctitle/setproctitle-1.2.2-cp37-cp37m-linux_armv7l.whl

See that linux_armv7l? You're running a 32 bit Raspbian and we don't support that. 64 bit Raspbian is availabe.

Thank you so much. Turns out I had not actually installed Raspberry Pi OS 64 bit. I had instead followed instructions I found online to run with a 64 bit kernel, mistakenly thinking it was a full 64-bit OS installation. I did a proper installation of Raspberry Pi OS 64 bit just now, and sure enough I was able to successfully run sh install.sh. Sorry for the mistake and thank you for your quick attention. I can't wait to play around further with the Chia blockchain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants