-
Notifications
You must be signed in to change notification settings - Fork 203
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Is this a duplicate?
- I confirmed there appear to be no duplicate issues for this bug and that I agree to the Code of Conduct
Describe the bug
01.04.01 in C++ tutorial occasionally can't access temporary storage, which can be fixed by deleting and re-starting the runtime. We should move all temporary files generated by C++ labs from /tmp to local directory.
Steps to reproduce
The failure is rather random, not sure what triggers it.
Expected behavior
All cells in 01.04.01 should run without errors.
Actual behavior
01.04.01 in C++ tutorial randomly triggers the following error on Colab:
/content/Sources/ach.py in drawframe(i)
28
29 def drawframe(i):
---> 30 with open(f"/tmp/heat_{i}.bin", 'rb') as f:
31 height, width = np.fromfile(f, dtype=np.int32, count=2)
32 data = np.fromfile(f, dtype=np.float32, count=height * width)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/heat_0.bin'
<Figure size 800x200 with 0 Axes>
Environment
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working