Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu18.04下使用xmake安装python失败 (从没装成功过😂) #4864

Closed
KkemChen opened this issue Aug 7, 2024 · 7 comments
Closed
Labels

Comments

@KkemChen
Copy link
Contributor

KkemChen commented Aug 7, 2024

Xmake 版本

2.9.4

操作系统版本和架构

Ubuntu18.04

描述问题

在ubuntu18.04下,使用xmake自动安装python失败。
(尝试过使用18.04的ubuntu基础镜像在docker中,全新安装,排除环境干扰因素,同样是失败的,报错原因一样)

image

期待的结果

希望修复

工程配置

xmake require -v python

附加信息和错误日志

Installing collected packages: pip
  WARNING: The scripts pip3 and pip3.12 are installed in '/root/.xmake/packages/p/python/3.12.3/e060770aa5524556bd4dbd54471db6c0/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-24.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
/root/.xmake/packages/p/python/3.12.3/e060770aa5524556bd4dbd54471db6c0/bin/python -m pip install --upgrade --force-reinstall pip
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
error: execv(/root/.xmake/packages/p/python/3.12.3/e060770aa5524556bd4dbd54471db6c0/bin/python -m pip install --upgrade --force-reinstall pip) failed(1)
  => install python 3.12.3 .. failed
@KkemChen KkemChen added the bug label Aug 7, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Using xmake to install python under ubuntu18.04 failed (it has never been installed successfully😂)

@waruqi
Copy link
Member

waruqi commented Aug 7, 2024

xmake-io/xmake#4409 跟这个类似。。

@KkemChen
Copy link
Contributor Author

KkemChen commented Aug 7, 2024

完整复现方式

docker run -it ubuntu:18.04

apt-get update && \
apt-get install -y curl git build-essential unzip

curl -fsSL https://xmake.io/shget.text | bash

xmake create -l c -P ./hello

cd hello

xmake require -v -y python

@KkemChen
Copy link
Contributor Author

KkemChen commented Aug 7, 2024

查看 python的config.log ,有如下报错
YIPF{8`)115%N_7AJ E1 D7

但是ldconfig -p | grep libdl 显示是有libdl的
image

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Check python's config.log and see the following error:
YIPF{8`)115%N_7AJ E1 D7

But ldconfig -p | grep libdl shows that there is libdl
image

@waruqi
Copy link
Member

waruqi commented Aug 8, 2024

try this patch #4869

@KkemChen
Copy link
Contributor Author

KkemChen commented Aug 8, 2024

try this patch #4869
👍👍👍
This patch has solved the problem

@KkemChen KkemChen closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants