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
Saving of PDF file on OS X 10.11 results in a corrupted zip file being produced #397
Comments
There are a number of modules that are involved in this procedure and it is not clear from the error output what it the reason of failure. Can you reproduce the issue without using the notebook from a normal ipython prompt? You should also run the tests (it might help to narrow down the issue)
|
Hi again, When running the tvtk tests, I have the following error:
And I don't get any errors on the MayaVi tests. Trying it from jupyter console I get a slightly different error:
I can't run using Wx as I get the following error when I try to set that as the GUI:
|
Thanks for the info, Please note that at the moment I do not have a mac os available for testing (I am not a mac user), so if you can try a few more things for me will help me to debug the issue later.
Although it is not good to fail tests, I do not think that this error is related to your problem.
The error about OpenGL is wierd and it is not clear where it is coming from (no traceback).
I see that you are using wxpython 3.0. Please note that support for python 3.0 was added in traitsui 5.0.0. So I would suggest that since you are using the latest version for mayavi you should also use the latest versions for traitsui, traits and pyface, apptools and envisage. Finally, the last message (on wx) makes me think that we are running python on a headless machine (or maybe a container) it that true? Thanks for the help. |
update On windows 10 with python 2.7.10 (64bit) and vtk 6.3 I get a segfault. So it looks that the issue is not related to mac osx. Will provide more info soon. |
@Ryanpepper it looks that the |
@itziakos Great, thanks for investigating. |
@Ryanpepper -- it actually works but looks like there is a strange VTK issue where VTK saves a snapshot.pdf.gz when the file is really a PDF with compressed content so if you just rename the file to snapshot.pdf it should render just fine. If you turn off compression on the dialog that pops up, that will also work but the file will be larger although the file will be saved as a snapshot.pdf. :( I am closing this as this looks like a VTK issue with how it saves the file. One hacky fix would be to test if the file is saved as *.pdf.gz and move it but that seems like a hack but I'll make it. It is part of #416 I will push some more fixes to that if needed but for now am closing this issue. |
With Mayavi installed through Conda, running the following script in a Jupyter Notebook:
then clicking in the GUI to save the scene, if I set the file output as "snapshot.pdf", I get an error message in the terminal that opened the notebook:
and no PDF file is created - a file called snapshot.pdf.gz is left.
The environment I'm working in his here:
env.txt
The text was updated successfully, but these errors were encountered: