Bug 241576 - sysutils/py-salt: Fails to run: pkg_resources.DistributionNotFound: The 'PyYAML<5.1' distribution was not found
Summary: sysutils/py-salt: Fails to run: pkg_resources.DistributionNotFound: The 'PyYA...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Kirill Ponomarev
Keywords: regression
Depends on: 241458
  Show dependency treegraph
Reported: 2019-10-29 18:50 UTC by bgdnlp
Modified: 2020-01-13 03:25 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback+


Note You need to log in before you can comment on or make changes to this bug.
Description bgdnlp 2019-10-29 18:50:23 UTC
This is caused by an upstream change. See https://github.com/saltstack/salt/issues/54871.

Upgraded through pkg, using latest repo (as opposed to quarterly). I'm using py27-salt, though I assume py36-salt is also affected. Saltstack minion refuses to start now. I assume master is also affected. The error:

 ~ ยป sudo service salt_minion start
Starting salt_minion.
Traceback (most recent call last):
  File "/usr/local/bin/salt-minion", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3250, in <module>
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'PyYAML<5.1' distribution was not found and is required by salt
/usr/local/etc/rc.d/salt_minion: WARNING: failed to start salt_minion

py-yaml was upgraded to 5.1 in June in FreeBSD. Saltstack worked fine until now. Maybe the requirements can be patched until upstream fixes it?

Reported on Github, too.
Comment 1 Christer Edwards 2019-10-31 23:13:28 UTC
This should be resolved in 2019.2.2_1. SVN head as of four days ago has the fix to remove the "PyYAML<5.1" requirement.

I can confirm that master/minion will start and communicate with PyYAML 5.1 on Salt 2019.2.2.

Once the packaging catches up please confirm and close this ticket.
Comment 2 bgdnlp 2019-11-01 19:00:13 UTC
Upgraded via pkg and can confirm that it starts now. Thank you.
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2020-01-13 03:25:11 UTC
^Triage: Track origin/resolution of this issue correctly

- Regressed by ports r499857 (via bug 237501)
- Assign to committer that resolved (via bug 241458)
- Set dependency on issue that resolved this one