-
Notifications
You must be signed in to change notification settings - Fork 6
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
WIP: Make some changes to build under the new module system #60
base: vtk-opengl2-build
Are you sure you want to change the base?
WIP: Make some changes to build under the new module system #60
Conversation
@danlipsa Do you recognize the issue in the attached log file? It seems that clang compiler (which seems quite old to me) can't compile a simple test program, so the |
I'll take a look at my compilation environment tonight when I have access to my laptop. |
@danlipsa Nevermind about that issue in the log I uploaded, @doutriaux1 pointed out that the issue might be related to a change he made in your branch here, and indeed changing that back fixed the problem for me. Now, however, I'm curious about something else. I wonder why during the |
So this is kind of promising, but maybe I'm still missing something. I have used the recipe as it exists in this branch to build Regarding my question above, I did figure out a way to make sure cmake found the python in my conda build environment, you can see it in the latest commit on this PR. I pushed the packages that were built to anaconda.org under my account $ conda create -n cdat-test-scotts -c conda-forge "python=3.6"
$ source activate cdat-test-scotts
$ conda install -c scottwittenburg vtk-cdat
$ python
Python 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 02:16:08)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
>>> No message related to |
Before we get too excited, let's see what happens with the VTK buildbots. I have created a WIP MR on VTK for the change and triggered testing: |
also try the test that produces the symbol pi. This is one of the vcs tests which I modified to run directly. |
When I try to install https://anaconda.org/scottwittenburg/vtk-cdat I'm not sure how it picked that version it did ( I wonder if there's some other way to verify the matplotlib mathtext rendering? |
That is strange. Did you installed from nightly? I don't know of another way to test the matplotlib stuff. Note that the VTK tests are different as they are C++. We could add a python VTK test - that would do it. |
@danlipsa You probably saw the issue I made a bit ago on VTK regarding the python test of some matplotlib functionality? I ended up down that road as a result of your message above, and while there was that little sidetrack (segfault depending on how modules are imported), it did eventually validate that the build worked running a matplotlib example under python 3 on OSX. So I figured out how the packages had been mislabeled, and built them again. This time I can install a test environment as follows: conda create -n cdat-test-scotts -c scottwittenburg -c cdat/label/nightly -c conda-forge "python=3.6" vcs cdat cdms2 testsrunner And once I got the sample data downloaded, I ran the test which I recall invokes the math text rendering capability:
That test passed, and I'm currently running the entire test suite there. Do you you think you could give my OSX package a try too (just paste the command above to create the test env)? And @doutriaux1 if you want to validate the package too, that could be nice. If it's working for everyone, then we could go ahead and:
Or maybe |
Oh, and I forgot that with the latest VTK master, we picked up some fix which resulted in some of the isofill plots (plots which had extraneous triangles) getting fixed. So we'll need matching |
@scottwittenburg Sure, I can install and try out your packages tonight when I have access to my laptop. |
For a simple boxfill test I get: (cdat-test-scotts) [~/projects/cdat/vcs (master |
I have seen this when i'm under vpn. @dnadeau4 we should really investigate this. |
That's interesting, I didn't know we used mpi in there anywhere. But I thought the problem before was that you would get the "invalid thread state" or something as soon as you tried to import vtk. |
@doutriaux1 I cannot reproduce the MPI error. Any scripts somewhere where it happens? |
@dnadeau4 Attached is the file generated with conda list --explicit and the python script |
Ok @danlipsa as you've probably seen Utkarsh encountered an error when build VTK inside of ParaView, caused by the re-enabled https://gitlab.kitware.com/vtk/vtk/merge_requests/5275#note_535542 I've made a new VTK branch that defaults that flag to OFF instead, and I've updated my branch here to reflect that. When you get a few minutes, do you think you could trigger the linux builds using that and see if you encounter a similar error to the one Utkarsh saw? If so, it might be fixable by changing this recipe to turn that flag OFF. Ben thought it could be a python2 vs python3 issue, so doing both linux build would be important. Thanks Dan! By the way @doutriaux1 I've also pushed new osx packages based on the VTK branch I mentioned above (pushed them to my channel "scottwittenburg", see above for a command line to install). I've tested the py3 one locally, and it seems to pass the tests except for the isofill ones I showed you last week. If you get a chance to try one of them out, that could be good. Make sure the version you get looks like: |
@scottwittenburg I get: -- Could NOT find Python3 (missing: Python3_LIBRARY Development) (found suitable version "3.6.7", minimum required is "3.2") @mathstuf Any ideas? |
Seems that you're missing a |
Unfortunately, the find command differs so much between osx and linux when using the -regex option (find -D needed on osx, and the or bar '|' needs escape on linux, or else the -regex-type posix-extended arg is needed), that I could not find a portable way to do this on one line.
Thanks @danlipsa I pushed another commit that should fix that issue you mentioned above. I had meant to put an I wonder if you could trigger the build again now so we can find out if we have the same problem Utkarsh had when building VTK within ParaView? |
Did you push anything to the VTK branch? |
No I didn't, but all that branch did compared to master was make the default |
So, should I update the cdat-conda-recipes vtk-new-module-system and then rebuild? |
I just did that. |
That's what I was thinking. What happened this time? |
Now it finished - it built two new packages for 3.6 |
Thanks @danlipsa, if you push them, I'm happy to give them a test drive to see whether they're working. |
Just pushed them to my channel danlipsa. Look for 8.2.0.1428 in the file name. |
Cool, thanks! I'll let you know what happens. |
@scottwittenburg Why don't you test the packages for 2.7 as well? |
@danlipsa FYI:
I've tested the non-mesa version of this package you pushed for linux, and although I didn't run all the tests, the package seems to work fine. I ran
I'm not sure I follow you here. I don't see any python 2.7 package for linux on your channel, except some old ones ( |
PLEASE DO NOT MERGE THIS! The purpose of this WIP PR is just to show changes against the
vtk-opengl2-build
branch.