-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GAMS is not registered correctly in show-versions #523
Comments
One way to debug this is to put for instance: print(os.environ)
# Execute, capturing stdout
output = check_output(
...
)
print(output) …around the subject code. Setting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Code sample or context
Recently, @behnam-zakeri tried to install message-ix again on a new Linux machine. The process went fine by creating a new virtual environment via virtualenv and virtualenvwrapper and we made sure that the directory for
gams
is in$PATH
. This can be confirmed by runninggams
on the system; it seems to work both from the command line and as part of the westeros_baseline tutorial from message-ix. However, runningtells us that
'gams' is not in PATH
. Since everything else is working fine, my expectation is that this is due to an issue with the way that ixmp tries to findgams
, not about the installation per se.We should note that the Linux machine was not a fresh install. Things like
pip
andvirtualenv
or evenvenv
were missing, which seems odd.Expected result
message-ix show-versions
, which is internally using https://github.com/iiasa/ixmp/blob/d202e019204e6cf979df6f2a827322a00dbd1957/ixmp/model/gams.py#L18C1-L50C20 should find the correct version ofgams
.Problem description
It doesn't seem to find it at all.
Versions
@behnam-zakeri If you can edit this description, please add the output of
message-ix show-versions
here. Otherwise, please just paste it down below.Output of ixmp show-versions
The text was updated successfully, but these errors were encountered: