Hello All,
I am using GAMSPy 1.5.1 using Python 3.10 on my PC to run my script. I copied this to our CentOS Linux release 7.9.2009 (Core) server and tried running it in a conda environment with the same python and gamspy versions but I keep on encountering this error in our server:
raise ValidationError(
gamspy.exceptions.ValidationError: Error while reading the port! port_info=“/home/monique/.conda/envs/jared5/lib/python3.10/site-packages/gamspy_base/gams: /lib64/libc.so.6: version `GLIBC_2.25’ not found (required by /home/monique/.conda/envs/jared5/lib/python3.10/site-packages/gamspy_base/./libcrypto.so.3)”
I am hoping that someone here could help me solve my issue.
Thank you very much!
Hi Monique,
Did you only copy the script or the whole virtual environment? How did you create the virtual environment on the CentOS Linux server? Can you please run gamspy -v
on the server after you activate your virtual environment and paste it here?
Muhammet
Hi Muhammet,
Thanks for your response. I created a new conda environment using conda create -n <env_name> python=3.10
. Then I installed gamspy and copied the script. Here is the output after running gamspy -v
on the server after activating the virtual environment.
GAMSPy version: 1.5.1
GAMS version: 48.6.1
gamspy_base version: 48.6.1
Monique
Can you also run ldd --version
?
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
You need glibc 2.28 or higher to run GAMS as stated in: https://gams.com/latest/docs/UG_PLATFORMS.html
Since GAMSPy depends on GAMS, the same requirement applies. You can either locally build a newer version of glibc or you can create a Docker container with a newer glibc.
Thank you so much Muhammet for clarifying this.
Cheers,
Monique