Bug 1925689 - python3-matrix-nio misses python3-crypto dependency
Summary: python3-matrix-nio misses python3-crypto dependency
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-matrix-nio
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-05 21:05 UTC by Georg Sauthoff
Modified: 2021-04-27 00:57 UTC (History)
1 user (show)

Fixed In Version: python-matrix-nio-0.15.2-5.fc34 python-matrix-nio-0.15.2-5.fc33
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-24 20:14:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Georg Sauthoff 2021-02-05 21:05:01 UTC
Description of problem:
After installing python3-matrix-nio on a (kind-of) minimal Fedora system it can't be used because its import fails since the Crypto module isn't available.

Version-Release number of selected component (if applicable):
python3-matrix-nio-0.15.2-1.fc32.noarch

How reproducible:
always

Steps to Reproduce:
1. dnf install python3-matrix-nio
2. python3 -c 'import nio'
3.

Actual results:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.8/site-packages/nio/__init__.py", line 2, in <module>
    from .client import *
  File "/usr/lib/python3.8/site-packages/nio/client/__init__.py", line 3, in <module>
    from .base_client import Client, ClientConfig
  File "/usr/lib/python3.8/site-packages/nio/client/base_client.py", line 35, in <module>
    from ..crypto import ENCRYPTION_ENABLED
  File "/usr/lib/python3.8/site-packages/nio/crypto/__init__.py", line 16, in <module>
    from .attachments import encrypt_attachment, decrypt_attachment
  File "/usr/lib/python3.8/site-packages/nio/crypto/attachments.py", line 24, in <module>
    from Crypto import Random
ModuleNotFoundError: No module named 'Crypto'

Expected results:
the import command succeeds, i.e. no output, success exit status

Additional info:
I assume that this issue can also be reproduced on Fedora 33.

Workaround: Manually install python3-crypto as well.

Obvious fix: add python3-crypto as a python3-matrix-nio package dependency.

Comment 1 Fedora Update System 2021-04-17 13:40:45 UTC
FEDORA-2021-3127e9349b has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-3127e9349b

Comment 2 Fedora Update System 2021-04-17 13:40:46 UTC
FEDORA-2021-8853c08ef7 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-8853c08ef7

Comment 3 Fedora Update System 2021-04-18 17:04:17 UTC
FEDORA-2021-8853c08ef7 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-8853c08ef7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-8853c08ef7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2021-04-19 18:31:53 UTC
FEDORA-2021-3127e9349b has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-3127e9349b`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-3127e9349b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2021-04-24 20:14:27 UTC
FEDORA-2021-8853c08ef7 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2021-04-27 00:57:27 UTC
FEDORA-2021-3127e9349b has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.