# Getting error when trying to install

**URL:** https://community.tempest.earth/t/getting-error-when-trying-to-install/20271
**Category:** WeatherFlow PiConsole
**Created:** [March 3, 2023, 8:22pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271 "2023-03-03T20:22:56Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![mabeatty1978](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/mabeatty1978/32/15139_2.png) [@mabeatty1978](https://community.tempest.earth/u/mabeatty1978)
#### Post date: [March 3, 2023, 8:22pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/1 "2023-03-03T20:22:56Z")

</div>

I got wrapped up in the update issue and tried fixing it myself by deleting wfpiconsole and doing a fresh install. The install failed with:

```auto
Updated build/lib.linux-armv7l-cpython-37/kivy/include/config.h
      Updated /tmp/pip-req-build-5f9rftq_/kivy/include/config.h
      Updated build/lib.linux-armv7l-cpython-37/kivy/include/config.pxi
      Updated /tmp/pip-req-build-5f9rftq_/kivy/include/config.pxi
      Updated build/lib.linux-armv7l-cpython-37/kivy/setupconfig.py
      Updated /tmp/pip-req-build-5f9rftq_/kivy/setupconfig.py
      Detected compiler is unix
       /tmp/pip-req-build-5f9rftq_/setup.py:370: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
         cy_ver = LooseVersion(cy_version_str)
       /tmp/pip-req-build-5f9rftq_/setup.py:373: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
         if cy_ver < LooseVersion(MIN_CYTHON_STRING):
       /tmp/pip-req-build-5f9rftq_/setup.py:377: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
         elif cy_ver > LooseVersion(MAX_CYTHON_STRING):
       warning: kivy/graphics/common.pxi:9:4: 'const_char_ptr' redeclared
       warning: kivy/graphics/common.pxi:23:4: 'size_t' redeclared
       warning: kivy/core/window/_window_sdl2.pyx:430:14: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
       error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Kivy
Failed to build Kivy
ERROR: Could not build wheels for Kivy, which is required to install pyproject.toml-based projects

```

---

<div class="post-metadata">

### Author: ![chrisn997](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@chrisn997](https://community.tempest.earth/u/chrisn997)
#### Post date: [March 3, 2023, 10:38pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/2 "2023-03-03T22:38:55Z")

</div>

I am having the same issue trying to update.

---

<div class="post-metadata">

### Author: ![mabeatty1978](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/mabeatty1978/32/15139_2.png) [@mabeatty1978](https://community.tempest.earth/u/mabeatty1978)
#### Post date: [March 4, 2023, 2:09am UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/3 "2023-03-04T02:09:02Z")

</div>

Well… I managed to fix it, but not the way I wanted to. I installed it with “sudo”…but I’m kinda hoping to not have to do that. I’d rather it just run as my local user.

Any ideas?

---

<div class="post-metadata">

### Author: ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)
#### Post date: [March 4, 2023, 6:58am UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/4 "2023-03-04T06:58:54Z")

</div>

@mabeatty1978 and @chrisn997, can you let me know which Raspberry Pi and OS combination you are using? You shouldn’t have to use `sudo` and I’m fairly confident the installer should work on all supported hardware/OS combinations

---

<div class="post-metadata">

### Author: ![mabeatty1978](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/mabeatty1978/32/15139_2.png) [@mabeatty1978](https://community.tempest.earth/u/mabeatty1978)
#### Post date: [March 4, 2023, 4:17pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/5 "2023-03-04T16:17:41Z")

</div>

Pi 3 Model B, version 10 (buster).

I did install it before fine without problem, not sure what has happened since

---

<div class="post-metadata">

### Author: ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)
#### Post date: [March 4, 2023, 4:55pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/6 "2023-03-04T16:55:47Z")

</div>

If you managed to install it before, I would suggest starting with a fresh image of Raspberry Pi OS (Buster) on your SD card and trying the install again. Hopefully that’ll fix what ever issue is now preventing it from installing

---

<div class="post-metadata">

### Author: ![DavidK](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/davidk/32/9445_2.png) [@DavidK](https://community.tempest.earth/u/DavidK)
#### Post date: [March 4, 2023, 5:10pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/7 "2023-03-04T17:10:16Z")

</div>

@peter I’m using a 4B with Buster. I want to do a clean install of Bullseye but I’ve got other software that I’ll need to reload and it’ll take me a bit to remember what I’ve got and get it all reloaded. In the meantime, is there a way to fall back to the previous version, which was working fine?

---

<div class="post-metadata">

### Author: ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)
#### Post date: [March 4, 2023, 5:17pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/8 "2023-03-04T17:17:15Z")

</div>

Did you run `wfpiconsole update` and how far did it get? Have you tried just running `wfpiconsole start`? If the update didn’t finish, then you may still be on the old version

---

<div class="post-metadata">

### Author: ![DavidK](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/davidk/32/9445_2.png) [@DavidK](https://community.tempest.earth/u/DavidK)
#### Post date: [March 4, 2023, 5:33pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/9 "2023-03-04T17:33:10Z")

</div>

Yes, simply starting it does work .

It seems like the issue with the install is with cryptography, I’ve put a copy of the install log [here](https://pastebin.com/01QsjPr9). I don’t recall ever needing to compile that module previously and don’t have a Rust compiler install. If that’s the only way to get this to work I can certainly do that, but I wanted to check with you first.

---

<div class="post-metadata">

### Author: ![beaton](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@beaton](https://community.tempest.earth/u/beaton)
#### Post date: [March 5, 2023, 1:16am UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/10 "2023-03-05T01:16:47Z")

</div>

@peter Two PI 3B+ and buster. Same failed install on both. Error messages advised to install "pip install --upgrade pip and too install Rust. Did both those things and the updage completed successfully. However when I do wfpiconsole start I get the following  
pi@WeatherFlowPi:~ $ wfpiconsole start  
[INFO] [Logger] Record log in /home/pi/.kivy/logs/kivy\_23-03-05\_19.txt  
[INFO] [Kivy] v2.1.0  
[INFO] [Kivy] Installed at “/home/pi/.local/lib/python3.7/site-packages/kivy/ **init**.py”  
[INFO] [Python] v3.7.3 (default, Oct 31 2022, 14:04:00)  
[GCC 8.3.0]  
[INFO] [Python] Interpreter at “/usr/bin/python3”  
[INFO] [Logger] Purge log fired. Processing…  
[INFO] [Logger] Purge finished!

# =================================================== New version detected Starting wfpiconsole configuration wizard

Required fields are marked with an asterix (\*)

## API keys

Traceback (most recent call last):  
File “main.py”, line 35, in   
configFile.update()  
File “/home/pi/wfpiconsole/lib/config.py”, line 155, in update  
copyConfigKey(newConfig, currentConfig, Section, Key, defaultConfig()[Section][Key])  
File “/home/pi/wfpiconsole/lib/config.py”, line 270, in copyConfigKey  
validateAPIKeys(newConfig)  
File “/home/pi/wfpiconsole/lib/config.py”, line 531, in validateAPIKeys  
CHECKWX = requests.get(URL, headers=header).json()  
File “/usr/lib/python3/dist-packages/requests/api.py”, line 75, in get  
return request(‘get’, url, params=params, \*\*kwargs)  
File “/usr/lib/python3/dist-packages/requests/api.py”, line 60, in request  
return session.request(method=method, url=url, \*\*kwargs)  
File “/usr/lib/python3/dist-packages/requests/sessions.py”, line 533, in request  
resp = self.send(prep, \*\*send\_kwargs)  
File “/usr/lib/python3/dist-packages/requests/sessions.py”, line 646, in send  
r = adapter.send(request, \*\*kwargs)  
File “/usr/lib/python3/dist-packages/requests/adapters.py”, line 449, in send  
timeout=timeout  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 600, in urlopen  
chunked=chunked)  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 343, in \_make\_request  
self.\_validate\_conn(conn)  
File “/usr/lib/python3/dist-packages/urllib3/connectionpool.py”, line 841, in _validate\_conn  
conn.connect()  
File “/usr/lib/python3/dist-packages/urllib3/connection.py”, line 332, in connect  
cert\_reqs=resolve\_cert\_reqs(self.cert\_reqs),  
File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 264, in create\_urllib3\_context  
context = SSLContext(ssl\_version or ssl.PROTOCOL\_SSLv23)  
File “/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py”, line 391, in **init**  
self.\_ctx = OpenSSL.SSL.Context(self.protocol)  
File “/home/pi/.local/lib/python3.7/site-packages/OpenSSL/SSL.py”, line 674, in **init**  
res = \_lib.SSL\_CTX\_set\_ecdh\_auto(context, 1)  
AttributeError: module ‘lib’ has no attribute ‘SSL\_CTX\_set\_ecdh\_auto’

---

<div class="post-metadata">

### Author: ![vinceskahan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vinceskahan/32/2785_2.png) [@vinceskahan](https://community.tempest.earth/u/vinceskahan)
#### Post date: [March 5, 2023, 1:20am UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/11 "2023-03-05T01:20:06Z")

</div>

Just for grins, try this if you have time.

Save your .local and wfpiconsole and .kivy and .cache trees aside for safekeeping, then try a full install again. Does it install and work ?

The reason I ask is that your python version of 3.7.3 looks old. A current one would be 3.9.2

---

<div class="post-metadata">

### Author: ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)
#### Post date: [March 5, 2023, 4:26am UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/12 "2023-03-05T04:26:37Z")

</div>

Can you share the output of

`cat /etc/os-release`

and

`cat /proc/device-tree/model`

Thanks!

---

<div class="post-metadata">

### Author: ![beaton](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@beaton](https://community.tempest.earth/u/beaton)
#### Post date: [March 5, 2023, 9:00am UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/13 "2023-03-05T09:00:40Z")

</div>

pi@WeatherFlowPi:~ $ cat /etc/os-release  
PRETTY\_NAME=“Raspbian GNU/Linux 10 (buster)”  
NAME=“Raspbian GNU/Linux”  
VERSION\_ID=“10”  
VERSION=“10 (buster)”  
VERSION\_CODENAME=buster  
ID=raspbian  
ID\_LIKE=debian  
HOME\_URL=“[http://www.raspbian.org/](http://www.raspbian.org/)”  
SUPPORT\_URL=“[RaspbianForums - Raspbian](http://www.raspbian.org/RaspbianForums)”  
BUG\_REPORT\_URL=“[RaspbianBugs - Raspbian](http://www.raspbian.org/RaspbianBugs)”  
cat /proc/device-tree/model  
Raspberry Pi 4 Model B Rev 1.1pi@WeatherFlowPi:~ $

---

<div class="post-metadata">

### Author: ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)
#### Post date: [March 5, 2023, 9:55am UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/14 "2023-03-05T09:55:55Z")

</div>

> [@beaton](#):
>
> Raspberry Pi 4 Model B Rev 1.1pi

This is your issue: you are running the Buster version of Raspberry Pi OS on a Pi4. You need to upgrade to the Bullseye version and that will fix all the issues with the console

---

<div class="post-metadata">

### Author: ![charles1](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@charles1](https://community.tempest.earth/u/charles1)
#### Post date: [March 5, 2023, 5:22pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/15 "2023-03-05T17:22:38Z")

</div>

I’m having trouble updating to 23.3.1. I get an error (see screen shot).

Other details of my system:  
Raspberry Pi 4 Model B Rev 1.2pi@raspberrypi:~ $ cat /etc/os-release  
PRETTY\_NAME=“Raspbian GNU/Linux 10 (buster)”  
NAME=“Raspbian GNU/Linux”  
VERSION\_ID=“10”  
VERSION=“10 (buster)”  
VERSION\_CODENAME=buster  
ID=raspbian  
ID\_LIKE=debian  
HOME\_URL=“[http://www.raspbian.org/](http://www.raspbian.org/)”  
SUPPORT\_URL=“[RaspbianForums - Raspbian](http://www.raspbian.org/RaspbianForums)”  
BUG\_REPORT\_URL=“[RaspbianBugs - Raspbian](http://www.raspbian.org/RaspbianBugs)”

Thanks in advance.

 ![wfpiconsole error](https://us1.discourse-cdn.com/flex020/uploads/sws/original/2X/0/061f406701e936d5140cf3601be2323f212e5c51.jpeg)

---

<div class="post-metadata">

### Author: ![vinceskahan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/vinceskahan/32/2785_2.png) [@vinceskahan](https://community.tempest.earth/u/vinceskahan)
#### Post date: [March 5, 2023, 5:56pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/16 "2023-03-05T17:56:34Z")

</div>

Try “sudo apt install rustc” to install the Rust compiler

I ran into this in the past. pip wants to install the crypto library but it needs the rust compiler to do so.

---

<div class="post-metadata">

### Author: ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)
#### Post date: [March 5, 2023, 7:04pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/17 "2023-03-05T19:04:24Z")

</div>

Either do as Vince says, or preferably see the post right above yours:

> [@Getting error when trying to install](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/14):
>
> This is your issue: you are running the Buster version of Raspberry Pi OS on a Pi4. You need to upgrade to the Bullseye version and that will fix all the issues with the console

---

<div class="post-metadata">

### Author: ![charles1](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@charles1](https://community.tempest.earth/u/charles1)
#### Post date: [March 5, 2023, 11:20pm UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/18 "2023-03-05T23:20:21Z")

</div>

Thanks for your input. I ended up taking out the SD card and flashing the new OS (Bullseye) and starting over.  
The only thing I lost was the ability to make the screen go dark (or asleep) between midnight and 7AM. It was a Raspberry Pi command line code, but I don’t know what it was.

---

<div class="post-metadata">

### Author: ![beaton](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@beaton](https://community.tempest.earth/u/beaton)
#### Post date: [March 6, 2023, 2:40am UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/19 "2023-03-06T02:40:58Z")

</div>

Thanks @Peter reflashed with latest OS and all good. On a positive note got more “when are you going to get this working again” from Wife than any other piece of technology in the house of which there is lots. A testament to the nice integration and usefulness of wfpiconsole.  
Regards,  
Bill Eaton

---

<div class="post-metadata">

### Author: ![beaton](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@beaton](https://community.tempest.earth/u/beaton)
#### Post date: [March 6, 2023, 2:42am UTC](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271/20 "2023-03-06T02:42:47Z")

</div>

Thanks @vinceskahan - did give this a try but in the end decided probably best to just reflash with latest version of pi os and reinstall which did resolve problem.  
Regards,

[Next page](https://community.tempest.earth/t/getting-error-when-trying-to-install/20271.md?page=2)
