Hi TOM!

New installed  Raspberry OS lite 64 bit

Linux zoli 6.6.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.62-1+rpt1 
(2024-11-25) aarch64

installed weewx 5.1



Created and activated a virtual environment:

zoli@zoli:~ $ python3 -m venv ~/weewx-venv
source ~/weewx-venv/bin/activate
(weewx-venv) zoli@zoli:~ $ pip install bme280
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting bme280
  Downloading 
https://www.piwheels.org/simple/bme280/bme280-0.7-py2.py3-none-any.whl (6.3 
kB)
Installing collected packages: bme280
Successfully installed bme280-0.7

THEN:

zoli@zoli:~ $ weectl station reconfigure
Using configuration file /etc/weewx/weewx.conf
Processing configuration file /etc/weewx/weewx.conf

Give a description of the station. This will be used for the title of 
reports.
description [Nyíregyháza]:

Specify altitude, with units 'foot' or 'meter'.  For example:
  35, foot
  12, meter
altitude [118, meter]:

Specify latitude in decimal degrees, negative for south.
latitude [47.924]:
Specify longitude in decimal degrees, negative for west.
longitude [21.749]:

Choose a unit system for the reports. Later, you can modify
your choice, or choose a combination of units. Unit systems
include:
  us         (ºF, inHg, in, mph)
  metricwx   (ºC, mbar, mm, m/s)
  metric     (ºC, mbar, cm, km/h)
unit system [metricwx]:

Choose a driver. Installed drivers include:
  0) ?               (user.byows_rpi)          No module named 'bme280'
  1) AcuRite         (weewx.drivers.acurite)
  2) CC3000          (weewx.drivers.cc3000)
  3) FineOffsetUSB   (weewx.drivers.fousb)
  4) Simulator       (weewx.drivers.simulator)
  5) TE923           (weewx.drivers.te923)
  6) Ultimeter       (weewx.drivers.ultimeter)
  7) Vantage         (weewx.drivers.vantage)
  8) WMR100          (weewx.drivers.wmr100)
  9) WMR300          (weewx.drivers.wmr300)
 10) WMR9x8          (weewx.drivers.wmr9x8)
 11) WS1             (weewx.drivers.ws1)
 12) WS23xx          (weewx.drivers.ws23xx)
 13) WS28xx          (weewx.drivers.ws28xx)
driver [4]: 0
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'

-------------------------------

I didn't find it, neither among the python 3.11 modules:

zoli@zoli:~ $ dmesg | grep i2c
[    6.152694] i2c_dev: i2c /dev entries driver

zoli@zoli:~ $ python3.11 -c 'help("modules")'

Please wait a moment while I gather a list of all available modules...

/usr/lib/python3/dist-packages/nltk/app/__init__.py:45: UserWarning: 
nltk.app.wordfreq not loaded (requires the matplotlib library).
  warnings.warn("nltk.app.wordfreq not loaded (requires the matplotlib 
library).")
/usr/lib/python3/dist-packages/nltk/twitter/__init__.py:20: UserWarning: 
The twython library has not been installed. Some functionality from the 
twitter package will not be available.
  warnings.warn(
/usr/lib/python3.11/pkgutil.py:92: UserWarning: The numpy.array_api 
submodule is still experimental. See NEP 47.
  __import__(info.name)
/usr/lib/python3/dist-packages/_distutils_hack/__init__.py:33: UserWarning: 
Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
Cheetah             _weakrefset         hashlib             sched
Cryptodome          _xxsubinterpreters  heapq               secrets
PIL                 _xxtestfuzz         hmac                select
RPi                 _yaml               html                selectors
__future__          _zoneinfo           http                serial
__hello__           abc                 idna                setuptools
__phello__          aifc                imaplib             shelve
_abc                antigravity         imghdr              shlex
_aix_support        apt                 imp                 shutil
_ast                apt_inst            importlib           signal
_asyncio            apt_pkg             iniconfig           simplejson
_bisect             aptsources          inspect             site
_blake2             argcomplete         io                  sitecustomize
_bootsubprocess     argparse            ipaddress           six
_bz2                array               itertools           smbus
_codecs             ast                 jinja2              smbus2
_codecs_cn          asynchat            joblib              smtpd
_codecs_hk          asyncio             json                smtplib
_codecs_iso2022     asyncore            keyword             sndhdr
_codecs_jp          atexit              lgpio               socket
_codecs_kr          attr                lib2to3             socketserver
_codecs_tw          attrs               linecache           spidev
_collections        audioop             livereload          spwd
_collections_abc    babel               locale              sqlite3
_compat_pickle      base64              logging             sre_compile
_compression        bdb                 lunr                sre_constants
_contextvars        binascii            lzma                sre_parse
_crypt              bisect              mailbox             ssh_import_id
_csv                builtins            mailcap             ssl
_ctypes             bz2                 markdown            stat
_ctypes_test        cProfile            markupsafe          statistics
_curses             calendar            marshal             string
_curses_panel       certifi             math                stringprep
_datetime           cgi                 mergedeep           struct
_dbm                cgitb               mimetypes           subprocess
_decimal            chardet             mkdocs              sunau
_distutils_hack     charset_normalizer  mmap                symtable
_distutils_system_mod chunk               modulefinder        sys
_elementtree        click               more_itertools      sysconfig
_functools          cmath               multiprocessing     syslog
_hashlib            cmd                 netrc               tabnanny
_heapq              code                nis                 tarfile
_imp                codecs              nltk                telnetlib
_io                 codeop              nntplib             tempfile
_json               collections         ntpath              termios
_lgpio              colorama            nturl2path          test
_locale             colorsys            numbers             textwrap
_lsprof             colorzero           numpy               this
_lzma               compileall          olefile             threading
_markupbase         concurrent          opcode              time
_md5                configobj           operator            timeit
_multibytecodec     configparser        optparse            tkinter
_multiprocessing    contextlib          os                  token
_opcode             contextvars         ossaudiodev         tokenize
_operator           copy                packaging           toml
_osx_support        copyreg             pathlib             tomllib
_pickle             crypt               pdb                 tornado
_posixshmem         csv                 pickle              tqdm
_posixsubprocess    ctypes              pickletools         trace
_py_abc             curses              pigpio              traceback
_pydecimal          dataclasses         pip                 tracemalloc
_pyio               datetime            pipes               tty
_pytest             dateutil            pipx                turtle
_queue              dbm                 pkg_resources       types
_random             debconf             pkgutil             typing
_sha1               decimal             platform            unicodedata
_sha256             difflib             plistlib            unittest
_sha3               dis                 pluggy              urllib
_sha512             distro              poplib              urllib3
_signal             distutils           posix               usb
_sitebuiltins       doctest             posixpath           userpath
_socket             email               pprint              uu
_sqlite3            encodings           profile             uuid
_sre                ensurepip           pstats              validate
_ssl                enum                psutil              venv
_stat               ephem               pty                 warnings
_statistics         errno               pwd                 watchdog
_string             faulthandler        py                  wave
_strptime           fcntl               py_compile          weakref
_struct             filecmp             pyclbr              webbrowser
_symtable           fileinput           pydoc               wheel
_sysconfigdata__aarch64-linux-gnu fnmatch             pydoc_data         
 wsgiref
_sysconfigdata__linux_aarch64-linux-gnu fractions           pyexpat         
    xdrlib
_testbuffer         ftplib              pygments            xml
_testcapi           functools           pyinotify           xmlrpc
_testclinic         gc                  pytest              xxlimited
_testimportmultiple genericpath         pytz                xxlimited_35
_testinternalcapi   getopt              queue               xxsubtype
_testmultiphase     getpass             quopri              yaml
_thread             gettext             random              yaml_env_tag
_threading_local    ghp_import          re                  zipapp
_tkinter            glob                readline            zipfile
_tokenize           gpiod               regex               zipimport
_tracemalloc        gpiozero            reprlib             zlib
_typing             gpiozerocli         requests            zoneinfo
_uuid               graphlib            resource
_warnings           grp                 rlcompleter
_weakref            gzip                runpy

Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".


Could the bme280 package be faulty?

Tom Keffer a következőt írta (2024. december 9., hétfő, 15:26:31 UTC+1):

> 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/c3783629-b68c-4dc0-8eeb-813c2836f556n%40googlegroups.com.

Reply via email to