clips / clips/pattern

Why do I need mysql for a python package?

Open
#316 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.9k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Guys, I just tried to install your module, however it asks me for some mysql configuration.

    ERROR: Complete output from command python setup.py egg_info:                                                                                                                                                                              
    ERROR: /bin/sh: 1: mysql_config: not found                                                                                                                                                                                                 
    /bin/sh: 1: mariadb_config: not found                                                                                                                                                                                                      
    /bin/sh: 1: mysql_config: not found                                                                                                                                                                                                        
    Traceback (most recent call last):                                                                                                                                                                                                         
      File "<string>", line 1, in <module>                                                                                                                                                                                                     
      File "/tmp/pip-install-9i47p9nz/mysqlclient/setup.py", line 15, in <module>
        metadata, options = get_config()
      File "/tmp/pip-install-9i47p9nz/mysqlclient/setup_posix.py", line 65, in get_config
        libs = mysql_config("libs")
      File "/tmp/pip-install-9i47p9nz/mysqlclient/setup_posix.py", line 31, in mysql_config
        raise OSError("{} not found".format(_mysql_config_path))
    OSError: mysql_config not found
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-9i47p9nz/mysqlclient/

I don't have 'mysql' server on this computer, and also I would like to avoid installing another deamon on my computer.
I would like just your point of view. Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the installation and reviewing setup.py together with mysqlclient/setup_posix.py, especially the mysql_config lookup shown in the traceback. Trace why mysqlclient is required and determine whether the dependency or its installation guidance needs changing; done means the package's MySQL requirement is clearly explained or the unnecessary requirement is removed.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, python
Domain
build-system, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.