{"language": "Python", "id": 1, "repo_owner": "pyg-team", "repo_name": "pytorch_geometric", "head_branch": "master", "workflow_name": "Documentation", "workflow_filename": "documentation.yml", "workflow_path": ".github/workflows/documentation.yml", "contributor": "RafiBrent", "sha_fail": "eaba3578fb0d3bc8d6cb28db561f33656248bb86", "sha_success": "ea326156c6d7a396ce8cc3374aaffa94f92f05f3", "workflow": "name: Documentation\n\non: # yamllint disable-line rule:truthy\n push:\n branches:\n - master\n pull_request:\n\njobs:\n\n make_html:\n runs-on: ubuntu-latest\n\n steps:\n - name: Checkout repository\n uses: actions/checkout@v4\n with:\n fetch-depth: 40\n\n # Skip workflow if only certain files have been changed.\n - name: Get changed files\n id: changed-files-specific\n uses: tj-actions/changed-files@v34\n with:\n files: |\n benchmark/**\n conda/**\n docker/**\n examples/**\n graphgym/**\n README.md\n CHANGELOG.md\n\n - name: Setup packages\n if: steps.changed-files-specific.outputs.only_changed != 'true'\n uses: ./.github/actions/setup\n with:\n full_install: false\n\n - name: Install main package\n if: steps.changed-files-specific.outputs.only_changed != 'true'\n run: |\n pip install nbsphinx\n pip install git+https://github.com/pyg-team/pyg_sphinx_theme.git\n pip install -e .\n\n - name: Build documentation\n if: steps.changed-files-specific.outputs.only_changed != 'true'\n run: |\n cd docs && make clean && make html SPHINXOPTS=\"-W\" # Fail on warning.\n", "logs": [{"step_name": "make_html/6_Build documentation.txt", "log": "##[group]Run cd docs && make clean && make html SPHINXOPTS=\"-W\" # Fail on warning.\n\u001b[36;1mcd docs && make clean && make html SPHINXOPTS=\"-W\" # Fail on warning.\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64\n PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig\n Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64\n LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib\n##[endgroup]\nRunning Sphinx v5.1.1\n\nConfiguration error:\nThere is a programmable error in your configuration file:\n\nTraceback (most recent call last):\n File \"/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/sphinx/config.py\", line 347, in eval_config_file\n exec(code, namespace)\n File \"/home/runner/work/pytorch_geometric/pytorch_geometric/docs/source/conf.py\", line 7, in \n import torch_geometric\n File \"/home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/__init__.py\", line 6, in \n import torch_geometric.datasets\n File \"/home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/datasets/__init__.py\", line 18, in \n from .qm9 import QM9\n File \"/home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/datasets/qm9.py\", line 47, in \n class QM9(InMemoryDataset):\n File \"/home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/datasets/qm9.py\", line 150, in QM9\n if self.featurize:\nNameError: name 'self' is not defined\n\nmake: *** [Makefile:9: html] Error 2\n##[error]Process completed with exit code 2.\n"}], "diff": "diff --git a/torch_geometric/datasets/qm9.py b/torch_geometric/datasets/qm9.py\nindex 11c457796..d0ef96b1c 100644\n--- a/torch_geometric/datasets/qm9.py\n+++ b/torch_geometric/datasets/qm9.py\n@@ -147,11 +147,6 @@ class QM9(InMemoryDataset):\n 'molnet_publish/qm9.zip')\n raw_url2 = 'https://ndownloader.figshare.com/files/3195404'\n \n- if self.featurize:\n- processed_url = 'https://data.pyg.org/datasets/qm9_v3_featurized.zip'\n- else:\n- processed_url = 'https://data.pyg.org/datasets/qm9_v3.zip'\n-\n def __init__(\n self,\n root: str,\n@@ -163,6 +158,12 @@ class QM9(InMemoryDataset):\n ):\n super().__init__(root, transform, pre_transform, pre_filter,\n force_reload=force_reload)\n+\n+ if featurize == True:\n+ self.processed_url = 'https://data.pyg.org/datasets/qm9_v3_featurized.zip'\n+ else:\n+ self.processed_url = 'https://data.pyg.org/datasets/qm9_v3.zip'\n+ \n self.featurize = featurize\n self.load(self.processed_paths[0])\n \n", "difficulty": "1"}