Luc - this worked for me on a 4GB pi4. You'll see I added the ssl library
as well as the rust compiler.
I added the --verbose flag to watch cryptography build since it takes a
'long' time (16 minutes) to build even on a pi4.
# needed for weewx
sudo apt-get install -y gcc
sudo apt-get install -y python3-dev
python3 -m pip install wheel --user
# needed for cryptography
sudo apt-get install -y rustc
sudo apt-get install -y libssl-dev
# this takes many minutes to complete
pip3 install --user cryptography --verbose
# finally - install weewx
python3 -m pip install weewx --user
I might add that you don't need to do the 'trust the weewx repo' steps from
your original post for pip installations.
On Monday, May 29, 2023 at 8:40:14 AM UTC-7 Tom Keffer wrote:
> I'm really surprised that cryptography is not available for your buster
> light. What happens if you just do
>
> *python3 -m pip install cryptography --user*
>
> If that doesn't work, I see 3 choices:
>
> 1. Use a database other than MySQL.
> 2. Use something other than rsa authentication.
> 3. Install the Rust compiler, then try to compile and install
> cryptography from scratch.
>
> -tk
>
> On Mon, May 29, 2023 at 8:20 AM Lucas Heijst <[email protected]> wrote:
>
>> Tom, I followed the steps in Pip troubleshooting
>>
>> I tried the steps below and got errors with the following steps:
>> 1. python3 -m pip install weewx --user
>> 2. python3 -m pip install pymysql[rsa]
>> ----
>>
>> sudo apt update
>>
>> sudo apt upgrade
>>
>> sudo apt -y install gcc python3-dev python3-pip
>>
>> python3 -m pip install wheel
>>
>> python3 -m pip install weewx --user
>>
>>
>> If errors, try this:
>>
>> python3 -m pip install weewx --no-deps
>>
>> python3 -m pip install configobj
>>
>> python3 -m pip install pyserial
>>
>> python3 -m pip install pyusb
>>
>> python3 -m pip install CT3
>>
>> python3 -m pip install ephem
>>
>> python3 -m pip install Pillow
>>
>> python3 -m pip install pymysql[rsa]
>>
>> ----
>> Op maandag 29 mei 2023 om 11:39:38 UTC-3 schreef Tom Keffer:
>>
>>> Funny. I was just writing up a note about this problem (among others).
>>>
>>> See the wiki entry *Pip troubleshooting
>>> <https://github.com/weewx/weewx/wiki/pip-troubleshooting>*.
>>>
>>> On Mon, May 29, 2023 at 7:25 AM Lucas Heijst <[email protected]> wrote:
>>>
>>>> Fresh install of debian bullseye light on RPI 3B
>>>> Tried to install weewx as follows::
>>>> ----
>>>> #Trust weewx.com
>>>> wget -qO - https://weewx.com/keys.html | \
>>>> sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/weewx.gpg
>>>> wget -qO - https://weewx.com/apt/weewx-python3.list | \
>>>> sudo tee /etc/apt/sources.list.d/weewx.list
>>>>
>>>> #Install weewx using PIP
>>>> sudo apt update
>>>> sudo apt -y install gcc python3-dev python3-pip
>>>> pip3 install wheel
>>>> pip3 install weewx --user
>>>> ----
>>>>
>>>> The weewx installation stops with error "can't find Rust compiler", see
>>>> attachment
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "weewx-development" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/weewx-development/25fde959-d149-439f-89a8-6cd5617ed06fn%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/weewx-development/25fde959-d149-439f-89a8-6cd5617ed06fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-development" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-development/47da2f7f-10bd-4bbd-a931-95b9f89483b1n%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/weewx-development/47da2f7f-10bd-4bbd-a931-95b9f89483b1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-development/af565ba7-ecef-4ccc-b4fa-cde5a63dcd5an%40googlegroups.com.