mysql Issue Blocks Successful ./create-test-environment

RESOLVED WORKSFORME

Status

MozReview
Testing / Development Environment
RESOLVED WORKSFORME
a year ago
a year ago

People

(Reporter: davidwalsh, Unassigned)

Tracking

Details

(Reporter)

Description

a year ago
Error when running "./create-test-environment":


Requirement already satisfied: mock in /Users/myuser/Projects/version-control-tools/venv/lib/python2.7/site-packages (from -r dev-requirements.txt (line 8))
Collecting MySQL-python (from -r dev-requirements.txt (line 9))
  Using cached MySQL-python-1.2.5.zip
    Complete output from command python setup.py egg_info:
    sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/3h/vgsq80292gl7bxshrtn71mlw0000gn/T/pip-build-fi58ba/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

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/3h/vgsq80292gl7bxshrtn71mlw0000gn/T/pip-build-fi58ba/MySQL-python/
Traceback (most recent call last):
  File "setup.py", line 387, in <module>
    'Topic :: Software Development :: Libraries :: Python Modules',
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Users/myuser/Projects/version-control-tools/venv/lib/python2.7/site-packages/setuptools/command/develop.py", line 36, in run
    self.install_for_development()
  File "setup.py", line 129, in install_for_development
    self._run_pip(['install', '-r', 'dev-requirements.txt'])
  File "setup.py", line 157, in _run_pip
    raise RuntimeError('Failed to run `%s`' % cmd)
RuntimeError: Failed to run `/Users/myuser/Projects/version-control-tools/venv/bin/python -m pip.__main__ install -r dev-requirements.txt`
(Reporter)

Comment 1

a year ago
Turns out an xcode upgrade uninstalled dev tools so it's a host error.  Closing.
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → FIXED

Updated

a year ago
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.