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

Issues in a readonly filesystem #2356

Closed
2 tasks done
RossHammer opened this issue Aug 26, 2024 · 0 comments · Fixed by #2357
Closed
2 tasks done

Issues in a readonly filesystem #2356

RossHammer opened this issue Aug 26, 2024 · 0 comments · Fixed by #2357
Labels
bug Something isn't working

Comments

@RossHammer
Copy link
Contributor

What happens?

In a readonly filesystem, in our case we have docker mounted as readonly, when importing splink it crashes trying to create __splinkdata_cache__

To Reproduce

In a docker image with splink installed the following command fails
docker run --rm --read-only test python -c 'import splink'

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.12/site-packages/splink/__init__.py", line 5, in <module>
    from splink.internals.datasets import splink_datasets
  File "/usr/local/lib/python3.12/site-packages/splink/internals/datasets/__init__.py", line 270, in <module>
    class _SplinkDataSets(metaclass=_SplinkDataSetsMeta, datasets=_datasets):
  File "/usr/local/lib/python3.12/site-packages/splink/internals/datasets/__init__.py", line 152, in __new__
    cls.cache_dir.mkdir(exist_ok=True)
  File "/usr/local/lib/python3.12/pathlib.py", line 1311, in mkdir
    os.mkdir(self, mode)
OSError: [Errno 30] Read-only file system: '/usr/local/lib/python3.12/site-packages/splink/internals/datasets/__splinkdata_cache__'

OS:

linux

Splink version:

4.0.0

Have you tried this on the latest master branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree
@RossHammer RossHammer added the bug Something isn't working label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@RossHammer and others