Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,298
    • Issues 3,298
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #21548

Closed
Open
Created Dec 03, 2020 by Sean McBride@seanmContributor

VTK python tests fail after CMake 3.18.1 to 3.18.2 upgrade

I have several macOS bots that build and run VTK every night. I just tracked down that going from CMake 3.18.1 to 3.18.2 causes hundreds of VTK python tests to fail with:

Traceback (most recent call last):
  File "/Users/builder/external/VTK/Utilities/vtkTclTest2Py/rtImageTest.py", line 12, in <module>
    import vtk
  File "/Users/builder/external/VTK-clang-dbg-x86_64/lib/python2.7/site-packages/vtk.py", line 9, in <module>
    vtkmodules_m = importlib.import_module('vtkmodules')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/builder/external/VTK-clang-dbg-x86_64/lib/python2.7/site-packages/vtkmodules/__init__.py", line 15, in <module>
    import _vtkmodules_static
ImportError: No module named _vtkmodules_static

Example: https://open.cdash.org/viewTest.php?onlyfailed&buildid=6911686

This still occurs with CMake 3.19.1 (current newest). It occurs on multiple versions of macOS. In all cases, I haven't installed python myself, so it'll be using the python 2.7 that comes with macOS.

See also: https://discourse.vtk.org/t/cmake-3-17-2-to-3-18-4-update-seems-to-have-made-all-python-tests-fail/4737

CC: @brad.king @ben.boeckel

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
3.18.6
Milestone
3.18.6 (Past due)
Assign milestone
Time tracking
None
Due date
None