Bug 2255464 - python3-z3 dependency wrong or incomplete
Summary: python3-z3 dependency wrong or incomplete
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: z3
Version: 39
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-20 22:39 UTC by Ulrich Drepper
Modified: 2023-12-30 01:23 UTC (History)
2 users (show)

Fixed In Version: z3-4.12.4-2.fc39
Clone Of:
Environment:
Last Closed: 2023-12-30 01:23:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ulrich Drepper 2023-12-20 22:39:06 UTC
The z3 python module loads libz3.so.  This is the link file of the z3 package, not the runtime file.  It is therefore provided in z3-devel.

There is the question whether the Python module should indeed depend on the ABI version as specified in the full runtime name: libz3.so.4.12.  In that case the loader code must use the correct file name but nothing else needs to change.

Alternatively, the Python module can continue to use libz3.so as the file name.  But then it is necessary to add z3-devel to the dependencies of python3-z3.

Reproducible: Always

Steps to Reproduce:
1.make sure z3-devel is not installed but python3-z3 is installed
2.start python
3.type 'import z3'
Actual Results:  
>>> import z3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'z3'
>>> import z3py
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'z3py'
>>> import pyz3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pyz3'


Expected Results:  
module is loaded normally

Comment 1 Jerry James 2023-12-21 16:51:08 UTC
Thank you for the report, Ulrich.  This used to work.  It looks like I inadvertently broke it with the update to version 4.12.4.  I have built a fixed version in Rawhide and am launching an F39 build now.

Comment 2 Fedora Update System 2023-12-21 17:37:58 UTC
FEDORA-2023-dcae94ae27 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-dcae94ae27

Comment 3 Fedora Update System 2023-12-22 02:52:32 UTC
FEDORA-2023-dcae94ae27 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-dcae94ae27`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-dcae94ae27

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

Comment 4 Fedora Update System 2023-12-30 01:23:00 UTC
FEDORA-2023-dcae94ae27 has been pushed to the Fedora 39 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.