Repository navigation
MRG: Use VTK8 and Qt 5.9+ - #5012
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5012 +/- ##
==========================================
+ Coverage 87.92% 87.97% +0.05%
==========================================
Files 356 356
Lines 63683 64737 +1054
Branches 10884 11093 +209
==========================================
+ Hits 55991 56953 +962
- Misses 4925 4995 +70
- Partials 2767 2789 +22 |
|
Green!?! @cjayb can you see if this works on your computer to get VTK8? Ready for review/merge from my end. |
|
Unfortunately not, mayavi wheels fail: environment_vtk8_mayavi_error.txt On a hunch, I moved pyqt from conda ( |
|
@cjayb maybe you need to update conda? It built fine on OSX on Travis. |
|
Okay this is ready for review/merge from my end. @agramfort this would be a good candidate to get a better working OSX env, especially since it properly supports HiDPI. |
|
I'm not sure I'm reading it right, but I think Travis is running on a Darwin16-instance, whereas my High Sierra-mac reports Darwin17 and clang 9.0.0 (vs. 8.x). I'm guessing this is why I still can't get the This would by far be the first High Sierra-related troubles various sw have. My hunch is that FYI Looks like |
|
The weird thing is that AFAIK I am using a fully up-to-date OSX + dev tools. It's weird you have the problem and I don't. I would say we should wait for a release of those libraries, but sometimes releases can get delayed for months. |
|
@agramfort okay with you to merge this one? Also I wonder if we should un-mark it as "experimental", people seem to have fewer issues with this than they do with the standard install instructions. If you agree, I'll change the docs. |
|
agreed !
time to transition to python 3 for real !
|
|
Wouldn't it be worth at least mentioning that |
|
I think we should offer only one way of installing for simplicity for both users and our support overhead. There is a note at the top now saying that there are multiple ways of installing. Regarding the 2.7 env alternative specifically, there are a few things that would prevent me from recommending it:
Once a 3+ Qt5 env (with proper OSX HiDPI) is supported out of the box with Anaconda, I'd be happy to switch, though. I agree it's not optimal to have to force people to use an |
|
I agree that long term goal is to switch, but would favor using stable releases as long as development versions have issues like the sudden crash with the duplicating mayavi toolbar...
With [EDIT: sorry I skipped reinstalling and in the terminal The installation output was this: |
|
There is another small weirdnesses though, I can't select anything in a file dialog until I switch to a different App and back. |
A year or two ago, I would have agreed that switching to Py3k could rightly be considered a long-term goal. Today, however, it feels more like a near-term / immediate goal. If we don't switch, we will be recommending that people learn to use MNE in an environment and with coding habits (2.7-based) that will be obsolete in less than a year.
Using dev versions makes me uncomfortable, too. The biggest downside I have seen across local Linux and OSX testing with this env is this toolbar issue (though I see the point that there might be other unknown bugs). To me, getting to Py3k is worth dealing with some of these drawbacks and taking the risk on these pinned dev versions. FWIW we have been internally using a similar variant of this environment for testing for over 6 months and it has remained stable, which gives me more confidence in it.
The env installs Are fixed in |
Okay yes, completely agree :) I would have wanted to switch years ago if it were not for the dependencies.
Yeah I noticed that shortly afterwards (and edited the above post), so even though strange I assume since the env will only go public with 0.16 it should not be an issue. The issue with the save dialog is on the dev version though. So yeah I see the tradeoffs, I guess I would just lean slightly more on the side of a stable user experience... |
Argh. Can you see if it's possible to come up with a TraitsUI MWE that replicates this behavior? It's probably a Qt5 problem. I vaguely recall seeing a command-line warning about not having a parent, and even on Linux I think it fails to appear in the foreground (probably from not being properly parented). I can work on the MWE for the Mayavi bar crash. Then all users will surely have a stable experience. :) |
Actually don't bother. I think I have fixed it by explicitly setting the parent in the |
Hm it's not easy, a simple |
Yeah this is what I've effectively added to this |
|
@christianbrodbeck are you happy with this version, then? If so then this is good to go. The Travis failure should be fixed in #5045, but we should probably wait until that's in and rebase this one just to be safe. |
|
Lookin' good: I'll merge if the remaining CIs come back happy |
|
ok
…On Tue, Mar 27, 2018 at 11:20 PM, Eric Larson ***@***.***> wrote:
Lookin' good:
https://7458-1301584-gh.circle-artifacts.com/0/html/index.html
I'll merge if the remaining CIs come back happy
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5012 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAJ1HM5gJw8mtH7ucxjXuCrumeNRXYR1ks5tiq0ZgaJpZM4SnwLd>
.
|
|
Potential issue with Mayavi – for me EDIT: or for a faster test: |
|
@christianbrodbeck does it work on other envs? I'm actually not clear on why it should work, looking at the PySurfer code. In any case I think we can solve it over there or in Mayavi. In the meantime this should fix other bugs. |
|
It works on the Python 2.7 |
|
I don't see anywhere that Which fixes it |
|
In any case I think we're safe to fix remaining PySurfer bugs in PySurfer and/or Mayavi |
|
@larsoner, you said:
Qt 5.9.4 is available now, and it should support OSX HiDPI (but actually so did Qt 5.6 provided you set the key in Info.plist correctly, see this bit from our RStudio recipe for an example of how to do that). |
|
Perhaps for matplotlib but for Mayavi (3D viz) I think you also need VTK >=
8 and a sufficiently updated (unreleased AFAIK)
pyface/traits/traitsui/mayavi stack.
… |
|
We have VTK 8.1 on the Anaconda Defaults |
Yep, it's not just this, though -- you also need sufficiently updated Traits/TraitsUI/pyface to handle Qt5. Last I knew they hadn't been released unfortunately. |

Let's see how the CIs like this.