That works.  See above.   It's python3

On Sunday, October 25, 2020 at 2:48:58 PM UTC-5 [email protected] wrote:

>
> I’m not sure what OS you are on, but would you try:
>
> python3
> import serial
>
> On Oct 25, 2020, at 12:40 PM, Mark Jenks <[email protected]> wrote:
>
> This works...
>
>
>
> [weewx@server ~]$ python
> Python 3.7.6 (default, Jan 30 2020, 09:44:41)
> [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import serial
> >>>
>
>
> On Sunday, October 25, 2020 at 2:10:28 PM UTC-5 Mark Jenks wrote:
>
>> I just did this.  No change..
>>
>> dnf install python3-pyserial
>>
>>
>> On Sunday, October 25, 2020 at 1:59:28 PM UTC-5 Mark Jenks wrote:
>>
>>> pip install pyserial
>>>
>>> On Sunday, October 25, 2020 at 1:28:02 PM UTC-5 [email protected] wrote:
>>>
>>>> How did you install pyserial?
>>>>
>>>> On Sun, Oct 25, 2020 at 10:00 AM Mark Jenks <[email protected]> wrote:
>>>>
>>>>>     # The station model, e.g., WMR200, WMR200A, Radio Shack W200
>>>>>     model = Vantage
>>>>>
>>>>>     # The driver to use:
>>>>>     driver = weewx.drivers.vantage
>>>>>     type = Serial
>>>>>     port = /dev/ttyUSB0
>>>>>
>>>>>     # The type of LOOP packet to request: 1 = LOOP1; 2 = LOOP2; 3 = 
>>>>> both
>>>>>     loop_request = 1
>>>>>
>>>>>
>>>>> On Sunday, October 25, 2020 at 11:58:59 AM UTC-5 Mark Jenks wrote:
>>>>>
>>>>>> I was running python 2 before, and upgraded to python 3.   Never had 
>>>>>> an issue until I upgraded to 4.1.1.  
>>>>>>
>>>>>> What am I missing?
>>>>>>
>>>>>> # python --version
>>>>>> Python 3.7.6
>>>>>>
>>>>>> pyserial is installed.
>>>>>>
>>>>>> [root@server bin]# ./wee_device
>>>>>> Using configuration file /home/weewx/weewx.conf
>>>>>> Using Vantage driver version 3.2.1 (weewx.drivers.vantage)
>>>>>> Traceback (most recent call last):
>>>>>>   File "./wee_device", line 78, in <module>
>>>>>>     main()
>>>>>>   File "./wee_device", line 74, in main
>>>>>>     device.configure(config_dict)
>>>>>>   File "/home/weewx/bin/weewx/drivers/__init__.py", line 67, in 
>>>>>> configure
>>>>>>     self.do_options(options, parser, config_dict, not 
>>>>>> options.noprompt)
>>>>>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 2055, in 
>>>>>> do_options
>>>>>>     station = Vantage(**config_dict[DRIVER_NAME])
>>>>>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 511, in 
>>>>>> __init__
>>>>>>     self.port.openPort()
>>>>>>   File "/home/weewx/bin/weewx/drivers/vantage.py", line 307, in 
>>>>>> openPort
>>>>>>     self.serial_port = serial.Serial(self.port, self.baudrate, 
>>>>>> timeout=self.timeout)
>>>>>> AttributeError: module 'serial' has no attribute 'Serial'
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>>
>>>>>
>>>>> 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 [email protected].
>>>>>
>>>>>
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/weewx-user/77253bab-92be-417c-956d-1fcdc0876293n%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/weewx-user/77253bab-92be-417c-956d-1fcdc0876293n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>>
>>>>> -- 
>>>> -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 [email protected].
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/3761c9ce-55d7-44b8-8530-53dceebe7ea6n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/3761c9ce-55d7-44b8-8530-53dceebe7ea6n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/732714bf-423d-4e84-8577-d0ea44ac2c78n%40googlegroups.com.

Reply via email to