databricks cli dbfs command is is throwing error

605 Views Asked by At

I am trying to execute below command in git bash as well as in cmd. However its not working. databricks cli is already installed using pip install databricks-cli installed

  • dbfs rm -r dbfs:/reco/user/feature/branch Error: TypeError: an integer is required (got type bytes)
2

There are 2 best solutions below

0
On BEST ANSWER

uninstalling pyspark 3 worked for me. I am still using python 3.8.5 so looks like issue was after installing pyspark 3

2
On

It's a known issue with Python 3.8, workaround is to use Python 3.7 or to uninstall pyspark 2.4.x that it's incompatible with Python 3.8 anyway...