|
Post by doxidad on Sept 16, 2019 3:53:59 GMT -8
You need to install the python mysqlDB library. If I remember correctly do this =>
sudo pip install MySQL-python sudo pip install MySQL-python-connector
|
|
|
Post by Powderjockey on Sept 16, 2019 18:56:49 GMT -8
ERROR: Command errored out with exit status 1: command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ka3J0E/MySQL-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ka3J0E/MySQL-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: /tmp/pip-install-ka3J0E/MySQL-python/ Complete output (10 lines): sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-ka3J0E/MySQL-python/setup.py", line 17, in <module> metadata, options = get_config() File "setup_posix.py", line 43, in get_config libs = mysql_config("libs_r") File "setup_posix.py", line 25, in mysql_config raise EnvironmentError("%s not found" % (mysql_config.path,)) EnvironmentError: mysql_config not found ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Thanks for the pointers. Got the above error while trying to do
sudo pip install MySQL-python
ERROR: Could not find a version that satisfies the requirement MySQL-python-connector (from versions: none) ERROR: No matching distribution found for MySQL-python-connector This as well.
I think I tried installing these thru Synaptic yesterday. NO joy.
|
|
|
Post by Powderjockey on Sept 17, 2019 15:31:50 GMT -8
Correction:
The package needed was:
python-mysqldb
Up and running again.
|
|
|
Post by doxidad on Sept 18, 2019 6:19:38 GMT -8
Correction: The package needed was: python-mysqldb Up and running again.
That's what I get for trying to remember things while at work! Whoops! Sorry.
|
|