Python 2.7 importing error (on Ubuntu 14.04) due to OpenMP run-time issue or system version incompatibility

Hi there,

I am using Travis CI to run auto-test under Py 2.7 with Ubuntu. An existing test failed with no code change to it (the last successful execution is yesterday). The failed run link is here:

I checked the error message:

E XGBoostError: XGBoost Library ( could not be loaded.
E Likely causes:
E * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, for UNIX-like OSes)
E * You are running 32-bit Python on a 64-bit OS
E Error message(s): [‘dlopen: cannot load any more object with static TLS’, ‘dlopen: cannot load any more object with static TLS’]

Seems like it is complaining about the system environment while importing the python library, so I am wondering if there is anything new introduced to travis-ci python 2.7 env.

This error happens to a Python library called xgboost. I have verified the same version xgboost (0.81) is installed as before. A previous successful running log is here: I did some line-by-line comparison with no success.

I also tried to run all test with Python 2.7 locally with no issue. A similar tool (circle-ci) also runs fine:

Thanks a lot for the help!

We have not deployed any changes to Python 2.7 since your last passing build 5 days ago. Please review changes in your dependencies and make sure that they are not causing problems.

(You can also try restarting preciously passing builds. If they fail now, changes in the dependencies are a likely explanation.)

Thanks for the note. The underlying dependency has not changed for a while, and the same test passed at circle ci under Linux with Python 2.7.15. So I tried two more things:

  • change from Python 2.7.14 to 2.7.15,
  • update pip…

It still fails and complains about python version (it should be 64 bit to run the test). Can I know what is the place to check whether the running instance on Travis CI is 64 bit instead of 32 bit under python 2 with linux?

Thanks a lot:)

This is not true. A quick check reveals 3 updates:

  Downloading (30.8MB)                               |       Downloading (26.6MB)
  Downloading (3.0MB)                                          |       Downloading (3.0MB)
  Downloading (2.1MB)                              |       Downloading (10.0MB)

The left side of | is the passing build, and the right side is the failing one.

As I said earlier, try re-running the previously passing one.

And we only build 64-bit executables.

1 Like

Thanks a lot for pointing it out. It is fixed now by enforcing to use a specific version of the library.
The original error message made me feel it is an env change. Appreciated the confirmation that no env change happened.

Anyway, thanks lot :slight_smile: