Hello everyone, this is my first post on this forum. I made a pottery dating machine. The space is called ‘terraID’. However, whenever I click the ‘Analyze’ button, I keep getting the error that there are No CUDA GPUs are available. I tried everything(yes, import Spaces is the first line of the app.py). Is there anyone who knows how this problem can be solved?There is also a ValueError that I can’t quite figure out. My username is ‘Stormpie’.
Thanks in advance for the help!
===== Application Startup at 2026-09-07 08:25:26 =====
#
[notice] To update, run: pip install --upgrade pip
#
#
Device at startup: CPU
CLIP: lazy-loaded on ZeroGPU request Imported 490 memory examples from museum_memory.json
FAISS memory rebuilt: 490 vectors
Could not load classifier: PytorchStreamReader failed reading zip archive: unsupported multidisk archive. This is an internal miniz error. If you are seeing this error, there is a high likelihood that your checkpoint file is corrupted. This can happen if the checkpoint was not saved properly, was transferred incorrectly, or the file was modified after saving.
Corrupt classifier moved to: museum_classifier_v5.pt.corrupt
Training classifier from existing memory…
Epoch 001/60 val=11.7%
Epoch 010/60 val=21.3%
Epoch 020/60 val=27.7%
Epoch 030/60 val=30.9%
Epoch 040/60 val=35.1%
Epoch 050/60 val=40.4%
Epoch 060/60 val=44.7%
Classifier checkpoint saved: museum_classifier_v5.pt
Classifier getraind. Validation accuracy: 45.7%. Training: 396, validation: 94.
Totaal: 490 voorbeelden
- ca. 5300-2000 v.Chr. — 64
- 2000-0 v.Chr — 73
- 0-400 n.Chr — 79
- 400-1200 n.Chr — 73
- 1200-1500 n.Chr — 35
- 1500-1700 n.Chr — 73
- 1700-1899 n.Chr — 52
- 1900-nu n.Chr — 41
FAISS vectors: 490
Validation accuracy: 45.7%
- Running on local URL: http://0.0.0.0:7860, with SSR (Node proxy → Python :7861) Exception ignored in: <function BaseEventLoop.del at 0x7fb288bc09a0>
Traceback (most recent call last): File “/usr/local/lib/python3.12/asyncio/base_events.py”, line 732, in del
self.close() File “/usr/local/lib/python3.12/asyncio/unix_events.py”, line 68, in close
super().close() File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 104, in close
self._close_self_pipe() File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 111, in _close_self_pipe
self._remove_reader(self._ssock.fileno()) File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 298, in _remove_reader
key = self._selector.get_key(fd) ^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/selectors.py”, line 190, in get_key
return mapping[fileobj]
File “/usr/local/lib/python3.12/selectors.py”, line 71, in _*getitem*_
fd = self._selector._fileobj_lookup(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/selectors.py”, line 225, in _fileobj_lookup
return _fileobj_to_fd(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/selectors.py”, line 42, in _fileobj_to_fd
```
raise ValueError(“Invalid file descriptor: {}”.format(fd))
ValueError: Invalid file descriptor: -1
```
Exception ignored in: <function BaseEventLoop._*del*_ at 0x7fb288bc09a0>
Traceback (most recent call last):
File “/usr/local/lib/python3.12/asyncio/base_events.py”, line 732, in _*del*_
self.close()
File “/usr/local/lib/python3.12/asyncio/unix_events.py”, line 68, in close
super().close()
File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 104, in close
self._close_self_pipe()
File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 111, in _close_self_pipe
self._remove_reader(self._ssock.fileno())
File “/usr/local/lib/python3.12/asyncio/selector_events.py”, line 298, in _remove_reader
key = self._selector.get_key(fd)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/selectors.py”, line 190, in get_key
return mapping[fileobj]
~~~~~~~^^^^^^^^^
File “/usr/local/lib/python3.12/selectors.py”, line 71, in _*getitem*_
fd = self._selector._fileobj_lookup(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/selectors.py”, line 225, in _fileobj_lookup
return _fileobj_to_fd(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/selectors.py”, line 42, in _fileobj_to_fd
```
raise ValueError(“Invalid file descriptor: {}”.format(fd))
ValueError: Invalid file descriptor: -1
* To create a public link, set `share=True` in `launch()`.
Traceback (most recent call last):
```
File “/usr/local/lib/python3.12/site-packages/spaces/zero/wrappers.py”, line 148, in worker_init
torch.init(nvidia_uuid)
File “/usr/local/lib/python3.12/site-packages/spaces/zero/torch/patching.py”, line 417, in init
torch.Tensor([0]).cuda()
File “/usr/local/lib/python3.12/site-packages/torch/cuda/_*init*_.py”, line 478, in _lazy_init
torch._C._cuda_init()
RuntimeError: No CUDA GPUs are available