Having trouble installing on Mac

208 views
Skip to first unread message

PAK

unread,
Feb 5, 2021, 5:16:16 AM2/5/21
to weewx-user
Hi all,

I am very new and am struggling with a lot of this but hopefully this makes sense.

I have a Mac, with an Ecowitt HP2553. I am trying to get a handle on this before I purchase the GW1000 and maybe a Raspberry Pi. 

The second time I tried to install Weewx it went really well until the last command. Here's the log: -

pak@Peters-iMac weewx % python3 ./bin/weewxd weewx.conf

Traceback (most recent call last):

  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/config.py", line 563, in configure

    handler = self.configure_handler(handlers[name])

  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/config.py", line 744, in configure_handler

    result = factory(**kwargs)

  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/handlers.py", line 148, in __init__

    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)

  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/handlers.py", line 55, in __init__

    logging.FileHandler.__init__(self, filename, mode, encoding, delay)

  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 1143, in __init__

    StreamHandler.__init__(self, self._open())

  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/__init__.py", line 1172, in _open

    return open(self.baseFilename, self.mode, encoding=self.encoding)

PermissionError: [Errno 13] Permission denied: '/var/log/weewx.log'


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "./bin/weewxd", line 264, in <module>

    main()

  File "./bin/weewxd", line 81, in main

    weeutil.logger.setup(options.log_label, {})

  File "/Users/Shared/weewx/bin/weeutil/logger.py", line 187, in setup

    logging.config.dictConfig(log_dict)

  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/config.py", line 808, in dictConfig

    dictConfigClass(config).configure()

  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/logging/config.py", line 570, in configure

    raise ValueError('Unable to configure handler '

ValueError: Unable to configure handler 'rotate'

pak@Peters-iMac weewx % 


I am wondering if the driver is the problem. I think I need to install an interceptor somehow? It might all be too much for me and could be easier to go back to Davis hehe. All I really want are daily, weekly and yearly reports like I'm used to with WeatherLink.

Thanks for any help,
Peter. 

Graham Eddy

unread,
Feb 5, 2021, 6:07:02 AM2/5/21
to weewx...@googlegroups.com
did you run bin/weewxd as root, to have needed permissions for creating /var/log/weewx.log?

as an aside, you are thinking of moving weewx from mac to rpi. do it. macos continues to diverge from its linux roots into strange lands opaque to mere mortals e.g. i found daemons via launchd becoming impossible through successive macos releases without arcane knowledge, and abandoned macos 6 months ago. my mac mini now runs ubuntu in a DMZ and weewx runs wonderfully on an rpi 4B using raspian os. and i got a gw1000 to run as a service in parallel with my vp2 on same weewx instance
(my macos laptops are still great - i just recommend against macos for server)

--
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/62969bcb-fadf-4d05-8671-b164a0ed9390n%40googlegroups.com.

Rainer Lang

unread,
Feb 5, 2021, 6:17:01 AM2/5/21
to weewx...@googlegroups.com

Hi

when you want to get the data from the HP2551 console (that's the console of the HP2553 package), you can only do this by the help of the interceptor driver.

Get it and install it - then verify what I wrote below

You have to choose there / put in weewx.conf

[station]
station_type = Interceptor

[Interceptor]
device_type = ecowitt-client
port 8000
iface = eth0  (or wlan0 depending on your network interface)

(sometimes this latter entry  is needed to be added here - no harm having it )

and in the WSView app you choose the Customized option for Weather networks,
enable Ecowitt protocol
Server IP is the IP of your MAC
path leave empty
port 8000
interval 16

Otherwise follow the Interceptor driver installation instruction at GitHUB

Some of the entries the install script will already do.

Good luck

PAK

unread,
Feb 8, 2021, 6:48:42 AM2/8/21
to weewx-user
Thanks for the advice. I have googled but still not sure I'm doing it correctly as getting same error. How do i run bin/weewxd as root?
Message has been deleted

Rainer Lang

unread,
Feb 8, 2021, 6:54:26 AM2/8/21
to weewx...@googlegroups.com
sudo weewxd /etc/weewx/weewx.conf

Marius Schamschula

unread,
Feb 8, 2021, 7:02:02 AM2/8/21
to 'plinepa@googlemail.com' via weewx-user


On Feb 5, 2021, at 5:06 AM, Graham Eddy <graha...@gmail.com> wrote:

did you run bin/weewxd as root, to have needed permissions for creating /var/log/weewx.log?

as an aside, you are thinking of moving weewx from mac to rpi. do it. macos continues to diverge from its linux roots into strange lands opaque to mere mortals e.g. i found daemons via launchd becoming impossible through successive macos releases without arcane knowledge, and abandoned macos 6 months ago. my mac mini now runs ubuntu in a DMZ and weewx runs wonderfully on an rpi 4B using raspian os. and i got a gw1000 to run as a service in parallel with my vp2 on same weewx instance
(my macos laptops are still great - i just recommend against macos for server)

Since when does macOS have Linux roots? macOS is derived from BSD Unix. However, Apple has locked system directories down in some annoying ways.

I do have an unofficial MacPorts Portfile for weewx:


Not well tested, as I run weewx under FreeBSD.

Marius
--
Marius Schamschula




PAK

unread,
Feb 9, 2021, 8:05:16 AM2/9/21
to weewx-user

Thanks for the link. 

Still trying to get it installed on the Mac. I seem to be close. Not getting any errors it seems but I don't have the directory: -file:///Users/Shared/weewx/public_html/ and the file file:///Users/Shared/weewx/public_html/index.html. 

So I think it's running in the background but I need that folder and file to see it. Is that right - you type that into the browser and it launches?

Thanks again, 
Peter. 

jerry...@gmail.com

unread,
Feb 9, 2021, 4:39:37 PM2/9/21
to weewx-user
What do you see when you run this command from the terminal?
└─[$] <> tail -f -n 10 /var/log/weewx.log

PAK

unread,
Feb 10, 2021, 5:10:28 AM2/10/21
to weewx-user
Hi,

I get: -

pak@Peters-iMac ~ % tail -f -n 10 /var/log/weewx.log


weewx[107] CRITICAL weewx.engine:     ****      sorted(core.find(find_all=True), key=lambda d: d.bus),


weewx[107] CRITICAL weewx.engine:     ****    File "/Library/Python/3.8/site-packages/usb/core.py", line 1299, in find


weewx[107] CRITICAL weewx.engine:     ****      raise NoBackendError('No backend available')


weewx[107] CRITICAL weewx.engine:     ****  usb.core.NoBackendError: No backend available


weewx[107] CRITICAL __main__: Unable to load driver: No backend available

weewx[107] CRITICAL __main__:     ****  Exiting...

What does that indicate - the driver is missing?

Thanks,
Peter.
Reply all
Reply to author
Forward
0 new messages