Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720148 - app-admin/salt-3000.2-r2 Python Missing Libraries (PyCrypto / PyCryptoDome)
Summary: app-admin/salt-3000.2-r2 Python Missing Libraries (PyCrypto / PyCryptoDome)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL: http://dpaste.com/0SN0M4D
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-30 17:37 UTC by luckylinux
Modified: 2020-04-30 18:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
salt --versions-report (salt_info.txt,6.73 KB, text/plain)
2020-04-30 17:44 UTC, luckylinux
Details
emerge --info app-admin/salt (salt_emerge.txt,22.25 KB, text/plain)
2020-04-30 17:45 UTC, luckylinux
Details
emerge --info dev-python/pycryptodome (pycryptodome_info.txt,22.12 KB, text/plain)
2020-04-30 17:45 UTC, luckylinux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description luckylinux 2020-04-30 17:37:00 UTC
After I upgraded today my salt master from app-admin/salt-2019.2.3 (on Python 3.6) to app-admin/salt-3000.2 and also app-admin/salt-3000.2-r2 (Python 3.7), the salt service doesn't start anymore.

Trying salt --versions-report indicates there is a problem with pycrypto. Given that pycrypto is currently masked in Portage and that PyCryptoDome should be a drop-in replacement for PyCrypto, I'm not sure what is going on here.

Reproducible: Always

Steps to Reproduce:
1. Upgrade salt (emerge --deep --update --newuse app-admin/salt)
2. Reinstall all python modules (dev-python/*)
3. Try to start salt with /etc/init.d/salt-master restart
4. View errors salt --versions-report
Actual Results:  
salt --versions-report
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.7/salt", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3251, in <module>
    @_call_aside
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycrypto>=2.6.1' distribution was not found and is required by salt

Expected Results:  
Salt service starting normally

Salt information: http://dpaste.com/0SN0M4D
PyCryptoDome information: http://dpaste.com/2E538D0
Comment 1 luckylinux 2020-04-30 17:44:49 UTC
Created attachment 635374 [details]
salt --versions-report

salt --versions-report
Comment 2 luckylinux 2020-04-30 17:45:12 UTC
Created attachment 635376 [details]
emerge --info app-admin/salt

emerge --info app-admin/salt
Comment 3 luckylinux 2020-04-30 17:45:50 UTC
Created attachment 635378 [details]
emerge --info dev-python/pycryptodome

emerge --info dev-python/pycryptodome
Comment 4 Larry the Git Cow gentoo-dev 2020-04-30 18:59:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f46a5f234c7ee1202d5b5dfd87ea5ad643f8eee8

commit f46a5f234c7ee1202d5b5dfd87ea5ad643f8eee8
Author:     Patrick McLean <patrick.mclean@sony.com>
AuthorDate: 2020-04-30 18:56:47 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-04-30 18:57:38 +0000

    app-admin/salt-3000.2-r3: revbump,pycrypto deps, fix warning (bug #720148)
    
    Get rid of all pycrypto deps from requirements files, fix
    collections.abc warning in bundled tornado.
    
    Closes: https://bugs.gentoo.org/720148
    
    Copyright: Sony Interactive Entertainment Inc.
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 app-admin/salt/files/salt-3000.2-tornado-py38.patch          | 12 ++++++++++++
 .../salt/{salt-3000.2-r2.ebuild => salt-3000.2-r3.ebuild}    |  4 ++++
 2 files changed, 16 insertions(+)