krassowski / jupyter-manim

manim cell magic for IPython/Jupyter to show the output video
MIT License
194 stars 11 forks source link

Problems with Windows #1

Closed Elteoremadebeethoven closed 5 years ago

Elteoremadebeethoven commented 5 years ago

First of all, I want to congratulate you for your incredible work, it works great on Mac, but I have problems with Windows. Mac: Captura de pantalla 2019-05-25 a la(s) 03 15 32

I'm not an advanced user of jupyter, do you think this can be solved if I install anaconda? Windows:

jupyter

Thank you!

krassowski commented 5 years ago

I will look into that. The traceback seems to be trimmed (I cannot see the last exception fully) - would you be able to take another screenshot after scrolling down a bit?

Elteoremadebeethoven commented 5 years ago

Sorry, my bad. If I'm not mistaken it has to do with the double diagonals.

jupyter

jaymefosa commented 5 years ago

I am having the same issue, same error, same temp folder + string.py. Anaconda is installed for me. Windows 7. Manim imports and I can access the namespace. I've tried the typical "open cmd with administrator" suggestion when jupyter notebook has a permissions error.

krassowski commented 5 years ago

So this is an issue with Python implementation of temporary files on Windows:

I have published 0.11 version which attempts to work around this issue, though I have not tested it on Windows. It would be of great help if you could update the package and let me know if this works.

To update with pip:

python3 -m pip install jupyter_manim --upgrade

To verify that update succeeded:

import jupyter_manim
print(jupyter_manim.__version__)    # should print 0.11
jaymefosa commented 5 years ago

Ohhh fantastic this works! Thank you!

Just a heads up for others who have had issues getting the C compiler to work right, cl.exe, on Windows: if you download pycairo 1.18 and install it locally with pip, then use 'pip install jupyter-manim', you might still get some error about cairo wheel build failing. However, jupyter-manim is probably installed correctly (it was for me).

krassowski commented 5 years ago

Thank you. I will close this issue for now, but feel free to reopen if any of you have further problems using this package on Windows. I will try provide better installation instructions for Windows at some point (possibly next weekend).