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 zman_...@yahoo.com 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b6ce0f29-0f48-4214-91d1-be66cfb3f2f2n%40googlegroups.com.

Reply via email to