Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporarily disable Python tests on macOS #289

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

argilo
Copy link
Collaborator

@argilo argilo commented Dec 9, 2022

CI currently fails on macOS with the following error:

Traceback (most recent call last):
  File "/Users/runner/work/nrsc5/nrsc5/support/cli.py", line 272, in <module>
    cli = NRSC5CLI()
          ^^^^^^^^^^
  File "/Users/runner/work/nrsc5/nrsc5/support/cli.py", line 18, in __init__
    self.radio = nrsc5.NRSC5(lambda evt_type, evt: self.callback(evt_type, evt))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/runner/work/nrsc5/nrsc5/support/nrsc5.py", line 448, in __init__
    self._load_library()
  File "/Users/runner/work/nrsc5/nrsc5/support/nrsc5.py", line 346, in _load_library
    NRSC5.libnrsc5 = ctypes.cdll.LoadLibrary(lib_name)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ctypes/__init__.py", line 454, in LoadLibrary
    return self._dlltype(name)
           ^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/ctypes/__init__.py", line 376, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: dlopen(libnrsc5.dylib, 0x0006): tried: 'libnrsc5.dylib' (no such file), '/usr/lib/libnrsc5.dylib' (no such file), '/Users/runner/work/nrsc5/nrsc5/libnrsc5.dylib' (no such file)
Error: Process completed with exit code 1.

https://github.com/theori-io/nrsc5/actions/runs/3654014700/jobs/6174056836

It appears that something has changed in the GitHub Actions runner and /usr/local/lib is no longer in the library search path.

I made a few attempts at solving this (by setting the DYLD_LIBRARY_PATH and DYLD_FALLBACK_LIBRARY_PATH environment variables, and by attempting to install nrsc5 to /usr instead of /usr/local) but nothing has worked yet.

As a temporary workaround until a proper fix can be found, I'm proposing to disable the Python tests.

@argilo argilo merged commit 4b89d1c into theori-io:master Dec 9, 2022
@argilo argilo deleted the fix-macos-ci branch December 9, 2022 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant