TypeError with python3-arrow 1.x

Bug #1983670 reported by Lauro Moura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watson (Ubuntu)
New
Undecided
Unassigned

Bug Description

python3-arrow >= 1.0 ships some API breaking changes that breaks Watson, addressed upstream in the PR https://github.com/TailorDev/Watson/pull/408/, released in watson 2.0.

This does not occur in impish as python3-arrow was 0.17 there.

Steps to reproduce (tested on a fresh 22.04 container):

* Install `watson`
* Launch it

Error:

```
Traceback (most recent call last):
  File "/usr/bin/watson", line 11, in <module>
    load_entry_point('td-watson==1.8.0', 'console_scripts', 'watson')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 479, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2861, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2465, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2471, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3/dist-packages/watson/__main__.py", line 2, in <module>
    from watson import cli
  File "/usr/lib/python3/dist-packages/watson/cli.py", line 399, in <module>
    _SHORTCUT_OPTIONS_VALUES = {
  File "/usr/lib/python3/dist-packages/watson/cli.py", line 400, in <dictcomp>
    k: get_start_time_for_period(k) for k in _SHORTCUT_OPTIONS
  File "/usr/lib/python3/dist-packages/watson/utils.py", line 181, in get_start_time_for_period
    start_time = get_last_full_moon(now)
  File "/usr/lib/python3/dist-packages/watson/fullmoon.py", line 226, in get_last_full_moon
    idx = bisect.bisect_right(fullmoons, now)
TypeError: '<' not supported between instances of 'method' and 'int'
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.