AttributeError: module 'dbutils' has no attribute 'fs'

bonjih
New Contributor

Hi,

Using db in SageMaker to connect EC2 to S3. Following other examples I get 'AttributeError: module 'dbutils' has no attribute 'fs'....

I guess Im missing an import?

AmanSehgal
Honored Contributor III

You might be using some other package named dbutils.

Try

import pyspark.dbutils
 
dbutils.fs.ls("/mnt")

View solution in original post

-werners-
Esteemed Contributor III

What Melbourne said or you are using databricks-connect which has limited dbutils functionality.

Atanu
Databricks Employee
Databricks Employee

agree with @Werner Stinckens​  . also may try importing dbutils - @ben Hamilton​