Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NeuroGraphDataset BadZipFile #9890

Open
PascalIversen opened this issue Dec 25, 2024 · 1 comment
Open

NeuroGraphDataset BadZipFile #9890

PascalIversen opened this issue Dec 25, 2024 · 1 comment

Comments

@PascalIversen
Copy link
Contributor

PascalIversen commented Dec 25, 2024

Hello PyG team!
I think the download of the NeuroGraphDataset doesn't work anymore:

from torch_geometric.datasets import NeuroGraphDataset
import torch_geometric
print(torch_geometric.__version__)
dataset = NeuroGraphDataset(root='data/', name='HCPTask', transform=None)

Error:

{
	"name": "BadZipFile",
	"message": "File is not a zip file",
	"stack": "---------------------------------------------------------------------------
BadZipFile                                Traceback (most recent call last)
File \"<user_code>\", line 5, in <module>
    dataset = NeuroGraphDataset(root='<data_directory>', name='<dataset_name>', transform=None)

File \"<library_path>/torch_geometric/datasets/neurograph.py\", line 80, in __init__
    super().__init__(root, transform, pre_transform, pre_filter, force_reload=force_reload)
    self.load(self.processed_paths[0])

File \"<library_path>/torch_geometric/data/in_memory_dataset.py\", line 81, in __init__
    super().__init__(root, transform, pre_transform, pre_filter, log, force_reload)

File \"<library_path>/torch_geometric/data/dataset.py\", line 112, in __init__
    self._download()

File \"<library_path>/torch_geometric/data/dataset.py\", line 229, in _download
    self.download()

File \"<library_path>/torch_geometric/datasets/neurograph.py\", line 103, in download
    extract_zip(path, self.raw_dir)

File \"<library_path>/torch_geometric/data/extract.py\", line 44, in extract_zip
    with zipfile.ZipFile(path, 'r') as f:
        f.extractall(folder)

File \"<python_standard_library>/zipfile.py\", line 1302, in __init__
    self._RealGetContents()

File \"<python_standard_library>/zipfile.py\", line 1369, in _RealGetContents
    raise BadZipFile(\"File is not a zip file\")

BadZipFile: File is not a zip file"
}

Versions

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 24353 100 24353 0 0 81492 0 --:--:-- --:--:-- --:--:-- 81721
Collecting environment information...
PyTorch version: 2.1.2
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 14.7.1 (arm64)
GCC version: Could not collect
Clang version: 16.0.0 (clang-1600.0.26.4)
CMake version: Could not collect
Libc version: N/A

Python version: 3.11.5 | packaged by conda-forge | (main, Aug 27 2023, 03:33:12) [Clang 15.0.7 ] (64-bit runtime)
Python platform: macOS-14.7.1-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Apple M3 Pro

Versions of relevant libraries:
[pip3] numpy==1.26.2
[pip3] pytorch-lightning==2.1.3
[pip3] torch==2.1.2
[pip3] torch-geometric==2.6.1
[pip3] torchaudio==2.1.2
[pip3] torchmetrics==1.2.1
[pip3] torchvision==0.16.2
[conda] captum 0.7.0 0 pytorch
[conda] numpy 1.26.2 py311he598dae_0
[conda] numpy-base 1.26.2 py311hfbfe69c_0
[conda] pytorch 2.1.2 py3.11_0 pytorch
[conda] pytorch-lightning 2.1.3 pyhd8ed1ab_0 conda-forge
[conda] pytorch-mutex 1.0 cuda pytorch
[conda] torch-geometric 2.6.1 pypi_0 pypi
[conda] torchaudio 2.1.2 py311_cpu pytorch
[conda] torchmetrics 1.2.1 pyhd8ed1ab_0 conda-forge
[conda] torchvision 0.16.2 py311_cpu pytorch

@akihironitta
Copy link
Member

@PascalIversen Can you try removing the data and re-download the dataset? I wasn't able to reproduce this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants