Databricks DBR 18.1 access workspace files error
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2026 01:11 AM
import json
with open("/Workspace/Users/<USER>/config.json", "r") as f:
config = json.load(f)
print(config)Throws following error
OSError: [Errno 5] Input/output error: '/Workspace/Users/<USER>/config.json'
[Trace ID: 00-874e2bc3d747c3611c0c4adf64f48620-ed365d30ae67cc7f-00]
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
File <command-6408169302940046>, line 3
1 import json
----> 3 with open("/Workspace/Users/<USER>/config.json", "r") as f:
4 config = json.load(f)
6 print(config)
File /databricks/python/lib/python3.12/site-packages/IPython/core/interactiveshell.py:324, in _modified_open(file, *args, **kwargs)
317 if file in {0, 1, 2}:
318 raise ValueError(
319 f"IPython won't let you open fd={file} by default "
320 "as it is likely to crash IPython. If you know what you are doing, "
321 "you can use builtins' open."
322 )
--> 324 return io_open(file, *args, **kwargs)
OSError: [Errno 5] Input/output error: '/Workspace/Users/<USER>/config.json'
Did something changed with DBR 18.1 and workspace files access?
I see no limitation in documentation
https://docs.databricks.com/aws/en/files/#work-with-workspace-files