isofit: New ray requirement not supported on older operating systems

Yesterday I was working on getting a new IsoFit conda env running on my BNL RHEL 6.10 linux cluster. Yes its an older LTS version and has been on the list of machines to update, but is used a fair amount and then COVID…so it may be awhile now.

I learned yesterday that ray needs glibc >=2.14 (or so) but RHEL 6.10 has glibc 2.12. I built two new versions (2.18 and 2.19) yesterday but they both seem to crash my module system and all around created some strange behavior. It wasnt clear if I could easily run either of those when using IsoFit conda. It wasnt wasn’t clear how to point ray to a build folder that it can link with without actually adding it to my LD_LIBRARY_PATH.

The original error

(/data2/sserbin/conda_envs/isofit) [sserbin@modex 20171108_Pasadena]$ python
Python 3.8.3 (default, Jul  2 2020, 16:21:59)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ray
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data2/sserbin/conda_envs/isofit/lib/python3.8/site-packages/ray/__init__.py", line 48, in <module>
    CDLL(so_path, ctypes.RTLD_GLOBAL)
  File "/data2/sserbin/conda_envs/isofit/lib/python3.8/ctypes/__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /data2/sserbin/conda_envs/isofit/lib/python3.8/site-packages/ray/_raylet.so)
>>>

I tried one conda glibc https://anaconda.org/asmeurer/glibc but that broke conda for me

[sserbin@modex ~]$ [sserbin@modex ~]$ conda
-bash: [sserbin@modex: command not found
[sserbin@modex ~]$ Segmentation fault
-bash: Segmentation: command not found
[sserbin@modex ~]$ conda
Segmentation fault

My current work around is that @ashiklom created a ray-optional branch for testing the dependency on ray here https://github.com/ashiklom/isofit/tree/optional-ray. I was running a test yesterday with this version which made it farther, including running of LibRadTran, but seems to have crashed during the inversion step. This may be unrelated to the ray issue

Configuration check: inversion_grid_as_preseed is not an object, skipping
Configuration check: n_cores is not an object, skipping
Configuration check: ip_head is not an object, skipping
Configuration check: redis_password is not an object, skipping
Configuration check: rte_configure_and_exit is not an object, skipping
Configuration check: rte_auto_rebuild is not an object, skipping
Configuration check: ray_temp_dir is not an object, skipping
Configuration file checks complete, no errors found.
Rebuilding radiative transfer look up table
Inferred ASCII file format for /data2/sserbin/NASA_SBG/isofit/examples/20171108_Pasadena/remote/ang20171108t184227_rdn_v2p11_BeckmanLawn.txt
Inferred ASCII file format for /data2/sserbin/NASA_SBG/isofit/examples/20171108_Pasadena/insitu/BeckmanLawn.txt
Inferred ASCII file format for /data2/sserbin/NASA_SBG/isofit/examples/20171108_Pasadena/output/ang20171108t184227_alg_v2p11_BeckmanLawn-libRadTran.txt
Inferred ASCII file format for /data2/sserbin/NASA_SBG/isofit/examples/20171108_Pasadena/output/ang20171108t184227_rfl_v2p11_BeckmanLawn-libRadTran.txt
Inferred ASCII file format for /data2/sserbin/NASA_SBG/isofit/examples/20171108_Pasadena/output/ang20171108t184227_mdl_v2p11_BeckmanLawn-libRadTran.txt
Beginning inversions using 1 cores
bash /data2/sserbin/NASA_SBG/isofit/examples/20171108_Pasadena/configs/../lut/LUT_AOT550-0.0100_H2OSTR-1.5000.sh
bash /data2/sserbin/NASA_SBG/isofit/examples/20171108_Pasadena/configs/../lut/LUT_AOT550-0.1000_H2OSTR-1.5000.sh
bash /data2/sserbin/NASA_SBG/isofit/examples/20171108_Pasadena/configs/../lut/LUT_AOT550-0.0100_H2OSTR-2.0000.sh
bash /data2/sserbin/NASA_SBG/isofit/examples/20171108_Pasadena/configs/../lut/LUT_AOT550-0.1000_H2OSTR-2.0000.sh
Traceback (most recent call last):
  File "/data2/sserbin/conda_envs/isofit/bin/isofit", line 54, in <module>
    main()
  File "/data2/sserbin/conda_envs/isofit/bin/isofit", line 49, in main
    return isofit.run()
  File "/data2/sserbin/conda_envs/isofit/lib/python3.8/site-packages/isofit/core/isofit.py", line 175, in run
    results = [self._run_set_of_spectra(self, index_sets[l], index_sets[l + 1])
  File "/data2/sserbin/conda_envs/isofit/lib/python3.8/site-packages/isofit/core/isofit.py", line 175, in <listcomp>
    results = [self._run_set_of_spectra(self, index_sets[l], index_sets[l + 1])
TypeError: _run_set_of_spectra() takes 3 positional arguments but 4 were given

This was the 20171108_Pasadena example.

So my question is how ray is being used for parallelization and whether it would be possible to make the ray lib dependency optional in situations like this? Then users could use another approach to parallelize the LUT creation, etc.

As for why that example crashed, I will need to check why there were too many arguments

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

I’ll add the above line to the readme documentation (outside of a PR, since it’s text update).

Re: the ray initialization, it looks like in a previous PR, @jfahlen had recommended specific cleanup (https://github.com/isofit/isofit/commit/489ac533d18c7f349c4816b1f67146a7075aad34), which was accepted. During a refactor, this must have fallen back out, but I’ll add to a PR and resubmit - will hold this issue in place until I confirm that resolves the issues raised by @ashiklom above.

RE: re-initialization, I managed to solve it in my case by adding ‘ignore_reinit_error’:True to rayargs in isofit.py