Bug 2 - Find-work crashes when running against gentoo repo
Summary: Find-work crashes when running against gentoo repo
Status: RESOLVED FIXED
Alias: None
Product: Software
Classification: Unclassified
Component: find-work (show other bugs)
Version: unspecified
Hardware: PC Linux
: --- normal
Assignee: Anna (cybertailor) Vyalkova
URL:
Depends on:
Blocks:
 
Reported: 2024-01-08 22:58 UTC by Julien
Modified: 2024-01-09 13:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien 2024-01-08 22:58:23 UTC
(reposting here for visibility)
I'm getting the below error when running find-work against ::gentoo.
It worked against ::guru.
I'm not sure what more information you would need about my system to
troubleshoot this so please let me know if I can be of more help!

$ find-work -I repology --repo gentoo outdated
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/find-work", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1157, in
__call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1078, in
main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1688, in
invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1688, in
invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 1434, in
invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/core.py", line 783, in
invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/click/decorators.py", line
45, in new_func
    return f(get_current_context().obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/find_work/cli/repology.py",
line 106, in outdated
    asyncio.run(_outdated(options))
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in
run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/find_work/cli/repology.py",
line 88, in _outdated
    outdated_set = _collect_version_bumps(data.values(), options)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/find_work/cli/repology.py",
line 62, in _collect_version_bumps
    if latest is None or atom.version > latest.version:
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gentoopm/util.py", line 53,
in __gt__
    return not self <= other
               ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gentoopm/util.py", line 50,
in __le__
    return self < other or self == other
           ^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/gentoopm/pkgcorepm/atom.py",
line 77, in __lt__
    raise NotImplementedError("Unable to compare versions of distinct
packages")
NotImplementedError: Unable to compare versions of distinct packages
Comment 1 Anna (cybertailor) Vyalkova 2024-01-08 23:38:12 UTC
Thanks again for the report!

Fixed this and another crash in `master`.

I'll add progress reporting support and release a point version.
Comment 2 Anna (cybertailor) Vyalkova 2024-01-09 02:00:10 UTC
Fixed in 0.2.0
Comment 3 Julien 2024-01-09 13:12:29 UTC
Thanks, I tested it and indeed it's fixed!