You're getting a NameError
, not an ImportError
.
So it seems to me that you import your module as gbc
, but later try to refer to it as gentleboost_c_class
.
If you import the module with
import gentleboost_c_class as gbc
that means it will be available under the global name gbc
, but not as gentleboost_c_class
.