Pymysql - cannot find module


#1

Hello,

I keep getting this error. Nearly about to fire up a VM and just do it there. But been working on troubleshooting this and other items for c9 env for ~ 5 hours, so I would appreciate any support.

Traceback (most recent call last):
File “dbsetup.py”, line 1, in
import pymysql
ImportError: No module named pymysql

I have read the docs for pymysql (not a lot to read) combed stackoverflow, have not had any luck so far in having this done and done.

But! I do have pymysql, I think the python workspace comes with it…

(master) $ sudo pip install PyMySQL
Requirement already satisfied (use --upgrade to upgrade): PyMySQL in /home/ubuntu/.local/lib/python2.7/site-packages
Cleaning up…

Usually when this happens I point to it but I have not used c9 in a while and am a bit rusty on how to address this.

  • j