move the driver to the bin/user directory if the reference is user.wh23xx, 
or with the other drivers in bin/weewx/drivers and use the reference 
weewx.drivers or change the reference to just wh23xx (without the user. 
prefix)



On Sunday, 12 February 2017 10:57:59 UTC+2, Thom Rogers wrote:

> When I try to start weewx, I get an error that it can't find my driver 
> module.  It looks like everything is in the right place to me.  Any idea 
> why it can't find  the wh23xx module?  Here's the traceback:
>
> *Thomas-Rogerss-Mac-mini:weewx chop$ pwd*
> */Users/Shared/weewx*
> *Thomas-Rogerss-Mac-mini:weewx chop$ ./bin/weewxd weewx.conf *
> *Traceback (most recent call last):*
> *  File "./bin/weewxd", line 64, in <module>*
> *    weewx.engine.main(options, args)*
> *  File "/Users/Shared/weewx/bin/weewx/engine.py", line 841, in main*
> *    engine = engine_class(config_dict)*
> *  File "/Users/Shared/weewx/bin/weewx/engine.py", line 70, in __init__*
> *    self.setupStation(config_dict)*
> *  File "/Users/Shared/weewx/bin/weewx/engine.py", line 94, in 
> setupStation*
> *    __import__(driver)*
> *ImportError: No module named wh23xx*
>
> Contents of /Users/Sharwd/weewx/bin are:
>
> *Thomas-Rogerss-Mac-mini:weewx chop$ ls -l bin*
> *total 336*
> *-rw-r--r--   1 chop  wheel   2886 Nov  8 09:04 daemon.py*
> *-rw-r--r--   1 chop  wheel   2729 Feb 11 17:41 daemon.pyc*
> *drwxr-xr-x  10 chop  wheel    340 Feb 11 17:41 examples*
> *drwxr-xr-x   6 chop  wheel    204 Feb 11 17:41 schemas*
> *drwxr-xr-x   6 chop  wheel    204 Feb 11 17:41 user*
> *-rwxr-xr-x   1 chop  wheel   5217 Feb 11 17:39 wee_config*
> *-rwxr-xr-x   1 chop  wheel  22439 Feb 11 17:39 wee_database*
> *-rwxr-xr-x   1 chop  wheel  16127 Feb 11 17:39 wee_debug*
> *-rwxr-xr-x   1 chop  wheel   1754 Feb 11 17:39 wee_device*
> *-rwxr-xr-x   1 chop  wheel   3191 Feb 11 17:39 wee_extension*
> *-rwxr-xr-x   1 chop  wheel  31241 Feb 11 17:39 wee_import*
> *-rwxr-xr-x   1 chop  wheel   2237 Feb 11 17:39 wee_reports*
> *drwxr-xr-x   8 chop  wheel    272 Feb 11 17:41 weecfg*
> *drwxr-xr-x   8 chop  wheel    272 Feb 11 17:41 weedb*
> *drwxr-xr-x  12 chop  wheel    408 Feb 11 17:41 weeimport*
> *drwxr-xr-x   8 chop  wheel    272 Feb 11 17:41 weeplot*
> *drwxr-xr-x  14 chop  wheel    476 Feb 11 17:41 weeutil*
> *drwxr-xr-x  45 chop  wheel   1530 Feb 12 01:37 weewx*
> *-rw-r--r--   1 chop  wheel    841 Feb 11 17:41 weewx-3.6.2-py2.7.egg-info*
> *-rwxr-xr-x   1 chop  wheel   2638 Feb 11 17:39 weewxd*
> *-rwxr-xr-x@  1 chop  wheel  35826 Feb 12 01:06 wh23xx.py*
> *-rwxr-xr-x   1 chop  wheel  21027 Feb 11 17:39 wunderfixer*
>
>
> From my weewx.conf file:
>
> *[Station]*
>     
> *    # Description of the station location*
> *    location = "Larkspur, Colorado"*
>     
> *    # Latitude and longitude in decimal degrees*
> *    latitude = 39.23847*
> *    longitude = -104.91161*
>     
> *    # Altitude of the station, with unit it is in. This is downloaded 
> from*
> *    # from the station if the hardware supports it.*
> *    altitude = 6925, foot    # Choose 'foot' or 'meter' for unit*
>     
> *    # Set to type of station hardware. There must be a corresponding 
> stanza*
> *    # in this file with a 'driver' parameter indicating the driver to be 
> used.*
> *    station_type = WH23xx*
>     
> * ... snip, snip ...*
>
> *[WH23xx]*
> *    # This section is for Fine Offset WH23xx stations*
>     
> *    # The model name such as Tycon, or TP2700*
> *    model = Excelvan WH2300 *
>     
> *    # The driver to use*
> *    driver = user.wh23xx*
> *(END)*
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to