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

OSX: book export is broken #334

Closed
xeonarno opened this issue Jan 9, 2021 · 4 comments · Fixed by #361
Closed

OSX: book export is broken #334

xeonarno opened this issue Jan 9, 2021 · 4 comments · Fixed by #361

Comments

@xeonarno
Copy link

xeonarno commented Jan 9, 2021

On osx, when I follow the tutorial to generate book (pdf...), It failed :

`$ make

rm -rf */tmp.md
rm -rf */tmp*.png
rm -rf book.*
python2.7 src/parseBook.py  -f tex -f pdf -f epub
glslViewer ./02/hello_world.frag --s 0.5 --headless -o ./02/tmp-hello_world.png
Error watching for file 0.5
Error watching for file ./02/tmp-hello_world.png

Also python 2.7 is dead on homebrew :(

System info :
MacBook Pro (13-inch, 2018, Four Thunderbolt 3 Ports)
10.15.7

@NSLog0
Copy link

NSLog0 commented Jan 21, 2021

I'm facing this too. Did you solve it?

@xeonarno
Copy link
Author

No, It require to rewrite and build with Python 3.9 :(

@hatkidchan
Copy link

Issue persists on Linux too, but I managed to fix it somehow:
In file src/parseBook.py change line 46 to "--headless -E screenshot," + shaderImage
In file Makefile replace all python2.7 with python3 (works for now).
Maybe I should make PR with that fixes? 🤔

@blablaalb
Copy link

blablaalb commented Apr 15, 2021

I faced the same error and managed to resolve it.
Since all the needed images are already included in the repository we no longer need glslViewer to render them. In fact even after installing the glslViewer it won't render those shaders to image files, I don't know why.
I managed to compile the book by commenting out lines in the parseBook.py from line 44 to line 49.
If you face error [WARNING] Could not fetch resource './04/glslEditor-01-0.png': replacing image with description make sure you have installed imagemagick package. On Ubuntu I installed it with sudo apt install imagemagick-6.q16.

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

Successfully merging a pull request may close this issue.

4 participants