Skip to content

Commit

Permalink
add docs for ubuntu lmod issue
Browse files Browse the repository at this point in the history
  • Loading branch information
eap committed Jun 26, 2023
1 parent 6aca3d4 commit bc76762
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/source/KnownIssues.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,17 @@ macOS
5. Errors such as ``Symbol not found: __cg_png_create_info_struct``

Can happen when trying to use the raster plotting scripts in ``fv3-jedi-tools``. In that case, exporting ``DYLD_LIBRARY_PATH=/usr/lib/:$DYLD_LIBRARY_PATH`` can help. If ``git`` commands fail after this, you might need to verify where ``which git`` points to (Homebrew vs module) and unload the ``git`` module.

==============================
Ubuntu
==============================

1. The lmod version in Ubuntu 22.04 LTS breaks spack-stack modules.

Ubuntu 22.04 LTS will install lmod 6.6 from official apt repositories. Module files authored by spack use the `depends_on` directive that was introduced in lmod 7.0. The new site config instructions in :numref:`Section %s <NewSiteConfigs_Linux>` circumvent the issue by using `tcl/tk` environment modules. If you attempt to use lmod 6.6 you will get the following error when you attempt to load modules:

.. code-block:: console

$ module load stack-python
Lmod has detected the following error: Unable to load module: python/3.10.8
/home/ubuntu/spack-stack-1.3.1/envs/skylab-4/install/modulefiles/gcc/11.3.0/python/3.10.8.lua : [string "-- -*- lua -*-..."]:16: attempt to call global 'depends_on' (a nil value)

0 comments on commit bc76762

Please sign in to comment.