Repository: pyg-team/pytorch_geometric (branch: master)
Commit date: 2023-11-19T21:07:19Z

Workflow file: .github/workflows/documentation.yml (Documentation)
name: Documentation

on:  # yamllint disable-line rule:truthy
  push:
    branches:
      - master
  pull_request:

jobs:

  make_html:
    runs-on: ubuntu-latest
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 40

      # Skip workflow if only certain files have been changed.
      - name: Get changed files
        id: changed-files-specific
        uses: tj-actions/changed-files@v34
        with:
          files: |
            benchmark/**
            conda/**
            docker/**
            examples/**
            graphgym/**
            README.md
            CHANGELOG.md

      - name: Setup packages
        if: steps.changed-files-specific.outputs.only_changed != 'true'
        uses: ./.github/actions/setup
        with:
          full_install: false

      - name: Install main package
        if: steps.changed-files-specific.outputs.only_changed != 'true'
        run: |
          pip install nbsphinx
          pip install git+https://github.com/pyg-team/pyg_sphinx_theme.git
          pip install -e .

      - name: Build documentation
        if: steps.changed-files-specific.outputs.only_changed != 'true'
        run: |
          cd docs && make clean && make html SPHINXOPTS="-W"  # Fail on warning.

env:
  PIP_INDEX_URL: http://localhost:8629/2023-11-19
  UV_INDEX_URL: http://localhost:8629/2023-11-19


Failed build logs:
step_name: make_html/6_Build documentation.txt
log: ##[group]Run cd docs && make clean && make html SPHINXOPTS="-W"  # Fail on warning.
[36;1mcd docs && make clean && make html SPHINXOPTS="-W"  # Fail on warning.[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
##[endgroup]
Running Sphinx v5.1.1

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/sphinx/config.py", line 347, in eval_config_file
    exec(code, namespace)
  File "/home/runner/work/pytorch_geometric/pytorch_geometric/docs/source/conf.py", line 7, in <module>
    import torch_geometric
  File "/home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/__init__.py", line 6, in <module>
    import torch_geometric.datasets
  File "/home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/datasets/__init__.py", line 18, in <module>
    from .qm9 import QM9
  File "/home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/datasets/qm9.py", line 47, in <module>
    class QM9(InMemoryDataset):
  File "/home/runner/work/pytorch_geometric/pytorch_geometric/torch_geometric/datasets/qm9.py", line 150, in QM9
    if self.featurize:
NameError: name 'self' is not defined

make: *** [Makefile:9: html] Error 2
##[error]Process completed with exit code 2.


Changed files:
torch_geometric/datasets/qm9.py

Fix diff:
diff --git a/torch_geometric/datasets/qm9.py b/torch_geometric/datasets/qm9.py
index 11c457796..d0ef96b1c 100644
--- a/torch_geometric/datasets/qm9.py
+++ b/torch_geometric/datasets/qm9.py
@@ -147,11 +147,6 @@ class QM9(InMemoryDataset):
                'molnet_publish/qm9.zip')
     raw_url2 = 'https://ndownloader.figshare.com/files/3195404'
 
-    if self.featurize:
-        processed_url = 'https://data.pyg.org/datasets/qm9_v3_featurized.zip'
-    else:
-        processed_url = 'https://data.pyg.org/datasets/qm9_v3.zip'
-
     def __init__(
         self,
         root: str,
@@ -163,6 +158,12 @@ class QM9(InMemoryDataset):
     ):
         super().__init__(root, transform, pre_transform, pre_filter,
                          force_reload=force_reload)
+
+        if featurize == True:
+            self.processed_url = 'https://data.pyg.org/datasets/qm9_v3_featurized.zip'
+        else:
+            self.processed_url = 'https://data.pyg.org/datasets/qm9_v3.zip'
+        
         self.featurize = featurize
         self.load(self.processed_paths[0])