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

Splink install failing due to splink_datasets PermissionError #2341

Closed
ADBond opened this issue Aug 16, 2024 · 1 comment
Closed

Splink install failing due to splink_datasets PermissionError #2341

ADBond opened this issue Aug 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ADBond
Copy link
Contributor

ADBond commented Aug 16, 2024

Another colleague in ONS and I have been struggling to import splink into a dataproc serverless instance. We're both essentially using the basic google recommended container image from a dockerfile and just adding Splink to the list of dependencies to install.

The problem doesn't seem to occur with Splink version 2.x but does with 3.x and 4, and there isn't a problem using Splink on a single VM inside Google Cloud Platform.

The error that returns is:

File "/opt/miniconda3/lib/python3.12/site-packages/splink/__init__.py", line 5, in <module> from splink.internals.datasets import splink_datasets
File "/opt/miniconda3/lib/python3.12/site-packages/splink/internals/datasets/__init__.py", line 270, in <module> class _SplinkDataSets(metaclass=_SplinkDataSetsMeta, datasets=_datasets):
File "/opt/miniconda3/lib/python3.12/site-packages/splink/internals/datasets/__init__.py", line 152, in __new__ cls.cache_dir.mkdir(exist_ok=True)
File "/opt/miniconda3/lib/python3.12/pathlib.py", line 1311, in mkdir os.mkdir(self, mode)
PermissionError: [Errno 13] Permission denied: '/opt/miniconda3/lib/python3.12/site packages/splink/internals/datasets/__splinkdata_cache__'

Originally posted by @WillHoylesONS in #2340

@ADBond ADBond added the bug Something isn't working label Aug 16, 2024
@ADBond
Copy link
Contributor Author

ADBond commented Sep 2, 2024

Closed by #2357, but see also #2369.

@ADBond ADBond closed this as completed Sep 2, 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

No branches or pull requests

1 participant