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

error: https://github.com/jd21195/catalogue-003 #2

Open
mrchristian opened this issue Apr 17, 2023 · 10 comments
Open

error: https://github.com/jd21195/catalogue-003 #2

mrchristian opened this issue Apr 17, 2023 · 10 comments
Assignees
Labels

Comments

@mrchristian
Copy link
Contributor

Error reported on rendering https://github.com/jd21195/catalogue-003

Please paste the error in the issue

@mrchristian
Copy link
Contributor Author

Hi @Pgxe9zu1 can you paste in your error here in the issue please then I can take a look.

I'm assuming your error was on the Quarto render, and not the Notebook running.

I have cloned your repository to my machine and I can render it with no errors, As far as I can tell this might mean one of two things.

Your local install set up needs completion.

or

Your local files have been updated and I'm working with an older version from Github.

I would suggest, make sure you push a copy of your local repo online.

Second run: quarto check in your terminal and paste in teh output below, this will help see if you have anything missing in the install for quarto.

@Pgxe9zu1
Copy link
Collaborator

Pgxe9zu1 commented Apr 19, 2023

Hi @mrchristian, I'm sorry that I didn't respond sooner. I was unable to access my email account.
The Error message is:

compilation failed- error
Package graphics Error: Division by 0.

See the graphics package documentation for explanation.

Every time I try to render. The Error message can also be found in my index.log, Line 1338ff.

I am going to try your solution and let you know the results.

Edit: I used the links in the Baroque AI Programme Guide to re-download Quarto, Phython, and Jupyter Notebooks. Additionally, I installed R.
The following was returned when I executed “quarto check all” in the terminal afterwards:

[>] Checking versions of quarto binary dependencies...
Pandoc version 3.1.1: OK
Dart Sass version 1.55.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
Version: 1.3.333
Path: C:\Program Files\Quarto\bin
CodePage: 1252

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....OK
Version: 3.9.13 (Conda)
Path: C:/Users/lisas/anaconda3/python.exe
Jupyter: 4.11.1
Kernels: python3

[>] Checking Jupyter engine render....OK

[>] Checking R installation...........OK
Version: 4.2.3
Path: C:/PROGRA1/R/R-421.3
LibPaths:
- C:/Program Files/R/R-4.2.3/library
knitr: (None)
rmarkdown: (None)

  The rmarkdown package is not available in this R installation.
  Install with install.packages("rmarkdown")

Afterwards, I attempted rendering again, but received the following error message:

PS C:\Users\lisas\OneDrive\Documents\GitHub\catalogue-003> quarto render
[1/5] index.qmd
[2/5] colophon.ipynb
[3/5] collection003.qmd
[4/5] paintingsSommer.ipynb
[5/5] video.ipynb

pandoc
to: latex
output-file: index.tex
standalone: true
toc: true
number-sections: true
top-level-division: chapter
pdf-engine: xelatex
variables:
graphics: true
tables: true
default-image-extension: pdf

metadata
crossref:
chapters: true
documentclass: book
papersize: letter
block-headings: true
comments:
hypothesis: true
title: 'Baroque AI: Publication Prototype'
author: Lisa Sommer
date: '2023-04-13'

running xelatex - 1
This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode

updating tlmgr

updating existing packages

compilation failed- error
Package graphics Error: Division by 0.

See the graphics package documentation for explanation.
Type H for immediate help.
...

l.173 ...ring \includegraphics{6780765/Cupido.jpg}

see C:\Users\lisas\OneDrive\Documents\GitHub\catalogue-003\index.log for more information.

I pushed the files online again

@mrchristian
Copy link
Contributor Author

Thanks @Pgxe9zu1 I'll take a look ASAP

@SimonXIX
Copy link
Collaborator

Hi, this appears to be an issue with the distribution of LaTeX that Quarto uses. I'd suggest running quarto install tinytex to ensure that it's properly installed. There are some further TinyTeX commands to check it here: https://quarto.org/docs/output-formats/pdf-engine.html

@mrchristian
Copy link
Contributor Author

@Pgxe9zu1 see the note above about a possible fix for your error

@Pgxe9zu1
Copy link
Collaborator

Pgxe9zu1 commented Apr 27, 2023

Thanks, @SimonXIX @mrchristian, for trying to help me. I installed TinyTex and updated Deno, but the rendering issue persists (see below). Should I consider reinstalling something?

(Also, I've been unsuccessful in uninstalling MikTex for years, and I ended up deleting its folders. Because of the similar names, I thought there might be a connection.)

PS C:\Users\lisas\OneDrive\Documents\GitHub\catalogue-003> quarto render
[1/5] index.qmd
[2/5] colophon.ipynb
[3/5] collection003.qmd
[4/5] paintingsSommer.ipynb
[5/5] video.ipynb

pandoc
to: latex
output-file: index.tex
standalone: true
toc: true
number-sections: true
top-level-division: chapter
pdf-engine: xelatex
variables:
graphics: true
tables: true
default-image-extension: pdf

metadata
crossref:
chapters: true
documentclass: book
papersize: letter
block-headings: true
comments:
hypothesis: true
title: 'Baroque AI: Publication Prototype'
author: Lisa Sommer
date: '2023-04-13'

running xelatex - 1
This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode

updating tlmgr

updating existing packages

compilation failed- error
Package graphics Error: Division by 0.

See the graphics package documentation for explanation.
Type H for immediate help.
...

l.173 ...ring \includegraphics{6780765/Cupido.jpg}

see C:\Users\lisas\OneDrive\Documents\GitHub\catalogue-003\index.log for more information.
PS C:\Users\lisas\OneDrive\Documents\GitHub\catalogue-003> quarto list tools

[>] Inspecting tools

Tool Status Installed Latest
chromium Not installed --- 869685
tinytex Up to date v2023.04 v2023.04

@Pgxe9zu1
Copy link
Collaborator

Pgxe9zu1 commented Jun 16, 2023

Hello @mrchristian, I got a new laptop and I reinstalled everything (I realized that I missed the entire chapter on Docker containers the first time). The issue sadly prevails. Is there a possibility to maybe remove the fork and start from the beginning? I thought that I might have done something to it, and that's why I can't render even on my new laptop.

PS C:\Users\lisas\Documents\GitHub\catalogue-003> quarto render
[1/5] index.qmd
[2/5] colophon.ipynb
[3/5] collection003.qmd
[4/5] paintings.ipynb
[5/5] video.ipynb

pandoc 
  to: latex
  output-file: index.tex
  standalone: true
  toc: true
  number-sections: true
  top-level-division: chapter
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf

metadata
  crossref:
    chapters: true
  documentclass: book
  papersize: letter
  block-headings: true
  comments:
    hypothesis: true
  title: 'Baroque AI: Publication Prototype'
  author: Class participants
  date: '2023-03-17'

running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode

updating tlmgr

updating existing packages

compilation failed- error
Package graphics Error: Division by 0.

See the graphics package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.173 ...ring \includegraphics{6780765/Cupido.jpg}


see C:\Users\lisas\Documents\GitHub\catalogue-003\index.log for more information.

@mrchristian
Copy link
Contributor Author

Hi Lisa,

Aplogies for my slow reply, I need to make some sort of notification process to get notices from Github to my mail.

Great your persevering and thanks for the troubleshooting request - I'll try and run your repo locally my self and see what happens. Presently there are three possibilities that could be causing your problem: The specific LaTeX package as @SimonXIX mentioned; could be image size being over the default quota; or Quarto not fully installed.

I'll report back end of day

@mrchristian
Copy link
Contributor Author

Hi @Pgxe9zu1 I found the solution to your problem.

In the file index.qmd line 7: delete Baroque AI

Once you save, then the Quarto project will render. I think the image file is too big, but I'll raise an issue and add to troubleshooting guide.

I was able to render your forked repo locally after this change https://github.com/Pgxe9zu1/catalogue-003

Note: In _quarto.yml update the repo address, line 18 to be your repo address https://github.com/Pgxe9zu1/catalogue-003

Thanks

Simon

@Pgxe9zu1
Copy link
Collaborator

Thank you so much, @mrchristian ! I'm so glad that it finally worked and that I'll be able to turn the exercise in normally.

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

No branches or pull requests

3 participants