heprom / pymicro

A Python package to work with material microstructures and 3d data sets
http://pymicro.readthedocs.io
MIT License
42 stars 22 forks source link

VTK and Ubuntu: Cannot create GLX context #31

Closed heprom closed 3 months ago

heprom commented 3 months ago

I recently experience a strange issue with ubuntu and VTK when using a conda environment.

This is not a pymicro issue but someone may encounter it when using the 3D visualisations methods of pymicro (which use VTK underneath). Apparently, this is an issue due to some incompatibilities between the official VTK packaging with pip and conda (see this post).

heprom commented 3 months ago

The fix was to force a reinstall of some librairies needed by VTK:

conda install -c conda-forge libstdcxx-ng

Thanks to @basileMarchand for helping me fix this.