👍

I can't tell you how many times this has happened to me.

On Sun, Oct 25, 2020 at 6:16 PM Mark Jenks <mjenks1...@gmail.com> wrote:

> Ugh, I looked right at it and didn't even see it.  I looked into
> /home/weewx, but only glanced into bin.
> Removed and it's working!
>
> Thank you!
>
> -Mark
>
> On Sunday, October 25, 2020 at 8:07:49 PM UTC-5 tke...@gmail.com wrote:
>
>> Did you look in /home/weewx/bin?
>>
>> On Sun, Oct 25, 2020 at 6:02 PM Mark Jenks <mjenk...@gmail.com> wrote:
>>
>>> I completely removed pyserial using pip and dnf.
>>> Same thing.  Maybe something to do with rules.d?  I tried tty and usb
>>> both, and get the same thing.
>>>
>>> [root@server ~]# systemctl status weewx.service
>>> ● weewx.service - weewx weather system
>>>    Loaded: loaded (/usr/lib/systemd/system/weewx.service; enabled;
>>> vendor preset: disabled)
>>>    Active: failed (Result: exit-code) since Sun 2020-10-25 20:00:20 CDT;
>>> 2s ago
>>>   Process: 11717 ExecStart=/home/weewx/bin/weewxd /home/weewx/weewx.conf
>>> (code=exited, status=4)
>>>  Main PID: 11717 (code=exited, status=4)
>>>       CPU: 221ms
>>>
>>> Oct 25 20:00:20 server.mjenks.net weewxd[11717]: weewx[11717] CRITICAL
>>> weewx.engine:     ****      Vantage.__init__(self,
>>> **config_dict[DRIVER_NAME])
>>> Oct 25 20:00:20 server.mjenks.net weewxd[11717]: weewx[11717] CRITICAL
>>> weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py",
>>> line 511, >
>>> Oct 25 20:00:20 server.mjenks.net weewxd[11717]: weewx[11717] CRITICAL
>>> weewx.engine:     ****      self.port.openPort()
>>> Oct 25 20:00:20 server.mjenks.net weewxd[11717]: weewx[11717] CRITICAL
>>> weewx.engine:     ****    File "/home/weewx/bin/weewx/drivers/vantage.py",
>>> line 307, >
>>> Oct 25 20:00:20 server.mjenks.net weewxd[11717]: weewx[11717] CRITICAL
>>> weewx.engine:     ****      self.serial_port = serial.Serial(self.port,
>>> self.baudrate>
>>> Oct 25 20:00:20 server.mjenks.net weewxd[11717]: weewx[11717] CRITICAL
>>> weewx.engine:     ****  AttributeError: module 'serial' has no attribute
>>> 'Serial'
>>> Oct 25 20:00:20 server.mjenks.net weewxd[11717]: weewx[11717] CRITICAL
>>> __main__: Unable to load driver: module 'serial' has no attribute 'Serial'
>>> Oct 25 20:00:20 server.mjenks.net weewxd[11717]: weewx[11717] CRITICAL
>>> __main__:     ****  Exiting...
>>> Oct 25 20:00:20 server.mjenks.net systemd[1]: weewx.service: Main
>>> process exited, code=exited, status=4/NOPERMISSION
>>> Oct 25 20:00:20 server.mjenks.net systemd[1]: weewx.service: Failed
>>> with result 'exit-code'.
>>> [root@server ~]# more /etc/udev/rules.d/vantage.rules
>>> # udev rules for davis vantage connected via usb
>>> #ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4",
>>> ATTRS{idProduct}=="ea60", SYMLINK+="vantage"
>>>
>>> # use this rule if you are using systemd
>>> ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4",
>>> ATTRS{idProduct}=="ea60", SYMLINK+="vantage", TAG+="systemd",
>>> ENV{SYSTEMD_WANTS}="weewx.service"
>>> #ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="10c4",
>>> ATTRS{idProduct}=="ea60", SYMLINK+="vantage", TAG+="systemd",
>>> ENV{SYSTEMD_WANTS}="weewx.service"
>>>
>>>
>>>
>>> On Sunday, October 25, 2020 at 7:31:36 PM UTC-5 tke...@gmail.com wrote:
>>>
>>>> If you use pip to install things while in the WeeWX directory
>>>> /home/weewx, it will see the setup.cfg file there, then try and
>>>> install things in the WeeWX directory system. Take a look in
>>>> /home/weewx/bin and see if serial ended up in there.
>>>>
>>>> If so, delete it, then cd to some other directory, such as your home
>>>> directory, then try installing. Make sure you use the python3 version of
>>>> pip:
>>>>
>>>> *cd ~*
>>>> *python3 -m pip install pyserial*
>>>>
>>>> -tk
>>>>
>>>> On Sun, Oct 25, 2020 at 3:38 PM Mark Jenks <mjenk...@gmail.com> wrote:
>>>>
>>>>> Never had to do that before..   But just added weewx go dialout group
>>>>> and no change.
>>>>>
>>>>> On Sunday, October 25, 2020 at 5:16:31 PM UTC-5 ti...@skybase.net
>>>>> wrote:
>>>>>
>>>>>> Hi Mark,
>>>>>>
>>>>>> Does the user, that weewx is running as, belong to the group dialout
>>>>>> ?
>>>>>>
>>>>>> On linux, a user that wants to use a serial port must belong to the
>>>>>> dialout group.
>>>>>>
>>>>>> This still applies even if the serial port is via a USB interface.
>>>>>>
>>>>>> regards
>>>>>>
>>>>>> Tim
>>>>>>
>>>>>> On 26/10/20 7:06 am, Mark Jenks wrote:
>>>>>> > I just did a full stop and start, and I get this.   Permissions?
>>>>>> >
>>>>>> > Oct 25 15:04:18 server.mjenks.net weewxd[20245]: weewx[20245]
>>>>>> CRITICAL
>>>>>> > weewx.engine:     ****      Vantage.__init__(self,
>>>>>> > **config_dict[DRIVER_NAM>
>>>>>> > Oct 25 15:04:18 server.mjenks.net weewxd[20245]: weewx[20245]
>>>>>> CRITICAL
>>>>>> > weewx.engine:     ****    File
>>>>>> > "/home/weewx/bin/weewx/drivers/vantage.py", >
>>>>>> > Oct 25 15:04:18 server.mjenks.net weewxd[20245]: weewx[20245]
>>>>>> CRITICAL
>>>>>> > weewx.engine:     ****      self.port.openPort()
>>>>>> > Oct 25 15:04:18 server.mjenks.net weewxd[20245]: weewx[20245]
>>>>>> CRITICAL
>>>>>> > weewx.engine:     ****    File
>>>>>> > "/home/weewx/bin/weewx/drivers/vantage.py", >
>>>>>> > Oct 25 15:04:18 server.mjenks.net weewxd[20245]: weewx[20245]
>>>>>> CRITICAL
>>>>>> > weewx.engine:     ****      self.serial_port =
>>>>>> > serial.Serial(self.port, sel>
>>>>>> > Oct 25 15:04:18 server.mjenks.net weewxd[20245]: weewx[20245]
>>>>>> CRITICAL
>>>>>> > weewx.engine:     ****  AttributeError: module 'serial' has no
>>>>>> > attribute 'S>
>>>>>> > Oct 25 15:04:18 server.mjenks.net weewxd[20245]: weewx[20245]
>>>>>> CRITICAL
>>>>>> > __main__: Unable to load driver: module 'serial' has no attribute
>>>>>> 'Serial'
>>>>>> > Oct 25 15:04:18 server.mjenks.net weewxd[20245]: weewx[20245]
>>>>>> CRITICAL
>>>>>> > __main__:     ****  Exiting...
>>>>>> > Oct 25 15:04:18 server.mjenks.net systemd[1]: weewx.service: Main
>>>>>> > process exited, code=exited, status=4/NOPERMISSION
>>>>>> > Oct 25 15:04:18 server.mjenks.net systemd[1]: weewx.service:
>>>>>> Failed
>>>>>> > with result 'exit-code'.
>>>>>> >
>>>>>> >
>>>>>>
>>>>> --
>>>>>
>>>> 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/e874ea1c-7ca8-41a8-b5c5-043799a7836bn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/weewx-user/e874ea1c-7ca8-41a8-b5c5-043799a7836bn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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/095cfb71-b0fc-4122-9e0c-6f820c531a51n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/095cfb71-b0fc-4122-9e0c-6f820c531a51n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/4cea8ca2-56a5-4f5d-998d-c858543959dbn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/4cea8ca2-56a5-4f5d-998d-c858543959dbn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBNC_nLaCkwyvCMKJWUZJcekCutrwXq6MCJ-rPusv9odg%40mail.gmail.com.

Reply via email to