Issue #061 [WontFix/closed] - Can't import MySQLdb into script.py

Posted by PhysiPhile

What steps will reproduce the problem?

  1. insert "import MySQLdb" into #imports section of scripts.py
  2. restart webiopi
  3. run https://localhost:8000 and nothing loads
  4. comment out "#import MySQLdb"
  5. run https://localhost:8000 and everything works

MySQLdb is working because I wrote a test python script using "import MySQLdb" and I was able to add and view entries into my sql database. But how come including "import MySQLdb" in script.py stops webiopi from starting when I have been using other imports with no issue?

WebIOPi version used? => 0.6.0 Python version used? =>3

Distro used? (WebIOPi has only been tested on Raspbian Wheezy) =>raspbian

Raspberry Pi board revision? (1 or 2) =>

For Javascript side bugs, Browser? =>

Please provide any additional information below.


Comment 1

Posted by trouch

need console output log


Comment 2

Posted by trouch


Comment 3

Posted by junquan.zhou

i have the same issue. any update?


Comment 4

Posted by PhysiPhile

I no longer use webiopi but use apache python mysql to do what I want. Email me for more details physiphile@gmail.com