greta-dev / greta

simple and scalable statistical modelling in R
https://greta-stats.org
Other
529 stars 63 forks source link

Fix blank space in logfile? #713

Open njtierney opened 2 months ago

njtierney commented 2 months ago
image

And the HTML is

  <h1>Greta installation logfile</h1>
  <h2>Created: 2024-08-21 10:10:14.69971</h2>
  <p>Use this logfile to explore potential issues in installation with greta</p>
  <p>Try opening this in a browser and searching the text for "error" with Cmd/Ctrl+F</p>

  <h2>Miniconda</h2>

    <details>
      <summary>
        Miniconda Installation Notes
      <pre>
        <code>

        </code>
      </pre>
      </summary>
    </details>

    <details>
      <summary>
        Miniconda Installation Errors
      </summary>
      <pre>
        <code>

        </code>
      </pre>
    </details>
njtierney commented 2 months ago

Something is going on with this blank space, it doesn't seem to be letting the code sit inside the details tag.

image

Here's a slightly trimmed HTML of the output to demonstrate the issue:


  <h1>Greta installation logfile</h1>
  <h2>Created: 2024-08-21 10:17:53.254006</h2>
  <p>Use this logfile to explore potential issues in installation with greta</p>
  <p>Try opening this in a browser and searching the text for "error" with Cmd/Ctrl+F</p>

  <h2>Miniconda</h2>

    <details>
      <summary>
        Miniconda Installation Notes
      <pre>
        <code>
PREFIX=/Users/nick/Library/r-miniconda-arm64
Unpacking payload ...
Extracting bzip2-1.0.8-h93a5062_5.conda
Extracting c-ares-1.28.1-h93a5062_0.conda
Extracting ca-certificates-2024.2.2-hf0a4a13_0.conda
Extracting icu-73.2-hc8870d7_0.conda
Extracting libcxx-16.0.6-h4653b0c_0.conda
Extracting libev-4.33-h93a5062_2.conda
Extracting libffi-3.4.2-h3422bc3_5.tar.bz2
Extracting libiconv-1.17-h0d3ecfb_2.conda
Extracting libzlib-1.2.13-h53f4e23_5.conda
Extracting lzo-2.10-h642e427_1000.tar.bz2
Extracting ncurses-6.4.20240210-h078ce10_0.conda
Extracting pybind11-abi-4-hd8ed1ab_3.tar.bz2
Extracting python_abi-3.10-4_cp310.conda
Extracting reproc-14.2.4.post0-h93a5062_1.conda

...
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
        </code>
      </pre>
      </summary>
    </details>

    <details>
      <summary>
        Miniconda Installation Errors
      </summary>
      <pre>
        <code>
          * Installing Miniconda -- please wait a moment ...
* Downloading 'https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh' ...
trying URL 'https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh'
Content type 'application/octet-stream' length 59957922 bytes (57.2 MB)
==================================================
downloaded 57.2 MB

+ /bin/bash /var/folders/9c/k3wqmhhx4qsb3fd66n4prhlw0000gq/T//RtmpAev7mr/Miniforge3-MacOSX-arm64.sh -b -u -p '/Users/nick/Library/r-miniconda-arm64'
+ /Users/nick/Library/r-miniconda-arm64/bin/conda update --yes --name base conda
+ /Users/nick/Library/r-miniconda-arm64/bin/conda create --yes --name r-reticulate 'python=3.10' numpy --quiet -c conda-forge
* Miniconda has been successfully installed at "~/Library/r-miniconda-arm64".
        </code>
      </pre>
    </details>

  <h2>Conda Environment</h2>

   <details>
      <summary>
      Conda Environment Notes
      </summary>
      <pre>
        <code>
     Channels:
 - conda-forge
Platform: osx-arm64
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done

## Package Plan ##

  environment location: /Users/nick/Library/r-miniconda-arm64/envs/greta-env-tf2

  added / updated specs:
    - python=3.10

The following NEW packages will be INSTALLED:

  bzip2              conda-forge/osx-arm64::bzip2-1.0.8-h99b78c6_7 
  ca-certificates    conda-forge/osx-arm64::ca-certificates-2024.7.4-hf0a4a13_0 
  libffi             conda-forge/osx-arm64::libffi-3.4.2-h3422bc3_5 
  libsqlite          conda-forge/osx-arm64::libsqlite-3.46.0-hfb93653_0 
  libzlib            conda-forge/osx-arm64::libzlib-1.3.1-hfb2fe0b_1 
  ncurses            conda-forge/osx-arm64::ncurses-6.5-hb89a1cb_0 
  openssl            conda-forge/osx-arm64::openssl-3.3.1-hfb2fe0b_2 
  pip                conda-forge/noarch::pip-24.2-pyhd8ed1ab_0 
  python             conda-forge/osx-arm64::python-3.10.14-h2469fbe_0_cpython 
  readline           conda-forge/osx-arm64::readline-8.2-h92ec313_1 
  setuptools         conda-forge/noarch::setuptools-72.2.0-pyhd8ed1ab_0 
  tk                 conda-forge/osx-arm64::tk-8.6.13-h5083fa2_1 
  tzdata             conda-forge/noarch::tzdata-2024a-h0c530f3_0 
  wheel              conda-forge/noarch::wheel-0.44.0-pyhd8ed1ab_0 
  xz                 conda-forge/osx-arm64::xz-5.2.6-h57fd34a_0 

...
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
        </code>
      </pre>
    </details>

    <details>
      <summary>
      Conda Environment Errors
      </summary>
      <pre>
        <code>
      + /Users/nick/Library/r-miniconda-arm64/bin/conda create --yes --name greta-env-tf2 'python=3.10' --quiet -c conda-forge
        </code>
      </pre>
    </details>

  <h2>Python Module Installation</h2>

    <details>
      <summary>
        Python Module Installation Notes
      </summary>
      <pre>
        <code>
  + . /Users/nick/Library/r-miniconda-arm64/bin/activate
+ conda activate 'greta-env-tf2'
+ '/Users/nick/Library/r-miniconda-arm64/envs/greta-env-tf2/bin/python' -m pip install --upgrade --no-user 'tensorflow==2.15.0.*'
Collecting tensorflow==2.15.0.*
  Using cached tensorflow-2.15.0-cp310-cp310-macosx_12_0_arm64.whl.metadata (3.6 kB)
Collecting tensorflow-macos==2.15.0 (from tensorflow==2.15.0.*)
  Using cached tensorflow_macos-2.15.0-cp310-cp310-macosx_12_0_arm64.whl.metadata (4.2 kB)
...
Installing collected packages: dm-tree, decorator, cloudpickle, tensorflow-probability
Successfully installed cloudpickle-3.0.0 decorator-5.1.1 dm-tree-0.1.8 tensorflow-probability-0.23.0
        </code>
      </pre>
    </details>

      <details>
      <summary>
      Python Module Installation Errors
      </summary>
      <pre>
        <code>
       ℹ Installing TF (v2.15.0)
✔ Installed TF (v2.15.0)! [16.1s]

ℹ Installing TFP (v0.23.0)
✔ Installed TFP (v0.23.0)! [3.3s]
        </code>
      </pre>
    </details>