cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

3 REPLIES 3

AmanSehgal
Honored Contributor III

You might be using some other package named dbutils.

Try

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

-werners-
Esteemed Contributor III

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

Atanu
Esteemed Contributor
Esteemed Contributor

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