bugGNU Health - Bugs: bug #62240, trytond-console: ValueError due to...


You are not allowed to post comments on this tracker with your current authentication level.

bug #62240: trytond-console: ValueError due to old vobject version

Submitter:  Gerald Wiese <gerald_wiese>
Submitted:  Thu 31 Mar 2022 10:48:27 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  gerald_wiese
Open/Closed:  Closed Release:  4.0.0
Module:  caldav Component:  None

Thu 31 Mar 2022 11:13:17 AM UTC, comment #1: 

Hello, Gerald

Generally, python libraries / packages are not pinned in GNU Health. There are some exceptions (beren, apiron...) that required specific versions, due to compatibility issues with Python version or GH packages.

vobject has been subject of issues in previous versions with the GH caldav / webdav packages. If the problem is now solved, we could remove the pinning in 4.0.3 patchset, that will be released ASAP.


Luis Falcon <meanmicio>
Group administrator
Thu 31 Mar 2022 10:48:27 AM UTC, original submission:  

Running trytond-console leads to a ValueError. This can be solved by upgrading the pip package vobject. Why was this pinned to an old version in gnuhealth-setup?

import fnmatch, glob, traceback, errno, sys, atexit, locale, imp, stat
Traceback (most recent call last):
  File "./trytond-console", line 22, in <module>
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-6.0.16/trytond/console.py", line 46, in run
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-6.0.16/trytond/pool.py", line 152, in init
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-6.0.16/trytond/pool.py", line 105, in start
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-6.0.16/trytond/modules/__init__.py", line 347, in register_classes
    the_module = import_module(module)
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-6.0.16/trytond/modules/__init__.py", line 52, in import_module
    module = importlib.import_module(fullname)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-6.0.16/trytond/modules/health_caldav/__init__.py", line 16, in <module>
    from . import webdav
  File "/home/gnuhealth/gnuhealth/tryton/server/trytond-6.0.16/trytond/modules/health_caldav/webdav.py", line 3, in <module>
    import vobject
  File "/home/gnuhealth/.local/lib/python3.8/site-packages/vobject/__init__.py", line 79, in <module>
    from .base import newFromBehavior, readOne, readComponents
  File "/home/gnuhealth/.local/lib/python3.8/site-packages/vobject/base.py", line 72, in <module>
    formatter = logging.Formatter('{name} {levelname} {message}')
  File "/usr/lib/python3.8/logging/__init__.py", line 580, in _init_
  File "/usr/lib/python3.8/logging/__init__.py", line 433, in validate
    raise ValueError("Invalid format '%s' for '%s' style" % (self._fmt, self.default_format[0]))
ValueError: Invalid format '{name} {levelname} {message}' for '%' style

Gerald Wiese <gerald_wiese>
Group Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by gerald_wiese (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-04-02 meanmicio StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2022-03-31 meanmicio StatusNone Confirmed
        Assigned toNone gerald_wiese
        ReleaseNone 4.0.0
        Modulehealth caldav

    Back to the top

    Powered by Savane 3.12