Dijitso Error, Jupyter notebook

Im running the following code

from dolfin import *
from fenics import *
from tabulate import tabulate

#import time
import numpy as np
import matplotlib.pyplot as plt
    
mesh = UnitSquareMesh(32,32)
V = FunctionSpace(mesh,"Lagrange",1) #P1
    
exact = Expression("sin(x[0]-x[1]+t)",t=0,degree=10) #exact 

pltexact=interpolate(exact,V)

and am getting the following error but I can’t find any problems

------------------- Start compiler output ------------------------
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

-------------------  End compiler output  ------------------------
Compilation failed! Sources, command, and errors have been written to: /Users/elizabethhawkins/jitfailure-ffc_element_2d4ff644b3dd83803fb1e898ba9f33b754e32fa8
---------------------------------------------------------------------------
DijitsoError                              Traceback (most recent call last)
Input In [16], in <cell line: 13>()
     10 mesh = UnitSquareMesh(32,32)
     11 n=mesh.num_vertices()    
---> 13 V = FunctionSpace(mesh,"Lagrange",1) #P1
     15 exact = Expression("sin(x[0]-x[1]+t)",t=0,degree=10) #exact 
     17 pltexact=interpolate(exact,V)

File ~/opt/anaconda3/envs/fenicsproject/lib/python3.9/site-packages/dolfin/function/functionspace.py:33, in FunctionSpace.__init__(self, *args, **kwargs)
     31     self._init_from_ufl(*args, **kwargs)
     32 else:
---> 33     self._init_convenience(*args, **kwargs)

File ~/opt/anaconda3/envs/fenicsproject/lib/python3.9/site-packages/dolfin/function/functionspace.py:100, in FunctionSpace._init_convenience(self, mesh, family, degree, form_degree, constrained_domain, restriction)
     93 def _init_convenience(self, mesh, family, degree, form_degree=None,
     94                       constrained_domain=None, restriction=None):
     95 
     96     # Create UFL element
     97     element = ufl.FiniteElement(family, mesh.ufl_cell(), degree,
     98                                 form_degree=form_degree)
--> 100     self._init_from_ufl(mesh, element, constrained_domain=constrained_domain)

File ~/opt/anaconda3/envs/fenicsproject/lib/python3.9/site-packages/dolfin/function/functionspace.py:42, in FunctionSpace._init_from_ufl(self, mesh, element, constrained_domain)
     39 ufl.FunctionSpace.__init__(self, mesh.ufl_domain(), element)
     41 # Compile dofmap and element
---> 42 ufc_element, ufc_dofmap = ffc_jit(element, form_compiler_parameters=None,
     43                                   mpi_comm=mesh.mpi_comm())
     44 ufc_element = cpp.fem.make_ufc_finite_element(ufc_element)
     46 # Create DOLFIN element and dofmap

File ~/opt/anaconda3/envs/fenicsproject/lib/python3.9/site-packages/dolfin/jit/jit.py:47, in mpi_jit_decorator.<locals>.mpi_jit(*args, **kwargs)
     45 # Just call JIT compiler when running in serial
     46 if MPI.size(mpi_comm) == 1:
---> 47     return local_jit(*args, **kwargs)
     49 # Default status (0 == ok, 1 == fail)
     50 status = 0

File ~/opt/anaconda3/envs/fenicsproject/lib/python3.9/site-packages/dolfin/jit/jit.py:97, in ffc_jit(ufl_form, form_compiler_parameters)
     95 p.update(dict(parameters["form_compiler"]))
     96 p.update(form_compiler_parameters or {})
---> 97 return ffc.jit(ufl_form, parameters=p)

File ~/opt/anaconda3/envs/fenicsproject/lib/python3.9/site-packages/ffc/jitcompiler.py:217, in jit(ufl_object, parameters, indirect)
    214 kind, module_name = compute_jit_prefix(ufl_object, parameters)
    216 # Inspect cache and generate+build if necessary
--> 217 module = jit_build(ufl_object, module_name, parameters)
    219 # Raise exception on failure to build or import module
    220 if module is None:
    221     # TODO: To communicate directory name here, need dijitso params to call
    222     #fail_dir = dijitso.cache.create_fail_dir_path(signature, dijitso_cache_params)

File ~/opt/anaconda3/envs/fenicsproject/lib/python3.9/site-packages/ffc/jitcompiler.py:130, in jit_build(ufl_object, module_name, parameters)
    123 params = dijitso.validate_params({
    124     "cache": cache_params,
    125     "build": build_params,
    126     "generator": parameters,  # ffc parameters, just passed on to jit_generate
    127 })
    129 # Carry out jit compilation, calling jit_generate only if needed
--> 130 module, signature = dijitso.jit(jitable=ufl_object,
    131                                 name=module_name,
    132                                 params=params,
    133                                 generate=jit_generate)
    134 return module

File ~/opt/anaconda3/envs/fenicsproject/lib/python3.9/site-packages/dijitso/jit.py:216, in jit(jitable, name, params, generate, send, receive, wait)
    212     lib = load_library(signature, cache_params)
    214 if err_info:
    215     # TODO: Parse output to find error(s) for better error messages
--> 216     raise DijitsoError("Dijitso JIT compilation failed, see '%s' for details"
    217                        % err_info['fail_dir'], err_info)
    219 # Return built library and its signature
    220 return lib, signature

DijitsoError: Dijitso JIT compilation failed, see '/Users/elizabethhawkins/jitfailure-ffc_element_2d4ff644b3dd83803fb1e898ba9f33b754e32fa8' for details

See for instance https://www.quora.com/How-do-I-solve-this-error-in-PyCharm-MACOS-Xcrun-error-invalid-active-developer-path-Library-developer-CommandLineTools-missing-xcrun-at-Library-developer-CommandlineTools-usr-bin-xcrun
or Two reoccurring problems while running FEniCS - #11 by azerad