Solved this by getting python 3.9.1 installed, using ARM64 version of 
Homebrew to install pyenv for the python install and libjpeg and Freetype 
to build pillow from source and then installed weewx. All runs as native 
ARM64.

On Saturday, December 19, 2020 at 11:44:16 AM UTC-8 [email protected] 
wrote:

> Have got weewx running on M1 mac with python 3.8.2, but a few issues.
>
> Needed to install libjpeg and freetype from source to get a working PIL. 
> This seems to need to be done under the rosetta version of the terminal.
>
> When I start using:
> cd /Users/Shared/weewx python3 ./bin/weewxd weewx.conf
>
> It starts fine and runs as expected. In both the console and weewx debug 
> it runs as x86
>
> If I start using:
> sudo launchctl load /Library/LaunchDaemons/com.weewx.weewxd.plist
>
> It runs as ARM64 on the console, but is listed as x86 in the debugger 
> output. It has all sorts of problems not being able to mostly find things 
> related to the PIL install.
>
> I've also tried to get the PIL to install using the native terminal, but I 
> get 
>
> /Library/Python/3.8/site-packages/PIL/_imaging.cpython-38-darwin.so: 
> mach-o, but wrong architecture
>
> When I use "import Image from PIL"
>
> Image imports fine when using the rosetta version of the terminal.
>
> Any ideas on either getting a working ARM64 PIL or getting the startup 
> script to run x86?
>

-- 
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/c2aa94e6-30ca-4b64-832c-bd1c818ea087n%40googlegroups.com.

Reply via email to