init script capture the Libraries

Sharukh Kundagol 145 Reputation points
2023-04-06T07:31:38.6666667+00:00

I Have requirment to capture all the py libraries in a files as part of init script. i have below command in init script.

pip freeze > /dbfs/databricks/scripts/library_versions.txt

but getting error : /dbfs/databricks/scripts/new_libraries-init.sh: 8: cannot create /dbfs/databricks/scripts/library_versions.txt : Invalid argument This error will not come when i use dbutils.fs.put to create the sh file, but when i deploy the script part of devops or copy the sh file from adls to dbfs this error is apearing .

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.