cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

ProgramOfThought module in Dspy error in Databricks notebooks

sengkchu
New Contributor II

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'

2 ACCEPTED SOLUTIONS

Accepted Solutions

Renu_
Contributor III

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 II

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

2 REPLIES 2

Renu_
Contributor III

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.

sengkchu
New Contributor II

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)