upgrade weewx 4 to weewx5

110 views
Skip to first unread message

Hartmut Schweidler

unread,
Jan 5, 2023, 1:45:34 AM1/5/23
to weewx-development
Wie kann ich zur Version weewx5 wechseln.
mein bisheriges Ergebnis

root@ba001:/home/weewx# su hes1
hes1@ba001:/home/weewx$ python3 -m pip install pipx --user
Requirement already satisfied: pipx in /home/hes1/.local/lib/python3.9/site-packages (1.1.0)
Requirement already satisfied: argcomplete>=1.9.4 in /home/hes1/.local/lib/python3.9/site-packages (from pipx) (2.0.0)
Requirement already satisfied: userpath>=1.6.0 in /home/hes1/.local/lib/python3.9/site-packages (from pipx) (1.8.0)
Requirement already satisfied: packaging>=20.0 in /home/hes1/.local/lib/python3.9/site-packages (from pipx) (22.0)
Requirement already satisfied: click in /home/hes1/.local/lib/python3.9/site-packages (from userpath>=1.6.0->pipx) (8.1.3)
hes1@ba001:/home/weewx$ pipx install weewx
bash: pipx: Kommando nicht gefunden.
hes1@ba001:/home/weewx$ pip3 --version
pip 22.3.1 from /usr/local/lib/python3.9/dist-packages/pip (python 3.9)
hes1@ba001:/home/weewx$ python3 -m pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (22.3.1)
hes1@ba001:/home/weewx$ pipx install weewx
bash: pipx: Kommando nicht gefunden.
hes1@ba001:/home/weewx$ python3 -m pip install pipx --user
Requirement already satisfied: pipx in /home/hes1/.local/lib/python3.9/site-packages (1.1.0)
Requirement already satisfied: argcomplete>=1.9.4 in /home/hes1/.local/lib/python3.9/site-packages (from pipx) (2.0.0)
Requirement already satisfied: userpath>=1.6.0 in /home/hes1/.local/lib/python3.9/site-packages (from pipx) (1.8.0)
Requirement already satisfied: packaging>=20.0 in /home/hes1/.local/lib/python3.9/site-packages (from pipx) (22.0)
Requirement already satisfied: click in /home/hes1/.local/lib/python3.9/site-packages (from userpath>=1.6.0->pipx) (8.1.3)
hes1@ba001:/home/weewx$ pipx install weewx
bash: pipx: Kommando nicht gefunden.
hes1@ba001:/home/weewx$ /home/hes1/.local/bin/pipx install weewx
⚠️  Note: weectl was already on your PATH at /usr/local/bin/weectl
⚠️  Note: weewxd was already on your PATH at /usr/local/bin/weewxd
  installed package weewx 5.0.0a7, installed using Python 3.9.2
  These apps are now globally available
    - weectl
    - weewxd
⚠️  Note: '/home/hes1/.local/bin' is not on your PATH environment variable. These apps will not be globally accessible until your PATH is updated.
    Run `pipx ensurepath` to automatically add it, or manually modify your PATH in your shell's config file (i.e. ~/.bashrc).
done! ✨ 🌟 ✨
hes1@ba001:/home/weewx$ weectl extension transfer --dry-run
usage: weectl extension list [--config=CONFIG-PATH]

       weectl extension install {FILE|DIR|URL} \
           [--config=CONFIG-PATH] \
           [--dry-run] [--verbosity=N]

       weectl extension uninstall NAME \
           [--config=CONFIG-PATH] \
           [--dry-run] [--verbosity=N]
weectl -v|--version
       weectl -h|--help
       weectl station --help
       weectl daemon --help
       weectl extension --help extension: error: argument action: invalid choice: 'transfer' (choose from 'list', 'install', 'uninstall')

Gruß
Hartmut

Tom Keffer

unread,
Jan 5, 2023, 7:12:05 AM1/5/23
to Hartmut Schweidler, weewx-development
V5 is barely in alpha stage and not ready for general consumption. None of the docs are ready.

The weectl extension transfer command has not been pushed up to pypi, although you can find it in the repository.

--
You received this message because you are subscribed to the Google Groups "weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/685c2ada-a026-4fb0-9874-7a006f464121n%40googlegroups.com.

Hartmut Schweidler

unread,
Jan 5, 2023, 8:52:41 AM1/5/23
to weewx-development
Mein ba001 ist ein Test-server für div. Erweiterungen und Datenbank-Verbindungen

selbst die Installation nach "pipx install weewx"
bricht ab.

hes1@ba001:~/.local/bin$ weectl station create
The configuration file will be created at /home/hes1/weewx-data/weewx.conf.

Give a description of your station. This will be used for the title of any reports.
Description [WeeWX station]: Klein Rogahn

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

Specify latitude in decimal degrees, negative for south.
latitude [0.0]: 53.3
Specify longitude in decimal degrees, negative for west.
longitude [0.0]: 11.6

You can register your station on weewx.com, where it will be included
in a map. If you choose to do so, you will also need a unique URL to identify
your station (such as a website, or a WeatherUnderground link).
Include station in the station registry [n]? n

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

Installed drivers include:
  0) AcuRite         (weewx.drivers.acurite)  
  1) CC3000          (weewx.drivers.cc3000)    
  2) FineOffsetUSB   (weewx.drivers.fousb)    
  3) Simulator       (weewx.drivers.simulator)
  4) TE923           (weewx.drivers.te923)    
  5) Ultimeter       (weewx.drivers.ultimeter)
  6) Vantage         (weewx.drivers.vantage)  
  7) WMR100          (weewx.drivers.wmr100)    
  8) WMR300          (weewx.drivers.wmr300)    
  9) WMR9x8          (weewx.drivers.wmr9x8)    
 10) WS1             (weewx.drivers.ws1)      
 11) WS23xx          (weewx.drivers.ws23xx)    
 12) WS28xx          (weewx.drivers.ws28xx)    
choose a driver [3]: 3
Traceback (most recent call last):
  File "/usr/local/bin/weectl", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/dist-packages/weectl.py", line 52, in main
    namespace.func(namespace)
  File "/usr/local/lib/python3.9/dist-packages/weectllib/parse_station.py", line 112, in create_station
    weecfg.station_config.station_create(config_path=namespace.config,
  File "/usr/local/lib/python3.9/dist-packages/weecfg/station_config.py", line 57, in station_create
    config_config(dist_config_dict, weewx_root=weewx_root, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/weecfg/station_config.py", line 92, in config_config
    copy_skins(config_dict)
  File "/usr/local/lib/python3.9/dist-packages/weecfg/station_config.py", line 438, in copy_skins
    with importlib.resources.path('wee_resources', 'skins') as skin_resources:
  File "/usr/lib/python3.9/contextlib.py", line 117, in __enter__
    return next(self.gen)
  File "/usr/lib/python3.9/importlib/resources.py", line 175, in _path_from_reader
    opener_reader = reader.open_resource(norm_resource)
  File "<frozen importlib._bootstrap_external>", line 995, in open_resource
IsADirectoryError: [Errno 21] Ist ein Verzeichnis: '/usr/local/lib/python3.9/dist-packages/wee_resources/skins'

Es ist wie gesagte ein Testsystem.

Danke
Hartmut

Tom Keffer

unread,
Jan 5, 2023, 7:22:52 PM1/5/23
to Hartmut Schweidler, weewx-development
Thanks for that!

Turns out, this is a problem for Python 3.9 or later. https://bugs.python.org/issue44162

It's been fixed in branch "mkdocs", which has not been published yet.

Reply all
Reply to author
Forward
0 new messages