installation of 3.10 and 3.11 failed on LINUX in the script "compileall.py"

Đang mở
#101,331 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu với lib/python3.11/compileall.py và khối build-script gọi nó với -j0 trong quá trình cài đặt Linux. Tái hiện bản build 3.10 hoặc 3.11 được báo cáo và điều tra lý do sáu subprocess không hoàn tất. Được xem là hoàn thành khi quá trình cài đặt hoàn tất mà không comment khối đó và trình thông dịch tạo ra có thể import readline mà không gặp lỗi khởi động do thiếu thư viện như đã báo cáo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

topic-installation type-bug

I often installed python but now (for some unknown reason) it failed on LINUX. The problem is the lib/python3.11/compileall.py with 6 sub-fork never end. I stop after 1h30 execution time, I try 3.10 and 3.11.

comment out the block

#       -PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST) -f \
#               -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
#               $(DESTDIR)$(LIBDEST)
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST) -f \
#               -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
#               $(DESTDIR)$(LIBDEST)
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST) -f \
#               -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
#               $(DESTDIR)$(LIBDEST)
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST)/site-packages -f \
#               -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST)/site-packages -f \
#               -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
#       -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
#               $(PYTHON_FOR_BUILD) -Wi -OO $(DESTDIR)$(LIBDEST)/compileall.py \
#               -j0 -d $(LIBDEST)/site-packages -f \
#               -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages

helps to install, but the python seems to be broken with startup error on missing parts like.

exec: [1] ;.../bin/python3.11
Could not find platform dependent libraries <exec_prefix>
Python 3.11.1 (main, Jan 25 2023, 23:48:02) [GCC 11.3.1 20221024 [revision bd0c76a2329e7fe6d6612c2259647bbb67f5866a]] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
  File "/etc/pythonstart", line 7, in <module>
    import readline
ModuleNotFoundError: No module named 'readline'
>>> 
Ngôn ngữ chính
Python
Star
77.2k
Fork
36k
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
558

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python/cpython

Tất cả issue của python/cpython

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.