cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to install a wheel file which is in my volume to a serverless cluster

Shravanshibu
New Contributor III

I am trying to install a wheel file which is in my volume to a serverless cluster, getting the below error@ken

@Kaniz_Fatma 

Note: you may need to restart the kernel using %restart_python or dbutils.library.restartPython() to use updated packages.
WARNING: Requirement '/dbfs/Volumes/adl_prod_ctlg/table_utils/table-utils/tableUtils-0.0.1-py3-none-any.whl' looks like a filename, but the file does not exist
Processing /dbfs/Volumes/adl_prod_ctlg/table_utils/table-utils/tableUtils-0.0.1-py3-none-any.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/dbfs/Volumes/adl_prod_ctlg/table_utils/table-utils/tableUtils-0.0.1-py3-none-any.whl'

CalledProcessError: Command 'pip --disable-pip-version-check install '/dbfs/Volumes/adl_prod_ctlg/table_utils/table-utils/tableUtils-0.0.1-py3-none-any.whl'' returned non-zero exit status 1.
File <command-118531548941866>, line 1
----> 1 get_ipython().run_line_magic('pip', "install '/dbfs/Volumes/adl_prod_ctlg/table_utils/table-utils/tableUtils-0.0.1-py3-none-any.whl'")

 

 

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Shravanshibu,

  • Verify that the wheel file is actually present at the specified location. Double-check the path to ensure there are no typos or missing directories.
  • Remember that Databricks mounts DBFS (Databricks File System) at /dbfs on cluster nodes. Make sure you’re using the correct path.
  • Instead of using dbfs:/, use /dbfs/ in your installation command. This ensures that the file is correctly referenced.
  • For example:
    pip install /dbfs/Volumes/adl_prod_ctlg/table_utils/table-utils/tableUtils-0.0.1-py3-none-any.whl
  • Ensure that the user running the installation command has the necessary permissions to access the file.
  • If you’re using shared resources, consider applying instance profiles for access to shared resources...
  • As mentioned in the note, try restarting the kernel using %restart_python or dbutils.library.restartPython().
  • This step ensures that any updated packages are properly loaded.
  • Confirm that the wheel file is a valid package and compatible with your Python environment.
  • If you’ve followed these steps and still encounter issues, please provide additional details or logs, and I’ll assist further!
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!