cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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โ€‹ 

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!