title: LightGBM - Module not callable
body: <p>i am using an online jupyter notebook and want to import LightGBM but i'm running into an issue i don't know how to troubleshoot.</p>
  <p>i installed it using the pip install:</p>
  <pre><code>pip install lightgbm
  </code></pre>
  <p>and that appeared to work correctly:
  <a href="https://i.stack.imgur.com/4hR2D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4hR2D.png" alt="install info" /></a></p>
  <p>and i've checked for it in conda list:
  <a href="https://i.stack.imgur.com/4SB8B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4SB8B.png" alt="conda list" /></a>
  which shows it..
  (<em>yes i've restarted the kernel a number of times</em>) :D</p>
  <p>then i imported it:</p>
  <pre><code>import lightgbm as lgb
  </code></pre>
  <p>no error - the cell runs fine.</p>
  <p>but when i try to call it - i get the error &quot;module not callable&quot;</p>
  <pre><code>%%time
  # LightGBM  data processing - categoricals and ints
  cat = ['VehicleType','Gearbox','Brand','FuelType','NotRepaired']
  con = ['Price','RegistrationYear','Power','Mileage','RegistrationMonth','NumberOfPictures','PostalCode','days_listed']
  lgb_model = lgb(categorical_feature = cat)
  </code></pre>
  <p>error:</p>
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;timed exec&gt; in &lt;module&gt;
  
  TypeError: 'module' object is not callable
  </code></pre>
  <p>i've tried importing it a few different ways, and also changed the name to no avail:</p>
  <pre><code>import lightgbm as lgb
  import lightgbm
  from lightgbm import lightgbm 
  </code></pre>
  <p>not sure what i've done wrong, or what to try next? when i search on the subject the vast majority of problems seem to be related to the successful installation - but (<em>and correct me if i am wrong here?</em>) if it is importing and saying the module is not callable as opposed to there is no module named, that would suggest that it is at least <em>partially</em> installed?</p>
  <p>thanks for your time in advance.</p>