sss-modernkris / webiopi

Automatically exported from code.google.com/p/webiopi
0 stars 0 forks source link

Can't import MySQLdb into script.py #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. insert "import MySQLdb" into #imports section of scripts.py
2. restart webiopi
3. run http://localhost:8000 and nothing loads
4. comment out "#import MySQLdb"
5. run http://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.

Original issue reported on code.google.com by PhysiPh...@gmail.com on 5 Nov 2013 at 4:25

GoogleCodeExporter commented 9 years ago
need console output log

Original comment by tro...@trouch.com on 27 Nov 2013 at 9:36

GoogleCodeExporter commented 9 years ago

Original comment by tro...@trouch.com on 3 Jan 2014 at 5:52

GoogleCodeExporter commented 9 years ago
i have the same issue. any update?

Original comment by junquan....@gmail.com on 7 Jan 2015 at 4:10

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

Original comment by PhysiPh...@gmail.com on 7 Jan 2015 at 7:14