ProgramOfThought module in Dspy error in Databricks notebooks

sengkchu
New Contributor III

This module uses deno, but even after installing it. I get a permissions error. Anyone encountered this before?

Failed to run ProgramOfThought: [Errno 13] Permission denied: 'deno'

Renu_
Valued Contributor II

Hi @sengkchu, were you able to resolve this error? Please ensure that Deno is installed in a directory with the necessary execution permissions. Also, make sure Deno is added to the PATH for every session, or include it in the cluster’s init script so it's available to your jobs.

View solution in original post

sengkchu
New Contributor III

Got it working @Renu_  

I needed to add the permissions in my notebook as I am on serverless. 

import os
path = "/local_disk0/.ephemeral_nfs/envs/{Python_Env_instance}/bin/deno"
os.chmod(path, 0o777)

View solution in original post