python3 ctypes can't find libs on due to ld cache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Confirmed
|
Undecided
|
Unassigned | ||
review-tools |
Fix Released
|
Undecided
|
Unassigned | ||
snapd |
Triaged
|
Low
|
Unassigned |
Bug Description
python3-magic 'undefined symbol: magic_open' on UC devices but not classic (ctypes issue)
With the snap in https:/
On classic distro (eg, Ubuntu 19.10):
$ snapcraft
$ sudo snap install --dangerous ./test-
$ test-python3-magic /bin/ls
/bin/ls: application/
On UC16 and UC18:
$ test-python3-magic /bin/ls
Traceback (most recent call last):
File "/snap/
import magic
File "/snap/
add_
File "/snap/
from magic import compat
File "/snap/
_open = _libraries[
File "/snap/
func = self.__
File "/snap/
func = self._FuncPtr(
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.
Changed in snapcraft: | |
status: | New → Confirmed |
Adding a review-tools task since due to this bug, they cannot be run on UC.