New (reinstall) of 3.9.2 gives setup.py error about "print" command

59 views
Skip to first unread message

messyp...@gmail.com

unread,
Apr 26, 2023, 10:41:02 AM4/26/23
to weewx-user
I had to rebuild my RPI3B & installed the latest os which is bullseye. Everything is working well except when I execute the instruction sudo python3 ./setup.py install
I get an error early on about the statement 
print "Saved bin subdirectory as %s" % bin_savedir
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Saved bin subdirectory as %s" % bin_savedir)?
I added all the python statements and they all ran without error
# Required
sudo apt install python3-configobj
sudo apt install python3-pil
sudo apt install python3-serial
sudo apt install python3-usb
sudo apt install python3-pip

sudo apt install python3-cheetah
sudo apt install python3-ephem

I don't want to mess with a different version of weewx, this one does everything I need; I already have my skins set up for my installation. 

Anybody know why it's throwing this error? I've installed weewx 3.9.1 / 3.9.2 several times on several systems (buster, jessie) and have never had it complain about the install.py script.

Thank you --

p q

unread,
Apr 26, 2023, 10:53:58 AM4/26/23
to weewx...@googlegroups.com
Yes it's a Python3 complaining about Pyhon2 code. 

The latest os defaults to python 3. Your weewx version uses python 2. You can continue to use python 2 but you'll need to take some action. Not sure what the easiest solution is. Well, I suspect the easiest is to upgrade weewx. 

--
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/4eeacfb4-f5af-4947-a0f7-7f6cce318452n%40googlegroups.com.

messyp...@gmail.com

unread,
Apr 26, 2023, 11:28:46 AM4/26/23
to weewx-user
Welp... I just installed 4.9.1 and it installed without a hitch. Seems to be running (on Simulator). I'll change to the Ultimeter in a bit. I was using standard skins, not sure what 4.9.1 defaults to.

messyp...@gmail.com

unread,
Apr 26, 2023, 11:36:29 AM4/26/23
to weewx-user
* meant 4.5.1
Reply all
Reply to author
Forward
0 new messages