aacanakin / glim

a modern python framework for the web

Home Page:http://glim.readme.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip install glim (mysql_config not found)

opened this issue · comments

In a fresh venv, I get this. I guess mysql is a dependency of Glim, not SQLAlchemy... never had a problem installing SQLAlchemy before, and I don't plan to use MySQL in any case.

mbp in ~/labs/glim-hello
○ → pip install glim
Downloading/unpacking glim
  Downloading glim-0.8.4.tar.gz
  Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/glim/setup.py) egg_info for package glim

Downloading/unpacking Werkzeug>=0.9 (from glim)
  Downloading Werkzeug-0.9.6.tar.gz (1.1MB): 1.1MB downloaded
  Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/Werkzeug/setup.py) egg_info for package Werkzeug

    warning: no files found matching '*' under directory 'werkzeug/debug/templates'
    warning: no files found matching '*' under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
    warning: no previously-included files matching '*.pyc' found under directory 'tests'
    warning: no previously-included files matching '*.pyo' found under directory 'tests'
    warning: no previously-included files matching '*.pyc' found under directory 'examples'
    warning: no previously-included files matching '*.pyo' found under directory 'examples'
    no previously-included directories found matching 'docs/_build'
Downloading/unpacking Jinja2>=2.7.3 (from glim)
  Downloading Jinja2-2.7.3.tar.gz (378kB): 378kB downloaded
  Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/Jinja2/setup.py) egg_info for package Jinja2

    warning: no files found matching '*' under directory 'custom_fixers'
    warning: no previously-included files matching '*' found under directory 'docs/_build'
    warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyc' found under directory 'docs'
    warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
    warning: no previously-included files matching '*.pyo' found under directory 'docs'
Downloading/unpacking SQLAlchemy>=0.9.7 (from glim)
  Downloading SQLAlchemy-0.9.7.tar.gz (4.1MB): 4.1MB downloaded
  Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/SQLAlchemy/setup.py) egg_info for package SQLAlchemy

    warning: no files found matching '*.jpg' under directory 'doc'
    warning: no files found matching 'distribute_setup.py'
    warning: no files found matching 'sa2to3.py'
    warning: no files found matching 'ez_setup.py'
    no previously-included directories found matching 'doc/build/output'
Downloading/unpacking MySQL-python>=1.2.5 (from glim)
  Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
  Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/MySQL-python/setup.py) egg_info for package MySQL-python
    sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/uri/.pyenv/versions/glim-hello/build/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
    Complete output from command python setup.py egg_info:
    sh: mysql_config: command not found

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/home/uri/.pyenv/versions/glim-hello/build/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

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/uri/.pyenv/versions/glim-hello/build/MySQL-python
Storing debug log for failure in /home/uri/.pip/pip.log

I've fixed this issue. Today, I'm going to publish a new release to pypi. This problem is currently solved in the github repo. Currently, you can use git clone that is documented in Alternative Installation part of README

Btw, mysql won't be a dependency from now on.

Great!