lava-nc / lava

A Software Framework for Neuromorphic Computing
https://lava-nc.org
Other
529 stars 136 forks source link

StateProbe doesn't work if there's no access to `/tmp` #799

Closed jlubo closed 7 months ago

jlubo commented 8 months ago

I describe here an issue that I posted on Confluence earlier today. It may be related to https://github.com/lava-nc/lava/issues/548.

Trying to run tutorialX05_probing_states.ipynb in vLab with lava-loihi v0.5.0, I’m getting a

PermissionError: [Errno 13] Permission denied: ‘/tmp/temp_state/var_id_1.npy'

I have temporarily fixed this by modifying line 30 in lava_nx_env/lib/python3.8/site-packages/lava/utils/loihi2_state_probes.py such that a local directory is used:

root = os.path.join(os.getcwd(), "tmp/")

Anyway, the issue might wanna be addressed in the next version of lava-loihi.

PhilippPlank commented 7 months ago

Thanks for raising this issue. There should be a fix in the next release.