# Cylc 8 with LFRic Rose stem and Python issues

**URL:** <https://cylc.discourse.group/t/cylc-8-with-lfric-rose-stem-and-python-issues/532>\
**Category:** Cylc 8 Migration\
**Created:** [September 7, 2022, 1:57pm UTC](https://cylc.discourse.group/t/cylc-8-with-lfric-rose-stem-and-python-issues/532 "2022-09-07T13:57:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![oliver.sanders](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/oliver.sanders/32/110_2.png) [@oliver.sanders](https://cylc.discourse.group/u/oliver.sanders)\
**Post date:** [September 7, 2022, 4:32pm UTC](https://cylc.discourse.group/t/cylc-8-with-lfric-rose-stem-and-python-issues/532/2 "2022-09-07T16:32:39Z")

</div>

Hello,

This error is happening because you have some Python 3.7 files in your `PYTHONPATH` which are messing with the Cylc environment.

To fix, try running Cylc in a clean environment.

```auto
# NOTE: Met Office specific
module purge

```

Unfortunately there isn’t much we can do to improve this error message as the Cylc wasn’t able to load.

The LFric rose-stem suites require a few small changes to make them Cylc 8 compatible. Andrew C has a branch where he’s made some progress on this.

For general info, here are the changes made so far:

- rose-stem options
  - `--name` → `--workflow-name`
  - `--define-suite` → `-S` (this is a Rose bug, we will reinstate the `--define-suite` argument soon)
  - `--config <path>` → `<path>` (now a positional argument).
  - Remove `--new` & `--no-gcontrol`.

- cylc play
  - The `rose stem` command now only installs the workflow.
  - Add `cylc play <workflow-name>` after the `rose stem` command to make it run.

- cylc gscan
  - This GUI has been replaced by the web GUI (`cylc gui`).
  - For a light-weight CLI alternative try `cylc scan`.

- Jinja2
  - Globals:
    - Apply this one-line patch to fix a Jinja2 issue: [Cylc 8 with LFRic Rose stems and Jinja2 issues - #4 by oliver.sanders](https://cylc.discourse.group/t/cylc-8-with-lfric-rose-stems-and-jinja2-issues/525/4)

  - variables
    - The `disabled` variable (used for xc40 configs) is invalid.
    - I don’t understand how this worked at Cylc 7.
    - Quoting the value suppresses the error: `...=disabled` → `...='disabled'`,

- ROSE\_ORIG\_HOST
  - Tasks for the SPICE platform had `[remote]host` set to `ROSE_ORIG_HOST`.
  - This tells Cylc to perform an unnecessary SSH. This doesn’t work at Cylc 8.
  - Easy fix, change `ROSE_ORIG_HOST` → `'localhost'` for SPICE sections in a Jinja2 file somewhere.

A long list but it boils down to a small diff. With that the rose-stem suites tested so far validate and run under Cylc 8.

---

_[View the full topic](https://cylc.discourse.group/t/cylc-8-with-lfric-rose-stem-and-python-issues/532)._
