compas icon indicating copy to clipboard operation
compas copied to clipboard

`invoke build-ghuser-components` fails with `TypeError: Value cannot be null`

Open chenkasirer opened this issue 2 years ago • 0 comments

This is not an issue with COMPAS or with the componentizer but opening it here for documentation in case this happens in the future.

Was getting the following error when attempting to compile GH components for on mac.

(compas_env) > compas_timber % invoke build-ghuser-components
Cloning into ‘/var/folders/v4/bctfcs8j0y970btp937_yfz80000gn/T/tmp4yc0cfg0actions.ghcomponentizer’...
Unhandled exception:
Traceback (most recent call last):
TypeError: Value cannot be null.
Parameter name: method

The problem turned out to be ipy invoking IronPython3 which was installed rather than IronPython2.7.

To solve this:

  1. install IronPython2.7, if not already installed
  2. create a small bash/zsh script which starts mono with the ipy2.7 executable, depending on where it's installed it could look something like this: ipy2.7wrapper
#!/bin/bash
exec /Library/Frameworks/Mono.framework/Versions/6.12.0/bin/mono /Library/Frameworks/IronPython.framework/Versions/2.7.12/bin/ipy.exe “$@”
  1. now compile the components using invoke build-ghuser-components -i ./ipy2.7wrapper

Many thanks to @kiki007 for finding this issue and help finding the solution!

chenkasirer avatar Oct 26 '23 14:10 chenkasirer