Deutsch   English   Français   Italiano  
<mailman.24.1722922080.2890.python-list@python.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail
From: "Piper McCorkle" <contact@piperswe.me>
Newsgroups: comp.lang.python
Subject: Issue bootstrapping Python - troubleshooting steps?
Date: Mon, 05 Aug 2024 20:49:07 -0500
Lines: 30
Message-ID: <mailman.24.1722922080.2890.python-list@python.org>
References: <cfdcdb7c-5f65-48d4-8d6b-a773dc1d6595@app.fastmail.com>
Mime-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de +3Qu0qCVdQ55mCdHcNgZJw9FKWPqJjYV/qDTFPUXHsXA==
Cancel-Lock: sha1:EhFNAOvuoaXG9ebrR3A9WSFyStU= sha256:URaMGgC69kpYhbLXriyeM4+AkyLNIIDUeIOL17kMXZY=
Return-Path: <contact@piperswe.me>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
 reason="2048-bit key; unprotected key"
 header.d=piperswe.me header.i=@piperswe.me header.b=k7geiLW7;
 dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'traceback': 0.04; '(most':
 0.05; 'containing': 0.05; 'entering': 0.05; 'error:': 0.05;
 'last):': 0.05; "python's": 0.05; 'thread': 0.05; 'modules': 0.07;
 'pep': 0.07; 'python.': 0.08; 'aligned': 0.09; 'ansi': 0.09;
 'byte': 0.09; 'compiler': 0.09; 'flags': 0.09; 'float': 0.09;
 'grep': 0.09; 'implicit': 0.09; 'linux': 0.09; 'shift': 0.09;
 'skip:_ 20': 0.09; 'skip:x 10': 0.09; 'tier': 0.09; 'steps': 0.11;
 'subject:Python': 0.12; 'import': 0.15; 'memory': 0.15; '***':
 0.16; '80,': 0.16; 'builtin': 0.16; 'c++': 0.16; 'configure:':
 0.16; 'decimal': 0.16; 'dlopen': 0.16; 'email name:contact': 0.16;
 'error?': 0.16; 'function...': 0.16; 'interpreter': 0.16; 'make:':
 0.16; 'piper': 0.16; 'received:10.202': 0.16; 'received:10.202.2':
 0.16; 'received:compute7.internal': 0.16; 'received:internal':
 0.16; 'received:messagingengine.com': 0.16; 'replies,': 0.16;
 'runtime': 0.16; 'skip:" 70': 0.16; 'skip:$ 20': 0.16; 'skip:.
 20': 0.16; 'ssl': 0.16; 'stdlib': 0.16; 'subject:Issue': 0.16;
 'subject:skip:t 10': 0.16; 'truncate': 0.16; 'void': 0.16;
 'python': 0.16; 'api': 0.17; 'instead': 0.17; 'gnu': 0.19;
 'to:addr:python-list': 0.20; 'option': 0.20; "i've": 0.22;
 'first,': 0.22; 'skip:_ 10': 0.22; 'version': 0.23; 'install':
 0.23; 'code': 0.23; 'command': 0.23; 'lines': 0.23; 'skip:p 30':
 0.23; 'run': 0.23; "i'd": 0.24; 'skip:- 10': 0.25; 'extension':
 0.25; 'anyone': 0.25; 'configure': 0.26; 'library': 0.26;
 'object': 0.26; 'creating': 0.27; 'function': 0.27; 'done': 0.28;
 'output': 0.28; 'error': 0.29; 'default': 0.31; 'module': 0.31;
 '(this': 0.32; 'specified': 0.32; 'structure': 0.32; 'window':
 0.32; "i'm": 0.33; 'mailing': 0.33; 'running': 0.34; 'trying':
 0.35; 'android': 0.35; 'failed': 0.35; 'following': 0.35; 'files':
 0.36; 'system,': 0.36; 'missing': 0.37; "skip:' 10": 0.37;
 'directory': 0.37; 'skip:_ 30': 0.37; 'though': 0.37; 'file':
 0.38; 'skip:i 20': 0.62; 'generation': 0.62; 'skip:o 20': 0.63;
 'true': 0.63; 'feel': 0.63; 'skip:b 20': 0.63; 'skip:m 20': 0.63;
 'skip:b 10': 0.63; 'profile': 0.64; 'complete': 0.64; 'skip:r 20':
 0.64; 'upgrade': 0.64; 'required': 0.65; 'received:userid': 0.66;
 'attached': 0.68; 'right': 0.68; 'content-type:multipart/mixed':
 0.68; 'order': 0.69; 'skip:/ 10': 0.69; 'skip:/ 30': 0.69; 'skip:/
 60': 0.69; 'site': 0.70; 'url-ip:lookup error': 0.70; 'free':
 0.72; 'skip:f 20': 0.75; 'cross': 0.76; 'handles': 0.76;
 'linking': 0.76; 'panel': 0.76; 'yes': 0.76; 'alignment': 0.84;
 'attribute': 0.84; 'c...': 0.84; 'enabled.': 0.84; 'ordering':
 0.84; 'skip:" 40': 0.84; 'skip:p 50': 0.84; 'unchanged': 0.84;
 'visibility': 0.84; 'declaration': 0.91; 'from:addr:contact':
 0.91; 'inbox': 0.91; 'received:103': 0.91; 'optimization': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piperswe.me; h=
 cc:content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1;
 t=1722908970; x=1722995370; bh=FFfqeCE49Q5dPKFX6gfydOlFqYfzDCmU
 ryoSe9oga/M=; b=k7geiLW77ULHZEAyHWrbA6dbydYyn35WrXCO5pUgO912WM9F
 A3IEwpqOKYoQcIgi12aVSV23gwe1UM5T8asxtgs6/GqoSSfUUEgmXjyb5QE1b2r8
 PqwpOiz3JeKXjTbwAR9j9yZ91MTLJ+TYClVEbn+8t0VBhAvfoqW8BAVeJPusP6Fp
 olXG2D9a+xhpgKuSS3GzPH0BuAf5I/lkQDcrLFhE+isLJdQ4XjbovBfgaPa2zgvh
 ptCNka5GgdBg1UMeAKFaOx83QKdc3SuxovurOt0TbCKOypoV4t8X3DrpfkjDoQ3r
 wCPuKjaTRrM0zxqd4RwvAdgC6AGD27RlG3IvFA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1722908970; x=1722995370; bh=FFfqeCE49Q5dPKFX6gfydOlFqYfzDCmUryo
 Se9oga/M=; b=Md3447qTEzCNJCmCVbOx6PtJ83iUpn5FAqNbLm3TUVjZ5IfB3Nx
 gVuwCv0GafjKjgTZwXuq3pyOnbIaNplccqNsDnMCznXF5JnTmkJA8Pctn9YO+g3O
 L8YYo3dsiV85sL1H7CgQ+TY6oy5opm6f4CFHHfFREPWqaO0t3/xXz+U52aNnzNoc
 3E7VMactBTpN35NaxsuiyEUSfnjbaGCCGJ92sXhVX298Nyf+vDcid9hDv4SzRTtT
 AUSPvv93lZsecaEysjaNOJdeVpjU/NjrPpnz7+kB0CQWEIerLzLVQFIolcLjzDn5
 Q3kacM25TNIVbvpcKnPC+Vmxv0mtSvQwsuQ==
X-ME-Sender: <xms:KoGxZix9Dh0axGLC91K207k73wnu4MEV55A_4Z87rd0ofTdrhOEDjg>
 <xme:KoGxZuTvJjjBZKaa7ejAyW6fJfqW8k8jG_wt2ZlqkCz-La1by9fL5mSgRc-fEXG3Z
 7vbjzeefdoXji2ivAY>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrkeejgdehfecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhepofggfffhvffkufgtsehmtderreertd
 dtnecuhfhrohhmpedfrfhiphgvrhcuofgtvehorhhklhgvfdcuoegtohhnthgrtghtsehp
 ihhpvghrshifvgdrmhgvqeenucggtffrrghtthgvrhhnpeejueevkeekueekgfetgedtff
 ffveethefhtdeukedtffejuddtleekvedvteeuvdenucffohhmrghinhepphhiphgvrhhs
 figvrdhmvgenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh
 hmpegtohhnthgrtghtsehpihhpvghrshifvgdrmhgvpdhnsggprhgtphhtthhopedt
X-ME-Proxy: <xmx:KoGxZkVUq7mwQICnd3orkXT_wWzsNnxL0bYIJQDh1gFntE2kKFsPug>
 <xmx:KoGxZohLKMZ972jD5eg19jnXWFApu3qqxxWJrsLEkU_XmrPbTNlzFA>
 <xmx:KoGxZkAdqGAQimq8OTEouLeAlbXeZNpMcEzuVpBhIQymHL0SJJ-QOA>
 <xmx:KoGxZpKQwinwBPSTjS1A6Um6q62Hlz9th19BsFLKbxT9UM9nj-5yKQ>
 <xmx:KoGxZvrUsomSwz87Sh-8-oCvt-DrC9MNpAwdUIVdhrbpHkZPAMLjf2Ai>
Feedback-ID: if86147e9:Fastmail
X-Mailer: MessagingEngine.com Webmail Interface
X-Mailman-Approved-At: Tue, 06 Aug 2024 01:27:59 -0400
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
 <python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
 <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
 <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <cfdcdb7c-5f65-48d4-8d6b-a773dc1d6595@app.fastmail.com>
Bytes: 8731

Hi!

I'm working on a Linux From Scratch sort of system, and part of that is bootstrapping Python. I'm running into an error message in the compilation though - could anyone help me with next steps on troubleshooting the error?

Error:

> ./_bootstrap_python /tmp/sources/Python-3.12.4/Programs/_freeze_module.py abc /tmp/sources/Python-3.12.4/Lib/abc.py Python/frozen_modules/abc.h
> Fatal Python error: init_import_site: Failed to import the site module
> Python runtime state: initialized
> Traceback (most recent call last):
>   File "/tmp/sources/Python-3.12.4/Lib/site.py", line 80, in <module>
>     PREFIXES = [sys.prefix, sys.exec_prefix]
>                 ^^^^^^^^^^
> AttributeError: module 'sys' has no attribute 'prefix'
> make[2]: *** [Makefile:1329: Python/frozen_modules/abc.h] Error 1

I'm essentially trying to build Python with the following commands:
$ cd /tmp/build/Python
$ /tmp/sources/Python-3.12.4/configure --enable-shared --with-system-expat --enable-optimizations --prefix=
$ make
$ make install

I'm building Python 3.12.4.
$ sha256sum sources/Python-3.12.4.tar.xz
f6d419a6d8743ab26700801b4908d26d97e8b986e14f95de31b32de2b0e79554  sources/Python-3.12.4.tar.xz

I've attached a complete build log. If you need any more information in order to help me, please feel free to ask! I'd appreciate if you can CC me on any replies, so that they end up in my inbox instead of in the mailing list digest.

Piper McCorkle (https://piperswe.me)
contact@piperswe.me | +1 (508) 493-8615