deep-learning-with-pytorch/dlwpt-code

sqlite3.DatabaseError: database disk image is malformed

Keitaro-Ninomiya opened this issue · 0 comments

run('p2ch11.prepcache.LunaPrepCacheApp') comes up with an error saying,

sqlite3.DatabaseError: database disk image is malformed.

I am using Google Colab's GPU. All the other codes in this jupyter notebook are running fine.

I'm guessing that the my LUNA files are not being uploaded to local memory correctly.
Could you give me guidance on what I could do to fix this?

The preceding results are the following.

DatabaseError: Caught DatabaseError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/content/drive/My Drive/ColabNotebooks/Pytorch/p2ch11/dsets.py", line 198, in getitem
width_irc,
File "/usr/local/lib/python3.7/dist-packages/diskcache/core.py", line 1886, in wrapper
result = self.get(key, default=ENOVAL, retry=True)
File "/usr/local/lib/python3.7/dist-packages/diskcache/fanout.py", line 284, in get
return shard.get(key, default, read, expire_time, tag, retry)
File "/usr/local/lib/python3.7/dist-packages/diskcache/core.py", line 1168, in get
rows = self._sql(select, (db_key, raw, time.time())).fetchall()
sqlite3.DatabaseError: database disk image is malformed