Weewx 4.0.0 on Centos 7.8 & Python 3

43 views
Skip to first unread message

Chris Nelson

unread,
May 12, 2020, 11:53:41 PM5/12/20
to weewx-user

On V3.9.2 I was having package dependency problems with graph generation (pillow?), and thought I'd move to the new Py3 version.  For reference on 3.9.2…

File "/usr/lib64/python2.7/site-packages/PIL/ImageDraw.py", line 82, in __init__

****  TypeError: function takes exactly 1 argument (2 given)

 

I manually zapped all files I could find from 3.9.2 (save /etc/weewx/weewx.conf), and am following these instructions.  I'm on Centos 7.8, and did the now-supported Python3.6.2 install (yum install -y python3), which sits alongside the Python 2.7.5 system install.  (see https://www.liquidweb.com/kb/how-to-install-python-3-on-centos-7/)

 

The instructions on page http://weewx.com/docs/redhat.htm could use a touch in the context of Py3 on Centos 7.7+. 

 

For Redhat 7 with Python:

sudo pip3 install pyserial pyusb Cheetah3 Pillow


For Redhat 7 with Python2 or Python3:

curl -s http://weewx.com/yum/weewx-el7.repo | sudo tee /etc/yum.repos.d/weewx.repo

 


For whatever reason, my installation landed at /usr/share/weewx. I don't have a weewx user. I also use a systemd weewx.service file, rather than the rc/init.d startup.

All is well.

Tom Keffer

unread,
May 13, 2020, 7:48:18 AM5/13/20
to weewx-user
Hi, Chris

We're trying to keep the package installs simple and not have a lot of either/or options. Hence the decision to go with Python 2 on Redhat 7.

But, I'm more interested in the ImageDraw error. Can you tell me in what context this happened? More of the stack trace would be welcome.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/9513fb37-acac-4c72-814d-253f8dfdd543%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages