Thanks Gary.  Since it was a brand new install, python3 was the answer.  
Once I got the command right, you could see the driver interrogating the 
GW1000.

Chris 

On Saturday, September 25, 2021 at 11:50:32 PM UTC-7 gjr80 wrote:

> Hi,
>
> What version of python did you install WeeWX under? Chances are it was 
> python3 and changing python to python3 in your command may work. As per 
> the GW1000 driver readme you need to run the GW1000 driver under the same 
> python version as WeeWX was installed otherwise you will likely find python 
> pre-requisite packages such as configobj are missing (well they are there 
> but not for the version of python you are trying to run). Try starting 
> WeeWX and have a look at the log, it will tell you what version of python 
> WeeWX is using. Alternatively have a look at the shebang at the first line 
> of any WeeWX executable, for example /usr/share/weewx/wee_database, it 
> should include the python version. If the python version is 3 then try the 
> above command with python3 instead of python (the version of python 
> started by using the command python varies from system to system, your uses 
> python2). If that does not work let us know as you have a more sinister 
> problem.
>
> Gary
>
> On Sunday, 26 September 2021 at 16:29:28 UTC+10 [email protected] wrote:
>
>> After installing the GW1000 driver, I try to test it using the python 
>> command, but get the following error:
>>
>> pi@raspberrypi:~ $ sudo PYTHONPATH=/usr/share/weewx python -m user.gw1000 
>> --test-driver
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
>>     "__main__", fname, loader, pkg_name)
>>   File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
>>     exec code in run_globals
>>   File "/usr/share/weewx/user/gw1000.py", line 504, in <module>
>>     import configobj
>> ImportError: No module named configobj
>>
>>
>> Can someone tell me why it can find the configobj file?
>>
>> Thanks, 
>> Chris 
>>
>

-- 
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/5e95fd75-467e-41d8-b3ac-1cabf376867dn%40googlegroups.com.

Reply via email to