Github messages for voidlinux
 help / color / mirror / Atom feed
From: hazayan <hazayan@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] python3-pyinfra: dependencies are broken
Date: Wed, 13 Jan 2021 13:32:53 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27885@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2765 bytes --]

New issue by hazayan on void-packages repository

https://github.com/void-linux/void-packages/issues/27885

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  *Void 5.9.16_1 x86_64 GenuineIntel uptodate rFFFF*
* package:  
  *affected package(s) including the version*: python3-pyinfra-1.3.1_1

### Expected behavior

Running pyinfra would run without dependency errors

### Actual behavior

Running the command below result in  the subsequent trace:

```
.... truncated for brevity ....

File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'distro==1.5.0' distribution was not found and is required by pyinfra
```

Upon fixing this by manually installing `python3-distro`, running the cli results in the subsequent trace:

```
.... truncated for brevity ....

File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 569, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 582, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'gevent>=1.5' distribution was not found and is required by pyinfra
```

`python3-gevent` version currently is `1.4.0`. Working around that by locally updating the package template to the latest upstream version, then building and installing it, fixes the issue.

### Steps to reproduce the behavior

```
$ pyinfra @local exec -- echo "hello world"
```

             reply	other threads:[~2021-01-13 12:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-13 12:32 hazayan [this message]
2021-01-13 17:14 ` UsernameRandomlyGenerated
2021-01-19 22:15 ` leahneukirchen
2021-01-19 22:15 ` [ISSUE] [CLOSED] " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27885@inbox.vuxu.org \
    --to=hazayan@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).