~sircmpwn/sr.ht-discuss

1

Meta Webhooks Service on Arch Linux - Python Click Version Issue

Falcon Programmer
Details
Message ID
<CAGHFC=QXAbuvSDMT-1ToXQ4+idfo1_pPw_wcB56-X5HzooayHw@mail.gmail.com>
DKIM signature
pass
Download raw message
Hi,

I'm trying to setup sourcehut on my own server, it's on Arch Linux.
I've setup the config and launched the meta.sr.ht.service and
meta.sr.ht-api.service fine, but meta.sr.ht-webhooks has an issue.
Based on the log (as below), it is looking for a version of click
>=7.0 and <8.0, however the default version of python-click on Arch
now is 8.0.1. I'm sure I can get this running by installing a
different version via pip, but perhaps this is something that is
needed to be sorted for new installations?

What are peoples thoughts here? Thanks.

    Jun 03 19:59:04 myserver systemd[1]: Started meta.sr.ht webhooks service.
    Jun 03 19:59:04 myserver celery[175722]: Traceback (most recent call last):
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
568, in _build_master
    Jun 03 19:59:04 myserver celery[175722]:     ws.require(__requires__)
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
886, in require
    Jun 03 19:59:04 myserver celery[175722]:     needed =
self.resolve(parse_requirements(requirements))
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
777, in resolve
    Jun 03 19:59:04 myserver celery[175722]:     raise
VersionConflict(dist, req).with_context(dependent_req)
    Jun 03 19:59:04 myserver celery[175722]:
pkg_resources.ContextualVersionConflict: (click 8.0.1
(/usr/lib/python3.9/site-packages),
Requirement.parse('click<8.0,>=7.0'), {'celery'})
    Jun 03 19:59:04 myserver celery[175722]: During handling of the
above exception, another exception occurred:
    Jun 03 19:59:04 myserver celery[175722]: Traceback (most recent call last):
    Jun 03 19:59:04 myserver celery[175722]:   File "/usr/bin/celery",
line 33, in <module>
    Jun 03 19:59:04 myserver celery[175722]:
sys.exit(load_entry_point('celery==5.0.5', 'console_scripts',
'celery')())
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/celery/__main__.py", line 14, in
main
    Jun 03 19:59:04 myserver celery[175722]:     from
celery.bin.celery import main as _main
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/celery/bin/celery.py", line 11, in
<module>
    Jun 03 19:59:04 myserver celery[175722]:     from pkg_resources
import iter_entry_points
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
3243, in <module>
    Jun 03 19:59:04 myserver celery[175722]:     def
_initialize_master_working_set():
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
3226, in _call_aside
    Jun 03 19:59:04 myserver celery[175722]:     f(*args, **kwargs)
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
3255, in _initialize_master_working_set
    Jun 03 19:59:04 myserver celery[175722]:     working_set =
WorkingSet._build_master()
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
570, in _build_master
    Jun 03 19:59:04 myserver celery[175722]:     return
cls._build_from_requirements(__requires__)
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
583, in _build_from_requirements
    Jun 03 19:59:04 myserver celery[175722]:     dists =
ws.resolve(reqs, Environment())
    Jun 03 19:59:04 myserver celery[175722]:   File
"/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
772, in resolve
    Jun 03 19:59:04 myserver celery[175722]:     raise
DistributionNotFound(req, requirers)
    Jun 03 19:59:04 myserver celery[175722]:
pkg_resources.DistributionNotFound: The 'click<8.0,>=7.0' distribution
was not found and is required by celery
    Jun 03 19:59:04 myserver systemd[1]: meta.sr.ht-webhooks.service:
Main process exited, code=exited, status=1/FAILURE
    Jun 03 19:59:04 myserver systemd[1]: meta.sr.ht-webhooks.service:
Failed with result 'exit-code'.
Falcon Programmer
Details
Message ID
<CAGHFC=TW62A887i-F1+HrzjSBxTsprKC6bxFwCJ2N7Mo+w51=w@mail.gmail.com>
In-Reply-To
<CAGHFC=QXAbuvSDMT-1ToXQ4+idfo1_pPw_wcB56-X5HzooayHw@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
Apologies for the formatting - Gmail decided to impose a line length
maximum for some reason.

On Thu, 3 Jun 2021 at 21:26, Falcon Programmer
<programmerfalcon@gmail.com> wrote:
>
> Hi,
>
> I'm trying to setup sourcehut on my own server, it's on Arch Linux.
> I've setup the config and launched the meta.sr.ht.service and
> meta.sr.ht-api.service fine, but meta.sr.ht-webhooks has an issue.
> Based on the log (as below), it is looking for a version of click
> >=7.0 and <8.0, however the default version of python-click on Arch
> now is 8.0.1. I'm sure I can get this running by installing a
> different version via pip, but perhaps this is something that is
> needed to be sorted for new installations?
>
> What are peoples thoughts here? Thanks.
>
>     Jun 03 19:59:04 myserver systemd[1]: Started meta.sr.ht webhooks service.
>     Jun 03 19:59:04 myserver celery[175722]: Traceback (most recent call last):
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
> 568, in _build_master
>     Jun 03 19:59:04 myserver celery[175722]:     ws.require(__requires__)
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
> 886, in require
>     Jun 03 19:59:04 myserver celery[175722]:     needed =
> self.resolve(parse_requirements(requirements))
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
> 777, in resolve
>     Jun 03 19:59:04 myserver celery[175722]:     raise
> VersionConflict(dist, req).with_context(dependent_req)
>     Jun 03 19:59:04 myserver celery[175722]:
> pkg_resources.ContextualVersionConflict: (click 8.0.1
> (/usr/lib/python3.9/site-packages),
> Requirement.parse('click<8.0,>=7.0'), {'celery'})
>     Jun 03 19:59:04 myserver celery[175722]: During handling of the
> above exception, another exception occurred:
>     Jun 03 19:59:04 myserver celery[175722]: Traceback (most recent call last):
>     Jun 03 19:59:04 myserver celery[175722]:   File "/usr/bin/celery",
> line 33, in <module>
>     Jun 03 19:59:04 myserver celery[175722]:
> sys.exit(load_entry_point('celery==5.0.5', 'console_scripts',
> 'celery')())
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/celery/__main__.py", line 14, in
> main
>     Jun 03 19:59:04 myserver celery[175722]:     from
> celery.bin.celery import main as _main
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/celery/bin/celery.py", line 11, in
> <module>
>     Jun 03 19:59:04 myserver celery[175722]:     from pkg_resources
> import iter_entry_points
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
> 3243, in <module>
>     Jun 03 19:59:04 myserver celery[175722]:     def
> _initialize_master_working_set():
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
> 3226, in _call_aside
>     Jun 03 19:59:04 myserver celery[175722]:     f(*args, **kwargs)
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
> 3255, in _initialize_master_working_set
>     Jun 03 19:59:04 myserver celery[175722]:     working_set =
> WorkingSet._build_master()
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
> 570, in _build_master
>     Jun 03 19:59:04 myserver celery[175722]:     return
> cls._build_from_requirements(__requires__)
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
> 583, in _build_from_requirements
>     Jun 03 19:59:04 myserver celery[175722]:     dists =
> ws.resolve(reqs, Environment())
>     Jun 03 19:59:04 myserver celery[175722]:   File
> "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line
> 772, in resolve
>     Jun 03 19:59:04 myserver celery[175722]:     raise
> DistributionNotFound(req, requirers)
>     Jun 03 19:59:04 myserver celery[175722]:
> pkg_resources.DistributionNotFound: The 'click<8.0,>=7.0' distribution
> was not found and is required by celery
>     Jun 03 19:59:04 myserver systemd[1]: meta.sr.ht-webhooks.service:
> Main process exited, code=exited, status=1/FAILURE
>     Jun 03 19:59:04 myserver systemd[1]: meta.sr.ht-webhooks.service:
> Failed with result 'exit-code'.
Reply to thread Export thread (mbox)