Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Tom Keffer
Good sleuthing, Vince. I've added this to the *Pip troubleshooting* wiki. https://github.com/weewx/weewx/wiki/pip-troubleshooting On Mon, May 29, 2023 at 3:46 PM Vince Skahan wrote: > ok - did a quick check of the latest 64-bit desktop and 32-bit lite > RaspiOS. All that's needed for the lite

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Vince Skahan
ok - did a quick check of the latest 64-bit desktop and 32-bit lite RaspiOS. All that's needed for the lite os is to add the dpkg of python3-cryptography. It's in the desktop contents but you need to add it to the lite variant. Once you do that, installing weewx is a one-step "pip3 install -

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Tom Keffer
> > FWIW, the Raspi Foundation still recommend their 32-bit variant according > to their website, but the 64-bit variants are there too of course... > Good to know. It may not be the 32-bits that causes the problem, but rather the "lite" version. Does the regular version of Raspberry Pi OS includ

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Vince Skahan
On Monday, May 29, 2023 at 1:30:20 PM UTC-7 Tom Keffer wrote: I don't think a user can expect a prebuilt wheel for a 32-bit operating system --- they're pretty rare nowadays. FWIW, the Raspi Foundation still recommend their 32-bit variant according to their website, but the 64-bit variants are

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Lucas Heijst
Vince, Below the information when logged in. Linux pi11 5.10.103+ #1529 Tue Mar 8 12:19:18 GMT 2022 armv6l Linux pi21 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l Linux pi31 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 Linux pi33 5.10.103-v7+ #1529 SMP Tue Mar 8

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Lucas Heijst
Vince, FYI cat /boot/issue.txt pi11: Raspberry Pi reference 2023-05-03 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 638c7521ee0c431fafca1e2bd4fd25705b37ea5b, stage2 Pi21: Raspberry Pi reference 2023-05-03 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 638c7521e

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Tom Keffer
> > I installed at first Raspberri PI OS Light (32-bit) which resulted in > errors > Thanks for the info. I had similar problems when I tried to install on a 32-bit version of Debian 9. I gave up trying to install pymysql because I didn't need it. I don't think a user can expect a prebuilt wheel

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Vince Skahan
Just one more comment on this one. Another example - rockylinux/9 in vagrant... sudo yum install -y python3-devel gcc python3-pip pip3 install --user wheel pip3 install --user weewx weectl station create --no-prompt chcon -R --reference /bin/ls ~/.local/bin cd ~/weewx-data sudo cp util/systemd/

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Vince Skahan
Luc - yes. It is still a few limited steps. About a half dozen if you use pip on a pi using 32-bit RaspiOS. Fewer if you use a pre-packaged weewx or a different os. The underlying problem you ran into is the underlying pi 32-bit os not having a usually available python library. Not weewx's f

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Lucas Heijst
Tom, I installed at first Raspberri PI OS Light (32-bit) which resulted in errors cat /etc/debian_version 11.7 Later I installed Raspberri PI OS Light (64-bit) which was OK Same debian version 11.7 Op maandag 29 mei 2023 om 17:11:15 UTC-3 schreef Greg Troxel: > Lucas Heijst writes: > > > Tom, Vi

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Greg Troxel
Lucas Heijst writes: > Tom, Vince and Greg, > > For users with a limited knowledge of Linux the installation of weewx > should be a few (simple) installation steps as it always was before. Yes, but you are blurring: Things weewx depends on decide to use languages that are not compatible wi

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Tom Keffer
> > For users with a limited knowledge of Linux the installation of weewx > should be a few (simple) installation steps as it always was before. > I agree. I'm surprised you had such trouble installing WeeWX with Pip. I guess they leave a lot out of the "light" version of bullseye. What's the exac

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Lucas Heijst
Tom, Vince and Greg, For users with a limited knowledge of Linux the installation of weewx should be a few (simple) installation steps as it always was before. Op maandag 29 mei 2023 om 15:35:05 UTC-3 schreef Greg Troxel: > Vince Skahan writes: > > >> On Monday, May 29, 2023 at 10:58:48 AM UTC

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Greg Troxel
Vince Skahan writes: >> On Monday, May 29, 2023 at 10:58:48 AM UTC-7 Joel Bion wrote: >> Should a 64 bit O/S be a WeeWX prerequisite? > No. The only prerequisite should continue to be compatible python things. Indeed, but with rust, you end up with an implicit requirement that you cross build,

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Vince Skahan
On Monday, May 29, 2023 at 10:58:48 AM UTC-7 Joel Bion wrote: Should a 64 bit O/S be a WeeWX prerequisite? No. The only prerequisite should continue to be compatible python things. -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To un

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Vince Skahan
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-g

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Joel Bion
Should a 64 bit O/S be a WeeWX prerequisite?Sent from my iPhoneOn May 29, 2023, at 10:34 AM, Lucas Heijst wrote:I started all over, with the 64-bit version of Raspberri PI OS Light (64-bit)  and this time all went OK1. Fresh install of Raspberri PI OS Light (64-bit)2. Fresh install of weewx:sudo

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Lucas Heijst
I started all over, with the *64-bit* version of Raspberri PI OS Light (64-bit) and this time all went OK 1. Fresh install of Raspberri PI OS Light (64-bit) 2. Fresh install of weewx: sudo apt update sudo apt upgrade sudo apt -y install gcc python3-dev python3-pip pip3 install wheel pip3 insta

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Tom Keffer
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 t

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Lucas Heijst
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

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Tom Keffer
Funny. I was just writing up a note about this problem (among others). See the wiki entry *Pip troubleshooting *. On Mon, May 29, 2023 at 7:25 AM Lucas Heijst wrote: > Fresh install of debian bullseye light on RPI 3B > Tried to install we

Re: [weewx-development] error: can't find Rust compiler

2023-05-29 Thread Greg Troxel
Lucas Heijst writes: > The weewx installation stops with error "can't find Rust compiler", see > attachment I am far from an expert, but your choices are basically: install the rust compiler, or find all the projects that decided it was ok to depend on rust, file bugs that they shouldn'

[weewx-development] error: can't find Rust compiler

2023-05-29 Thread Lucas Heijst
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.li

Re: [weewx-development] Unable to instantiate generator (again)

2023-05-29 Thread Lucas Heijst
Thanks for your answer Tom I skipped the step "pip3 install wheel" because I thought this was not needed anymore sudo apt update sudo apt -y install gcc python3-dev python3-pip (skipped step: pip3 install wheel) pip3 install weewx --user Op maandag 29 mei 2023 om 10:39:40 UTC-3 schreef Tom Kef

Re: [weewx-development] Unable to instantiate generator (again)

2023-05-29 Thread Tom Keffer
It's a good question, and I'm not sure I know the full answer. Generally, if one installs Pillow, it installs by using a wheel, which includes the necessary binary files (look in ~/.local/lib/python3.7/site-packages/Pillow.libs). However, if a wheel is not available for your platform (and it may n

Re: [weewx-development] Unable to instantiate generator (again)

2023-05-29 Thread Lucas Heijst
You guessed right, Tom, installing libopenjp2-7 solved the problem. Question: why was this module not installed by the weewx install? Op maandag 29 mei 2023 om 10:03:49 UTC-3 schreef Tom Keffer: > I would guess that you're missing the underlying JPEG library > > > *sudo apt install libopenjp2-7*

Re: [weewx-development] Unable to instantiate generator (again)

2023-05-29 Thread Tom Keffer
I would guess that you're missing the underlying JPEG library *sudo apt install libopenjp2-7* -tk On Mon, May 29, 2023 at 5:56 AM Lucas Heijst wrote: > Started with a fresh install of debian buster light on my rpi model 2 > Followed by a fresh install of weewx via: > pip3 install weewx --use

[weewx-development] Unable to instantiate generator (again)

2023-05-29 Thread Lucas Heijst
Started with a fresh install of debian buster light on my rpi model 2 Followed by a fresh install of weewx via: pip3 install weewx --user /root/.local/bin/weectl station create --no-prompt I got the following error: Traceback (most recent call last): File "/root/.local/lib/python3.7/site-packag