You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/05/30 13:28:02 UTC
[GitHub] [skywalking] tom-pytel opened a new issue, #9146: Python: Error installing packages with latest version
tom-pytel opened a new issue, #9146:
URL: https://github.com/apache/skywalking/issues/9146
```
$ pip install -r requirements.txt
...
Collecting mysqlclient==2.1.0
Using cached mysqlclient-2.1.0.tar.gz (87 kB)
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-rnv1f4jm/mysqlclient_48b8558df20a401997c7d351a009a80e/setup.py", line 15, in <module>
metadata, options = get_config()
File "/tmp/pip-install-rnv1f4jm/mysqlclient_48b8558df20a401997c7d351a009a80e/setup_posix.py", line 70, in get_config
libs = mysql_config("libs")
File "/tmp/pip-install-rnv1f4jm/mysqlclient_48b8558df20a401997c7d351a009a80e/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.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] Superskyyy commented on issue #9146: Python: Error installing packages with latest version of Python agent
Posted by GitBox <gi...@apache.org>.
Superskyyy commented on issue #9146:
URL: https://github.com/apache/skywalking/issues/9146#issuecomment-1141199686
I just tried and didn't meet the same problem on a Windows machine. From the PyPI site, I think there are extra system-level dependencies before it can be properly installed.
```
Linux
Note that this is a basic step. I can not support complete step for build for all environment. If you can see some error, you should fix it by yourself, or ask for support in some user forum. Don't file a issue on the issue tracker.
You may need to install the Python 3 and MySQL development headers and libraries like so:
$ sudo apt-get install python3-dev default-libmysqlclient-dev build-essential # Debian / Ubuntu
% sudo yum install python3-devel mysql-devel # Red Hat / CentOS
Then you can install mysqlclient via pip now:
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] tom-pytel closed issue #9146: Python: Error installing packages with latest version of Python agent
Posted by GitBox <gi...@apache.org>.
tom-pytel closed issue #9146: Python: Error installing packages with latest version of Python agent
URL: https://github.com/apache/skywalking/issues/9146
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] tom-pytel commented on issue #9146: Python: Error installing packages with latest version of Python agent
Posted by GitBox <gi...@apache.org>.
tom-pytel commented on issue #9146:
URL: https://github.com/apache/skywalking/issues/9146#issuecomment-1141228733
```
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
```
Thad did it thx. I had python3-dev installed but not the mysql stuff.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org