cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform 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!

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group