OSError: libgomp.so.1: cannot open shared object file: No such file or directory

Could an admin please take a look at my (python) submission #110276? With respect to environments/config, I claim that the only difference over the starter kit code is that I’ve imported lightgbm. Everything works in the notebook, but the submission fails citing “OSError: libgomp.so.1: cannot open shared object file: No such file or directory”.

I’d appreciate some further insight on this one :slight_smile:

Thanks,
Tom

1 Like

Hello @tom_snowdon

It looks like lightgbm requires libgomp to be installed. In the notebook, can you try adding an APT_PACKAGES attribute to your Config class?

It should look similar to this

class Config:
  APT_PACKAGES = [
    "libgomp1",
  ]
  ADDITIONAL_PACKAGES = [
    'numpy',  # you can define versions as well, numpy==0.19.2
    'pandas',
    'scikit-learn==' + sklearn.__version__,
    'tensorflow',
  ]

Try restarting your runtime if it doesn’t work the first time. Hope this helps! :slight_smile:

3 Likes

That works!

Thanks for your help (and swift reply)

1 Like

how to install this library “libgomp1” in the zip submission?

Hello @plemian

You can add an apt.txt file (similar to requirements.txt). You can define the packages that need to be installed via apt-get install command in this file.

1 Like