Skip to content

Working with shared objects .so #774

@danicc097

Description

@danicc097

Describe the bug
I ran into some testing issues with Ghostscript, which requires some shared objects to be available.

How To Reproduce
Install ghostscript via your system package manager and the python library ghostscript.

class TestGhostscript:
    def test_installed(self, fs):
        from ctypes.util import find_library

        print(find_library("gs")) # expected 'libgs.so.9'

        assert find_library("gs") is not None

this will fail. Remove fs and test passes.

Is there a workaround for this?

NOTE this fails both locally and running in docker with python:3.9.5-slim-buster

Your environment

Linux-5.4.0-137-generic-x86_64-with-glibc2.31
Python 3.9.5 (default, Aug  3 2022, 11:09:29) 
[GCC 9.4.0]
pytest 7.1.0
pyfakefs 4.5.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions