NCSU-CSC510-Group-BHAKQH / URL-Shortner

URL Shortner is a simple yet powerful tool to generate short versions of urls to share them conveniently with others. It allows users to update the existing long urls without having to reshare a new short version of url with others. The application has been developed in Python & Angular.
MIT License
0 stars 0 forks source link

Fix installation error #1

Closed bradenhelmer closed 2 weeks ago

bradenhelmer commented 2 weeks ago

Running the initial pip install -r requirements.txt command causes an error on my system:

Collecting mysqlclient==2.1.1
  Downloading mysqlclient-2.1.1.tar.gz (88 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.1/88.1 KB 14.4 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      /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 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-ijd82esb/mysqlclient_5e38a03bcbcd413b88c41031379e8bb5/setup.py", line 15, in <module>
          metadata, options = get_config()
        File "/tmp/pip-install-ijd82esb/mysqlclient_5e38a03bcbcd413b88c41031379e8bb5/setup_posix.py", line 70, in get_config
          libs = mysql_config("libs")
        File "/tmp/pip-install-ijd82esb/mysqlclient_5e38a03bcbcd413b88c41031379e8bb5/setup_posix.py", line 31, in mysql_config
          raise OSError("{} not found".format(_mysql_config_path))
      OSError: mysql_config not found
      mysql_config --version
      mariadb_config --version
      mysql_config --libs
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

Probably just a dependency issue but needs a fix.