title: No module found named cursors
body: <p>I just installed PyMySQL on my VPS, which did not seem to have any problems installing.</p>
  
  <p>To make sure everything was working fine, I tried executing the following script that I found in <a href="https://pypi.org/project/PyMySQL/#example" rel="nofollow noreferrer">their documentation.</a></p>
  
  <p><code>Python 2.7.5</code> and <code>Python 3.6.5</code></p>
  
  <p><code>Server version: 10.1.34-MariaDB MariaDB Server</code></p>
  
  <pre><code>import pymysql.cursors
  
  # Connect to datebase
  con = pymysql.connect(host='localhost',
                      user='dbuser',
                      password='dbpass',
                      db='dbname',
                      charset='utf8mb4',
                      cursorclass=pymysql.cursor.DictCursor)
  
  try:
      with con.cursor() as cursor:
          # Create new record
          sql = "INSERT INTO `test` (`idx`, `title`, `description`, `category`) VALUES (%s, %s, %s, %s)"
          cursor.execute(sql, (1, 'Fake Title', 'Fake description about a fake post.', 'WELLNESS'))
  
      with con.cursor() as cursor:
          # Read a single record
          sql = "SELECT `idx`, `title` FROM `test` WHERE `idx`=%s"
          cursor.execute(sql, ('1'))
          result = cursor.fetchone()
  finally:
      with open('dbText.txt', 'w') as f:
          f.write('%s'.format(result))
          con.close()
  </code></pre>
  
  <p>However, I am receiving an <code>ImportError</code> that reads <code>No module found named cursors</code>.</p>
  
  <pre><code>[root@host public_html]# python pymysql.py
  
  Traceback (most recent call last):
      File "pymysql.py", line 1, in &lt;module&gt;
          import pymysql.cursors
      File "/home/bldsprt/public_html/pymysql.py", line 1, in &lt;module&gt;
          import pymysql.cursors
  ImportError: No module named cursors
  
  [root@host public_html]# python3.6 pymysql.py
  Traceback (most recent call last):
    File "pymysql.py", line 1, in &lt;module&gt;
      import pymysql.cursors
    File "/home/bldsprt/public_html/pymysql.py", line 1, in &lt;module&gt;
      import pymysql.cursors
  ModuleNotFoundError: No module named 'pymysql.cursors'; 'pymysql' is not a package
  </code></pre>
  
  <p>When I try to reinstall, it indicates that <code>pymysql</code> is already installed.</p>
  
  <pre><code>[root@host public_html]# pip install pymysql
  Requirement already satisfied: pymysql in /usr/local/lib/python3.6/site-packages (0.9.0)
  Requirement already satisfied: cryptography in /usr/local/lib/python3.6/site-packages (from pymysql) (2.2.2)
  Requirement already satisfied: idna&gt;=2.1 in /usr/local/lib/python3.6/site-packages (from cryptography-&gt;pymysql) (2.7)
  Requirement already satisfied: six&gt;=1.4.1 in /usr/local/lib/python3.6/site-packages (from cryptography-&gt;pymysql) (1.11.0)
  Requirement already satisfied: cffi&gt;=1.7; platform_python_implementation != "PyPy" in /usr/local/lib/python3.6/site-packages (from cryptography-&gt;pymysql) (1.11.5)
  Requirement already satisfied: asn1crypto&gt;=0.21.0 in /usr/local/lib/python3.6/site-packages (from cryptography-&gt;pymysql) (0.24.0)
  Requirement already satisfied: pycparser in /usr/local/lib/python3.6/site-packages (from cffi&gt;=1.7; platform_python_implementation != "PyPy"-&gt;cryptography-&gt;pymysql) (2.18)
  </code></pre>
  
  <p><strong>Do I need to install the <code>cursors</code> module separately?</strong></p>
  
  <p>Any help would be huge!</p>