title: Pycharm MySQLdb 'module' object has no attribute 'Number'
body: <p><strong>The following program executes well using python script and gives me the expected output :</strong></p>
  
  <pre><code>Database version : 5.6.19-0ubuntu0.14.04.1 
  </code></pre>
  
  <p><strong>However, the exact same program doesn't seem to work on Pycharm.</strong></p>
  
  <p>It outputs:</p>
  
  <pre><code>/usr/bin/python2.7 /home/shog/PycharmProjects/PythonAdvancedTutorial/Databases.py
  Traceback (most recent call last):
  
    File "/home/shog/PycharmProjects/PythonAdvancedTutorial/Databases.py", line 12, in &lt;module&gt;
  
      db = MySQLdb.connect('localhost', 'root', '*****', 'TESTDB')
  
    File "/usr/local/lib/python2.7/dist-packages/MySQL_python-1.2.4b4-py2.7-linux-x86_64.egg/MySQLdb/__init__.py", line 81, in Connect
      return Connection(*args, **kwargs)
  
    File "/usr/local/lib/python2.7/dist-packages/MySQL_python-1.2.4b4-py2.7-linux-x86_64.egg/MySQLdb/connections.py", line 147, in __init__
      from MySQLdb.converters import conversions
  
    File "/usr/local/lib/python2.7/dist-packages/MySQL_python-1.2.4b4-py2.7-linux-x86_64.egg/MySQLdb/converters.py", line 174, in &lt;module&gt;
      from decimal import Decimal
  
    File "/usr/lib/python2.7/decimal.py", line 3743, in &lt;module&gt;
      _numbers.Number.register(Decimal)
  AttributeError: 'module' object has no attribute 'Number'
  </code></pre>
  
  <p>Here is the program:</p>
  
  <pre><code>#!/usr/bin/python
  import MySQLdb
  
  db = MySQLdb.connect('localhost', 'root', '2soid', 'TESTDB')
  
  cursor = db.cursor()
  
  cursor.execute("SELECT VERSION()")
  
  data = cursor.fetchone()
  
  print "Database version : %s " % data
  
  db.close()
  </code></pre>