- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 02:07 AM
When I follow the instructions Modularize your code using files I get the following error:
I am on azure, use DBRT 12.2 LTS, use ADLS as storage, I am happy to provide more details if needed. My research suggest that the reason is that the dfbs fuse driver does not support random writes (see limitations here). And it seems this is needed by the import mechanism behind the scenes in order to work.
But then how does it work for anybody? Is there something I can do to make it work?
And what is the exact difference between using import from files as compared to using the run command?
- Labels:
-
Code
-
Error
-
Notebook
-
Run Command
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 07:37 AM
Ok, I think this explains it. I made an error and created the library as a Notebook instead of file. Once I create it as a file, it works, although the contents are exactly the same.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 06:25 AM
import works for .py files.
.%run is for notebooks.
is lib a .py file or a notebook?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 07:37 AM
Ok, I think this explains it. I made an error and created the library as a Notebook instead of file. Once I create it as a file, it works, although the contents are exactly the same.
Thanks!