hello,

did you install for bme280 ? at home, I did this : sudo pip3 install adafruit-circuitpython-bme280

and that works fine with the driver "user.byows" , since 2019.


Patrick

Le 09/12/2024 à 15:25, Tom Keffer a écrit :
I don't know what "tried the virtual environment" means.

Please show the exact steps you took, along with the responses. Just cut and paste from the terminal output.

On Mon, Dec 9, 2024 at 5:21 AM Juke DJvid <[email protected]> wrote:

    Tried the virtual environment, but " ModuleNotFoundError: No
    module named 'bme280' "

    Here is the log: (after : 'weectl station reconfigure' command)

    Choose a driver. Installed drivers include:
      0) ?               (user.bme280wx)           No module named
    'bme280'
      1) ?               (user.byows_rpi)          No module named
    'bme280'
      2) AcuRite         (weewx.drivers.acurite)
      3) CC3000          (weewx.drivers.cc3000)
      4) FineOffsetUSB   (weewx.drivers.fousb)
      5) Simulator       (weewx.drivers.simulator)
      6) TE923           (weewx.drivers.te923)
      7) Ultimeter       (weewx.drivers.ultimeter)
      8) Vantage         (weewx.drivers.vantage)
      9) WMR100          (weewx.drivers.wmr100)
     10) WMR300          (weewx.drivers.wmr300)
     11) WMR9x8          (weewx.drivers.wmr9x8)
     12) WS1             (weewx.drivers.ws1)
     13) WS23xx          (weewx.drivers.ws23xx)
     14) WS28xx          (weewx.drivers.ws28xx)
    driver [5]: 1
    Traceback (most recent call last):
      File "/usr/share/weewx/weectl.py", line 75, in <module>
        main()
      File "/usr/share/weewx/weectl.py", line 67, in main
        namespace.func(namespace)
      File "/usr/share/weewx/weectllib/__init__.py", line 90, in dispatch
        namespace.action_func(config_dict, namespace)
      File "/usr/share/weewx/weectllib/station_cmd.py", line 311, in
    reconfigure_station
    weectllib.station_actions.station_reconfigure(config_dict=config_dict,
      File "/usr/share/weewx/weectllib/station_actions.py", line 164,
    in station_reconfigure
        config_config(config_dict,
      File "/usr/share/weewx/weectllib/station_actions.py", line 207,
    in config_config
        config_driver(config_dict, driver=driver, no_prompt=no_prompt)
      File "/usr/share/weewx/weectllib/station_actions.py", line 424,
    in config_driver
        driver_editor, driver_name, driver_version =
    weecfg.load_driver_editor(final_driver)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/share/weewx/weecfg/__init__.py", line 452, in
    load_driver_editor
        driver_module = importlib.import_module(driver_module_name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.11/importlib/__init__.py", line 126, in
    import_module
        return _bootstrap._gcd_import(name[level:], package, level)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
      File "<frozen importlib._bootstrap>", line 1149, in
    _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 940, in
    exec_module
      File "<frozen importlib._bootstrap>", line 241, in
    _call_with_frames_removed
      File "/etc/weewx/bin/user/byows_rpi.py", line 32, in <module>
        import bme280
    ModuleNotFoundError: No module named 'bme280'

    Another tip?

    Thanks, Zoltan


    Tom Keffer a következőt írta (2024. december 3., kedd, 16:21:54
    UTC+1):

        It appears that the byows_rpi driver has an undocumented
        dependency on bme280. You'll have to install it by activating
        your virtual environment, the using pip:

        *source ~/weewx-venv/bin/activate*
        *pip install bme280*

        There may be other undocumented dependencies that will have to
        be dealt with in a similar manner.

        -tk

        On Tue, Dec 3, 2024 at 5:36 AM Juke DJvid
        <[email protected]> wrote:

            Hi!

            New install WEEWX 5.1 . Installed driver from:
            https://github.com/jardiamj/BYOWS_RPi

             weectl extension install
            https://github.com/ddjlabs/BYOWS_RPi/archive/refs/tags/v0.51.zip

            /WEEWX falied after choose driver:/

            Choose a driver. Installed drivers include:
              0) ?               (user.bme280wx)           No module
            named 'bme280'
              1) ?               (user.byows_rpi)          No module
            named 'bme280'
              2) AcuRite         (weewx.drivers.acurite)
              3) CC3000          (weewx.drivers.cc3000)
              4) FineOffsetUSB   (weewx.drivers.fousb)
              5) Simulator       (weewx.drivers.simulator)
              6) TE923           (weewx.drivers.te923)
              7) Ultimeter       (weewx.drivers.ultimeter)
              8) Vantage         (weewx.drivers.vantage)
              9) WMR100          (weewx.drivers.wmr100)
             10) WMR300          (weewx.drivers.wmr300)
             11) WMR9x8          (weewx.drivers.wmr9x8)
             12) WS1             (weewx.drivers.ws1)
             13) WS23xx          (weewx.drivers.ws23xx)
             14) WS28xx          (weewx.drivers.ws28xx)
            driver: 1
            Traceback (most recent call last):
              File "/usr/share/weewx/weectl.py", line 75, in <module>
                main()
              File "/usr/share/weewx/weectl.py", line 67, in main
                namespace.func(namespace)
              File "/usr/share/weewx/weectllib/__init__.py", line 90,
            in dispatch
                namespace.action_func(config_dict, namespace)
              File "/usr/share/weewx/weectllib/station_cmd.py", line
            311, in reconfigure_station
            
weectllib.station_actions.station_reconfigure(config_dict=config_dict,
              File "/usr/share/weewx/weectllib/station_actions.py",
            line 164, in station_reconfigure
                config_config(config_dict,
              File "/usr/share/weewx/weectllib/station_actions.py",
            line 207, in config_config
                config_driver(config_dict, driver=driver,
            no_prompt=no_prompt)
              File "/usr/share/weewx/weectllib/station_actions.py",
            line 424, in config_driver
                driver_editor, driver_name, driver_version =
            weecfg.load_driver_editor(final_driver)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/usr/share/weewx/weecfg/__init__.py", line 452, in
            load_driver_editor
                driver_module =
            importlib.import_module(driver_module_name)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/usr/lib/python3.11/importlib/__init__.py", line
            126, in import_module
                return _bootstrap._gcd_import(name[level:], package,
            level)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "<frozen importlib._bootstrap>", line 1206, in
            _gcd_import
              File "<frozen importlib._bootstrap>", line 1178, in
            _find_and_load
              File "<frozen importlib._bootstrap>", line 1149, in
            _find_and_load_unlocked
              File "<frozen importlib._bootstrap>", line 690, in
            _load_unlocked
              File "<frozen importlib._bootstrap_external>", line 940,
            in exec_module
              File "<frozen importlib._bootstrap>", line 241, in
            _call_with_frames_removed
              File "/etc/weewx/bin/user/byows_rpi.py", line 32, in
            <module>
                import bme280
            ModuleNotFoundError: No module named 'bme280'


            Anybody can help me what went wrong?

            Zoltan from Hungary

-- 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 visit
            
https://groups.google.com/d/msgid/weewx-user/34162b1e-3fbf-4592-957c-bd7632cf5f8fn%40googlegroups.com
            
<https://groups.google.com/d/msgid/weewx-user/34162b1e-3fbf-4592-957c-bd7632cf5f8fn%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 visit
    
https://groups.google.com/d/msgid/weewx-user/cea73139-4390-4dba-931e-e57f84ab1217n%40googlegroups.com
    
<https://groups.google.com/d/msgid/weewx-user/cea73139-4390-4dba-931e-e57f84ab1217n%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 visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEASopjGZweDVD0qN05FzO6fqZesM2aFv16D08dhjVRPxw%40mail.gmail.com <https://groups.google.com/d/msgid/weewx-user/CAPq0zEASopjGZweDVD0qN05FzO6fqZesM2aFv16D08dhjVRPxw%40mail.gmail.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 visit 
https://groups.google.com/d/msgid/weewx-user/7b0dfb53-2f2d-4d72-bd85-afe5db767de8%40gmail.com.

Reply via email to