← Back to issue list

python3 ctypes can't find libs on due to ld cache

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1861026
Type
issue
State
open
Author
~jdstrand
Labels
Created
Updated
Closed

Current evaluation

python3-magic snap fails on Ubuntu Core 16/18 with 'undefined symbol: magic_open' via ctypes (ld cache); works on classic. No maintainer response; affected bases (core, core18) are EOL.

Suggested action: close stale

Reason: The report targets UC16/UC18 and 'base: core'/'core18', all of which are EOL, and cites snapcraft 3.9.7/3.9.8. It has zero comments and no maintainer interaction over ~6.6 years (2408 days old), so the specific problem is no longer applicable to currently supported base versions.

Impact: 30 Quick Win: 16.5 Staleness: 92 Complexity: 45 Confidence: 68 Support Request: 15

Issue body

python3-magic 'undefined symbol: magic_open' on UC devices but not classic (ctypes issue) With the snap in https://code.launchpad.net/~jdstrand/+git/test-python3-magic the snap works fine on classic distro, but not on UC16 or UC18: On classic distro (eg, Ubuntu 19.10): $ snapcraft $ sudo snap install --dangerous ./test-python3-magic_0_amd64.snap $ test-python3-magic /bin/ls /bin/ls: application/x-executable; charset=binary On UC16 and UC18: $ test-python3-magic /bin/ls Traceback (most recent call last): File "/snap/test-python3-magic/x1/bin/test-python3-magic", line 3, in <module> import magic File "/snap/test-python3-magic/x1/usr/lib/python3/dist-packages/magic/__init__.py", line 361, in <module> add_compat(globals()) File "/snap/test-python3-magic/x1/usr/lib/python3/dist-packages/magic/__init__.py", line 325, in add_compat from magic import compat File "/snap/test-python3-magic/x1/usr/lib/python3/dist-packages/magic/compat.py", line 61, in <module> _open = _libraries['magic'].magic_open File "/snap/test-python3-magic/x1/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__ func = self.__getitem__(name) File "/snap/test-python3-magic/x1/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: python3: undefined symbol: magic_open Using 'base: core' or 'base: core18' makes no difference. Snapcraft 3.9.7 and 3.9.8 have the same behavior.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 16.5
Staleness: 92
Complexity: 45
Confidence: 68
Support Request: 15
close stale python3-magic snap fails on Ubuntu Core 16/18 with 'undefined symbol: magic_open' via ctypes (ld cache); works on classic. No maintainer response; affected bases (core, core18) are EOL.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 40
Confidence: 85
Support Request: 10
close stale Reports python3-magic failing with undefined symbol errors on Ubuntu Core 16/18 snaps due to ctypes and ld cache behavior. No maintainer response or labels, and the affected environments are long deprecated.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 65
Confidence: 85
Support Request: 20
close stale Python3 ctypes fails to load libmagic on Ubuntu Core 16/18 snaps due to ld cache issues. Reported over 5 years ago with no maintainer response or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 40
Confidence: 85
Support Request: 10
close stale Python3 ctypes fails to load libmagic on Ubuntu Core 16/18 snaps due to ld cache issues. Reported 6 years ago with zero maintainer interaction or comments. UC16/18 are EOL.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 65
Confidence: 90
Support Request: 10
close stale python3-magic fails with undefined symbol magic_open on Ubuntu Core due to ctypes/ld cache issues. Untriaged, no maintainer response, over 6 years old.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.