I think this happens due to using an old version of the PDK that is missing some variables for that version of OpenLane 2 (or even the inverse of that). I recommend updating both OpenLane 2 and the PDK to the latest versions.
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.