nature-of-code / noc-book

The Nature of Code book (archived repo, see README for new repo / build system!)
http://natureofcode.com
1.94k stars 365 forks source link

Build fails #118

Closed drguildo closed 5 years ago

drguildo commented 7 years ago

Trying to build the book on Windows I get the following output:

$ magicbook build
Config file detected: magicbook.json
image not found in source folder: intro/intro_ex01.png
image not found in source folder: intro/intro_01.png
image not found in source folder: intro/intro_ex02.png
✂
image not found in source folder: chapter10/ch10_16.png
image not found in source folder: chapter10/ch10_ex04.png
image not found in source folder: chapter10/ch10_exc05.png
Prince XML error

While the build directory is populated with files, all the images etc. are broken.

errors.txt

rwxdash commented 7 years ago

I get the same error, except image sources. I'm on Windows 10 (OS Build 14393.693). Using Bash on Ubuntu.

$ magicbook build
Config file detected: magicbook.json
Prince XML error
nikookni commented 7 years ago

Same error build on Ubuntu. After investigation i downloaded and installed libpng12-0 http://packages.ubuntu.com/xenial/libpng12-0 Works perfectly now !

kyeshmz commented 7 years ago

Hi guys, you need to download prince xml via http://www.princexml.com/download/ Can be also done from brew brew cask install prince

See reference here. https://github.com/shiffman/The-Nature-of-Code/issues/137#issuecomment-330720154

domisolsi commented 6 years ago

(Windows10) All done right (prince installed) : images always not linked at building Sun Feb 18 10:39:15 2018: ---- begin Sun Feb 18 10:39:16 2018: build/build1/intro/intro_ex01.png: warning: can't open input file: No such file or directory Sun Feb 18 10:39:16 2018: build/build1/intro/intro_01.png: warning: can't open input file: No such file or directory Sun Feb 18 10:39:16 2018: build/build1/intro/intro_ex02.png: warning: can't open input file: No such file or directory Sun Feb 18 10:39:16 2018: build/build1/intro/intro_ex03.png: warning: can't open input file: No such file or directory in build1 and 2, HTML img tag should point to the image files that are in assets directory but without /assets/ !? In build1 dir, If I move all the files in assets/, down a dir level, le links work fine in consolidated.html So I did the same in build2 to get a better looking with html version but html files are not consolidated in this dir. Is there a way to get pdf version build with all the images? (I bought version 1.0 on line in july 2016) Thanks a lot for your reply (sorry for my English) DoMi

domisolsi commented 6 years ago

Prince (used as desktop app) tell me at compiling there is a problem with too long dir names... perhaps a track?

shiffman commented 5 years ago

Please follow noc-book-2 for the new build system!