On Fri, Feb 6, 2015 at 3:20 PM, Ted <[email protected]> wrote: > I was trying to follow the install instructions for using blood hound and > MySql but I ran into a problem where it thinks I don't have mysql installed. > > I'm running : > > python ../../apache-bloodhound-0.8/installer/bloodhound_setup.py > --environments_directory=`pwd` --default-product-prefix=DEF > > and the result is it tells me : > > MySQLdb needs to be installed to initialise a mysql db > > I should declare upfront that I'm actually using mariadb instead of mysql, > but most libraries so far that I've used don't seem to know it's any > different... > I went and modified bhsetup/bloodhound_setup.py to printed the exception > at around line 48 on the "import MySQLdb as mysqldb" and the exception was > "No module named MySQLdb". > > From what I read it means I need to install MySql-Python, the thing is, I > have that installed. > > > rpm -qa | grep -i mysql | grep -i python > mysql-connector-python3-1.1.6-3.fc21.noarch > MySQL-python-1.2.3-13.fc21.x86_64 > python-storm-mysql-0.20-4.fc21.x86_64 > mysql-connector-python-1.1.6-3.fc21.noarch > MySQL-python-debug-1.2.3-13.fc21.x86_64 > > I'm using fedora 21, x86_64, mariaDb, Python 2.7.8 > > I'm not sure what else to do to debug this further, any ideas? > -- > Ted. >
Next step would be to start python an interactive Python shell *in your virtualenv* and see if you can successfully "import MySQLdb"
