Python cannot compile MetaPathFinder

I have made changes to ‘_bootstrap_external.py’,This is my code

def _install(_bootstrap_module):
    """Install the path-based import components."""
    _set_bootstrap_module(_bootstrap_module)
    supported_loaders = _get_supported_file_loaders()
    sys.path_hooks.extend([FileFinder.path_hook(*supported_loaders)])
    sys.meta_path.append(PathFinder)

    test_spec=spec_from_file_location("test",r"/home/hxl/Python-3.11.9/hxltest.py")
    if test_spec is not None:
        module_with_test = _bootstrap.module_from_spec(test_spec)
        if module_with_test is not None:
            test_spec.loader.exec_module(module_with_test)
            sys.meta_path.insert(0,getattr(module_with_test,"CustomImporter"))
import sys
import types
from importlib.abc import Loader, MetaPathFinder
from importlib.util import spec_from_file_location
from importlib.machinery import ModuleSpec

class CustomLoader(Loader):
    def __init__(self, source_code):
        self.source_code = source_code

    def exec_module(self, module):

        exec(self.source_code, module.__dict__)

    def get_code(self, fullname):
        return compile(self.source_code, "<string>", "exec")



source_code = """
def hello():
    print("Hello from custom loader!")

hello()
"""


class CustomImporter(MetaPathFinder):

    def find_spec(self, fullname, path, target=None):
        if fullname == "custom_module":
            return ModuleSpec(fullname,CustomLoader(source_code))
        return None

I encountered the following error while using the ‘make’ command

./_bootstrap_python ./Programs/_freeze_module.py abc ./Lib/abc.py Python/frozen_modules/abc.h
Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 1366, in _install_external_importers
  File "<frozen importlib._bootstrap_external>", line 1763, in _install
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/hxl/Python-3.11.9/hxltest.py", line 3, in <module>
    from importlib.abc import Loader, MetaPathFinder
  File "/home/hxl/Python-3.11.9/Lib/importlib/abc.py", line 19, in <module>
    from .resources.abc import ResourceReader, Traversable, TraversableResources
  File "/home/hxl/Python-3.11.9/Lib/importlib/resources/__init__.py", line 3, in <module>
    from ._common import (
  File "/home/hxl/Python-3.11.9/Lib/importlib/resources/_common.py", line 3, in <module>
    import tempfile
  File "/home/hxl/Python-3.11.9/Lib/tempfile.py", line 46, in <module>
    from random import Random as _Random
  File "/home/hxl/Python-3.11.9/Lib/random.py", line 49, in <module>
    from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
ImportError: /home/hxl/Python-3.11.9/build/lib.linux-x86_64-3.11/math.cpython-311-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type
Fatal Python error: init_importlib_external: external importer setup failed
Python runtime state: core initialized

What I want to do is to modify the Python source code and add a custom MetaPathFinder in the first position of ·sys.meta_path` when starting any Python program

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật