From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kPjuMpBmR2HFCQAAgWs5BA (envelope-from ) for ; Sun, 19 Sep 2021 18:34:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WBR5LpBmR2EyawAAbx9fmQ (envelope-from ) for ; Sun, 19 Sep 2021 16:34:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3305117411 for ; Sun, 19 Sep 2021 18:34:24 +0200 (CEST) Received: from localhost ([::1]:60812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRzln-0002Fv-8W for larch@yhetil.org; Sun, 19 Sep 2021 12:34:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRzit-0007Dk-Lr for guix-devel@gnu.org; Sun, 19 Sep 2021 12:31:26 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:47080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRzip-0006iJ-Ix for guix-devel@gnu.org; Sun, 19 Sep 2021 12:31:21 -0400 Received: by mail-ed1-x530.google.com with SMTP id j13so51047644edv.13 for ; Sun, 19 Sep 2021 09:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=srU2kBGEXTvP+/nAC0ulb0qI3K+XOC+Wh74yAaqdgnM=; b=YbT8MjdkPetrx4b+09OfWaP3gF7oGgYvKi2q1w/0AKyXF9R8TOwvOFhW/cr9pKDOyz oZWS0AnEtdSZ/UkkahpGTLK5/Kwffumi3FnL5+gqLZta5myMGSyqjgrMMnEPPuqQFDgp Qse/hg+qqZwzFNPq5s+OigX8UFRfum3QSMaGkmLsdrqU54DnThQGUjBxLNieDUuUHEla gbu/vHVYnhcYvRZyR6qImPSjo87OsIu0foWkln+3YKotSZI2uiW8lD+nqiarp2Bfj+iQ cXkV+GZGJpuMgijM3t6hOh3L3ZI3QhYRKy8oul5f0JgbPx3U/TVlJrmjMxDrExD5FkuT Ep4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=srU2kBGEXTvP+/nAC0ulb0qI3K+XOC+Wh74yAaqdgnM=; b=ZSU4cN3j2k/CRX8MHV8ErAT9fz23TMiP9cRXSWym/mNKTT0Db/fy8ypbDbW5dZ1Jsf FQk/BIVDCUNV//30ZGk6ycroToMXoreX13sU0jbxnUDZB0UExaj8ID5pWk16ipYDSjj5 4OT9iArqJ6pbeJjupzICdkCK4f86OOBgf92YnPbwKpKgn8AL51hwPNmthHrD7pnV9Mtl OzaQOXq9Yx/uqEzpnSvQwq1kor1Tlf+e1/PyjxCThh9w7VhkYefaOvJHp9ktub4ByFyN XEr2FnenFpeFSihvlvsuZhEB+W6kZiZNRcet7izFfQhfS82JMBojP5ebCeZLKpYjVaPk ETwA== X-Gm-Message-State: AOAM531AA8wcMnVeQjmtATPq9AahH4QBdC5cZpnvzI3/M8k3JGCI99lY +dx9QwMJU17mF8AcNSiDyY3v7GssipYGyhyDKqo= X-Google-Smtp-Source: ABdhPJy7eaO+GbDXeBt0zv/Rt4BexRQZY24Db955ORbTGH9VSPbyOPPI88mAnNAKvY0nSIT/5LuaspiHrZCUiQHQbJY= X-Received: by 2002:a05:6402:6d6:: with SMTP id n22mr17522929edy.257.1632069076823; Sun, 19 Sep 2021 09:31:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Antwane Mason Date: Sun, 19 Sep 2021 12:31:05 -0400 Message-ID: Subject: Re: Python Site Package Syntax Runtime Error To: Hartmut Goebel Content-Type: multipart/alternative; boundary="00000000000092b35905cc5bb15b" Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=ad.mason1413@gmail.com; helo=mail-ed1-x530.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_BTC_ID=0.499, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632069264; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=srU2kBGEXTvP+/nAC0ulb0qI3K+XOC+Wh74yAaqdgnM=; b=WO908cq/OUK5q6tRzHNnn5nNzN0KkS4elO1bVdGE55vhhhYJ+o2jSLn+R9XYm8vtRUenE9 iQmD5Aw5YoC/G19JzziYzjf5BBaLodn4vpqkWOIIU9fNssN1m2Vg8XvkE6WboS89fXW8nl EmmzshE1ja4Xoh5dIcoQS8qs1r6RrwLLus3Vf5L/6BmawgneJ+iHs9dDH38dFzCgne4Qu2 H90xNZhLfAIIY9o6NSgSW9Xmq75jUoSL/iPaj75mpV5ZDwoLT3MkF4xooapy3y4tvpYxe9 whHVBAOb/tmy+rkQ4tTFN9U34emNu1LM2AzvRB/4Z9tctTYlln6ur4y6XZDAnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632069264; a=rsa-sha256; cv=none; b=cFYPEFtPpsvUYjD0bxU2OuJFGU8yBfNkSs/7LJ4Y8I/yDngL91llBKea7cq1GrZ2Dy/KOZ FLS4ugx4yLc9TY6AIpjovCall4TBt8GIU+ep0laSZB9n4Bs8gMYHKxDlkaZxzN5vWBUEy7 vDhsezTt2eSP3pzhjRyh5SY+cfUi7brf/qYodKIoWyNhi8f8gcDiW4n9S8lc7wNx3+C/Hw 6w8g5LYgWFejlMdADDmCNmShtWW6vJB5QdKUqBnaZpnWtTZdfhcYM+3lopnCdy1h0YhsWn 9HGZLVNey11gZsQxDjGlm+jdF/dVPdiAnqi3MupScYwjcDfJ03XW74TvVTZyYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YbT8Mjdk; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=YbT8Mjdk; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 3305117411 X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: O34Uqf10kVlO --00000000000092b35905cc5bb15b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Sep 18, 2021 at 3:44 PM Antwane Mason wrote: > > From what I can tell, one of the build phases responsible for wrapping > executables into shell scripts is wrongly wrapping one of the python file= s. > This causes the shell script which is named as the original python file t= o > be loaded as a python module causing a syntax error because the export li= ne > is a shell directive and not valid python syntax. Below is the stack trac= e > again for reference. The last file referenced in the stack trace is a > shell script wrapper for the original onlykey_agent.py file which was > renamed .onlykey_agent.py-real. Below is the full file for this shell > script. Can anyone provide guidance as to which build phase needs to chan= ge > and how to change it to prevent onlykey_agent.py from being wrapped? > > > > > > > > > > > > > > > > > > > > *--8<---------------cut here---------------start------------->8---antwane= @wmguix ~$ onlykey-agentTraceback (most recent call last): File "/gnu/stor= e/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-agent-1.1.12/bin/.onlykey= -agent-real", line 11, in load_entry_point('onlykey-agent=3D=3D= 1.1.12', 'console_scripts', 'onlykey-agent')() File "/gnu/store/sd2ic7bpv8= fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/site-packages/pkg_resourc= es/__init__.py", line 489, in load_entry_point return get_distribution(d= ist).load_entry_point(group, name) File "/gnu/store/sd2ic7bpv8fx3imy1j8xcj= clx71sv6q0-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.= py", line 2852, in load_entry_point return ep.load() File "/gnu/store/s= d2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/site-packages/pk= g_resources/__init__.py", line 2443, in load return self.resolve() File= "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/si= te-packages/pkg_resources/__init__.py", line 2449, in resolve module =3D= __import__(self.module_name, fromlist=3D['__name__'], level=3D0) File "/g= nu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-agent-1.1.12/bin/o= nlykey_agent.py", line 2 export PYTHONPATH=3D"/gnu/store/s2w1lq80x9vcwp5= 382kn98f5pi2k4b7b-python-onlykey-agent-1.1.12/lib/python3.8/site-packages:/= gnu/store/ahbp2qnrx7m6m5yrxcfsf37gqmgkm13c-python-lib-agent-1.0.3/lib/pytho= n3.8/site-packages:/gnu/store/xq0bpzrxy461igy3vwymgmlfg85ghfgv-python-onlyk= ey-1.2.6/lib/python3.8/site-packages:/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71= sv6q0-python-3.8.2/lib/python3.8/site-packages:/gnu/store/gb0xnb6vldlmwiky7= 7w7hxpkjbvp1560-python-wheel-0.36.2/lib/python3.8/site-packages:/gnu/store/= 7c48ls8c4xddx22yy7rlnszs0fjl56k7-python-unidecode-1.1.1/lib/python3.8/site-= packages:/gnu/store/hi8yk6yzivzwpxak2fcggd6zl887n7zj-python-semver-2.9.0/li= b/python3.8/site-packages:/gnu/store/gvka9y88b5i6h1fbwb5qxi8vv0ajh6d3-pytho= n-pynacl-1.4.0/lib/python3.8/site-packages:/gnu/store/4153n7v3hy0pn2df0c8ra= g7v4gmgg0ki-python-pymsgbox-1.0.6/lib/python3.8/site-packages:/gnu/store/pp= dbw2sl5filj79rl6k0wqy7xkz2603n-python-pycryptodome-3.9.9/lib/python3.8/site= -packages:/gnu/store/b2pf54i477iby8f17am9p0x2bz96gn63-python-mnemonic-0.20/= lib/python3.8/site-packages:/gnu/store/3vl9a6y7d9r3w3diy2bj15jxd0qgzycv-pyt= hon-ecdsa-0.14.1/lib/python3.8/site-packages:/gnu/store/1qz6j51mmn2z1za41fb= 9vs9dgmwisng3-python-docutils-0.16/lib/python3.8/site-packages:/gnu/store/v= 74q9niaprwv0l25hb1hcyhvyzwp7zmf-python-daemon-2.2.3/lib/python3.8/site-pack= ages:/gnu/store/jvm96kifzns968g0l115chfdp3n5ksba-python-configargparse-1.2.= 3/lib/python3.8/site-packages:/gnu/store/j3w4j8x76n7wdbjrh377fwx4hwgmfwmy-p= ython-backports.shutil-which-3.5.2/lib/python3.8/site-packages:/gnu/store/h= jmz8ymac939ribn7g3jkgms4dk2az3a-python-six-1.14.0/lib/python3.8/site-packag= es:/gnu/store/bxbhdka9x8pnl7jnpkvz1nvgg2m8xqfs-python-prompt-toolkit-3.0.18= /lib/python3.8/site-packages:/gnu/store/2lrpayrb6rrfmscfkfii65jdd328v945-py= thon-onlykey-solo-0.0.28/lib/python3.8/site-packages:/gnu/store/1xmngywbzxx= 8lb539z4zcggm12gw6lzm-python-hidapi-0.7.99.post21/lib/python3.8/site-packag= es:/gnu/store/j1qn1pjvpyljmrb7hh1pjsgz44b13y5i-python-cython-0.29.22/lib/py= thon3.8/site-packages:/gnu/store/d5zp1z8vz42c8b69fszck1vqh59npms4-python-ae= num-2.2.4/lib/python3.8/site-packages:/gnu/store/sfy8vc8da10appy093izjz4byz= d7sfqp-python-cffi-1.14.4/lib/python3.8/site-packages:/gnu/store/wi6ihkh2dq= 1sj6pq6g28f5vw157kfy8x-python-lockfile-0.12.2/lib/python3.8/site-packages:/= gnu/store/xjiplzqxr084ximm4wdhyx3wzf8nxvv0-python-wcwidth-0.1.8/lib/python3= .8/site-packages:/gnu/store/kffam5lzshdhb0ygq0r76gqvavs0190c-python-request= s-2.25.0/lib/python3.8/site-packages:/gnu/store/qkj3ssg0y3ya0d450pp0kaa7zbg= 9i0x6-python-pyusb-1.0.2/lib/python3.8/site-packages:/gnu/store/b3k1kmx7rzk= ykb4ik5nz0jdabqr86vvv-python-pyserial-3.5/lib/python3.8/site-packages:/gnu/= store/w3q52n0pc5zvblr8qdsgdfiw33psj6pz-python-intelhex-2.2.1/lib/python3.8/= site-packages:/gnu/store/fpk2f2jwqah0s340hdhmr734vvxq3z3j-python-fido2-0.9.= 1/lib/python3.8/site-packages:/gnu/store/sjiiqs605sfsqxjdkcm3m8rx0ahv5wvv-p= ython-cryptography-3.3.1/lib/python3.8/site-packages:/gnu/store/5a12m99wdfq= ydzwx46nlfqqvi9q3pq49-python-click-7.1.2/lib/python3.8/site-packages:/gnu/s= tore/k08j1silv8zxfglz3mb5q7ngmya9cv39-python-pycparser-2.20/lib/python3.8/s= ite-packages:/gnu/store/fd7sx13lhrgbrnsa5k3g8inas417p5q5-python-urllib3-1.2= 6.4/lib/python3.8/site-packages:/gnu/store/ihl3h0s000vlkvadxvv21cbn4fqzvmav= -python-idna-2.10/lib/python3.8/site-packages:/gnu/store/ysvrcvvaajbg432f7p= r0k8x2w21lnz81-python-chardet-3.0.4/lib/python3.8/site-packages:/gnu/store/= 2j54g0s8db1b10ggs4rirfb5vv8abm2y-python-certifi-2020.12.5/lib/python3.8/sit= e-packages:/gnu/store/q01v2xjfcl7d020y3yh865695gm8i3gx-python-iso8601-0.1.1= 3/lib/python3.8/site-packages:/gnu/store/xkcc4372psi79xiidw4k33nmyf6mk36h-p= ython-asn1crypto-1.4.0/lib/python3.8/site-packages:/gnu/store/xgsczafbfkmqm= anm87nx2qfyzp4h313i-python-pysocks-1.7.1/lib/python3.8/site-packages:/gnu/s= tore/wand0zrwwnds6x636746116cfh3sy50k-python-pyopenssl-20.0.0/lib/python3.8= /site-packages${PYTHONPATH:+:}$PYTHONPATH" ^SyntaxError: invalid = syntax--8<---------------cut here---------------end--------------->8---* > > > > > > > > *--8<---------------cut here---------------start------------->8---#!/gnu/= store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bashexport P= YTHONPATH=3D"/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-age= nt-1.1.12/lib/python3.8/site-packages:/gnu/store/ahbp2qnrx7m6m5yrxcfsf37gqm= gkm13c-python-lib-agent-1.0.3/lib/python3.8/site-packages:/gnu/store/xq0bpz= rxy461igy3vwymgmlfg85ghfgv-python-onlykey-1.2.6/lib/python3.8/site-packages= :/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/sit= e-packages:/gnu/store/gb0xnb6vldlmwiky77w7hxpkjbvp1560-python-wheel-0.36.2/= lib/python3.8/site-packages:/gnu/store/7c48ls8c4xddx22yy7rlnszs0fjl56k7-pyt= hon-unidecode-1.1.1/lib/python3.8/site-packages:/gnu/store/hi8yk6yzivzwpxak= 2fcggd6zl887n7zj-python-semver-2.9.0/lib/python3.8/site-packages:/gnu/store= /gvka9y88b5i6h1fbwb5qxi8vv0ajh6d3-python-pynacl-1.4.0/lib/python3.8/site-pa= ckages:/gnu/store/4153n7v3hy0pn2df0c8rag7v4gmgg0ki-python-pymsgbox-1.0.6/li= b/python3.8/site-packages:/gnu/store/ppdbw2sl5filj79rl6k0wqy7xkz2603n-pytho= n-pycryptodome-3.9.9/lib/python3.8/site-packages:/gnu/store/b2pf54i477iby8f= 17am9p0x2bz96gn63-python-mnemonic-0.20/lib/python3.8/site-packages:/gnu/sto= re/3vl9a6y7d9r3w3diy2bj15jxd0qgzycv-python-ecdsa-0.14.1/lib/python3.8/site-= packages:/gnu/store/1qz6j51mmn2z1za41fb9vs9dgmwisng3-python-docutils-0.16/l= ib/python3.8/site-packages:/gnu/store/v74q9niaprwv0l25hb1hcyhvyzwp7zmf-pyth= on-daemon-2.2.3/lib/python3.8/site-packages:/gnu/store/jvm96kifzns968g0l115= chfdp3n5ksba-python-configargparse-1.2.3/lib/python3.8/site-packages:/gnu/s= tore/j3w4j8x76n7wdbjrh377fwx4hwgmfwmy-python-backports.shutil-which-3.5.2/l= ib/python3.8/site-packages:/gnu/store/hjmz8ymac939ribn7g3jkgms4dk2az3a-pyth= on-six-1.14.0/lib/python3.8/site-packages:/gnu/store/bxbhdka9x8pnl7jnpkvz1n= vgg2m8xqfs-python-prompt-toolkit-3.0.18/lib/python3.8/site-packages:/gnu/st= ore/2lrpayrb6rrfmscfkfii65jdd328v945-python-onlykey-solo-0.0.28/lib/python3= .8/site-packages:/gnu/store/1xmngywbzxx8lb539z4zcggm12gw6lzm-python-hidapi-= 0.7.99.post21/lib/python3.8/site-packages:/gnu/store/j1qn1pjvpyljmrb7hh1pjs= gz44b13y5i-python-cython-0.29.22/lib/python3.8/site-packages:/gnu/store/d5z= p1z8vz42c8b69fszck1vqh59npms4-python-aenum-2.2.4/lib/python3.8/site-package= s:/gnu/store/sfy8vc8da10appy093izjz4byzd7sfqp-python-cffi-1.14.4/lib/python= 3.8/site-packages:/gnu/store/wi6ihkh2dq1sj6pq6g28f5vw157kfy8x-python-lockfi= le-0.12.2/lib/python3.8/site-packages:/gnu/store/xjiplzqxr084ximm4wdhyx3wzf= 8nxvv0-python-wcwidth-0.1.8/lib/python3.8/site-packages:/gnu/store/kffam5lz= shdhb0ygq0r76gqvavs0190c-python-requests-2.25.0/lib/python3.8/site-packages= :/gnu/store/qkj3ssg0y3ya0d450pp0kaa7zbg9i0x6-python-pyusb-1.0.2/lib/python3= .8/site-packages:/gnu/store/b3k1kmx7rzkykb4ik5nz0jdabqr86vvv-python-pyseria= l-3.5/lib/python3.8/site-packages:/gnu/store/w3q52n0pc5zvblr8qdsgdfiw33psj6= pz-python-intelhex-2.2.1/lib/python3.8/site-packages:/gnu/store/fpk2f2jwqah= 0s340hdhmr734vvxq3z3j-python-fido2-0.9.1/lib/python3.8/site-packages:/gnu/s= tore/sjiiqs605sfsqxjdkcm3m8rx0ahv5wvv-python-cryptography-3.3.1/lib/python3= .8/site-packages:/gnu/store/5a12m99wdfqydzwx46nlfqqvi9q3pq49-python-click-7= .1.2/lib/python3.8/site-packages:/gnu/store/k08j1silv8zxfglz3mb5q7ngmya9cv3= 9-python-pycparser-2.20/lib/python3.8/site-packages:/gnu/store/fd7sx13lhrgb= rnsa5k3g8inas417p5q5-python-urllib3-1.26.4/lib/python3.8/site-packages:/gnu= /store/ihl3h0s000vlkvadxvv21cbn4fqzvmav-python-idna-2.10/lib/python3.8/site= -packages:/gnu/store/ysvrcvvaajbg432f7pr0k8x2w21lnz81-python-chardet-3.0.4/= lib/python3.8/site-packages:/gnu/store/2j54g0s8db1b10ggs4rirfb5vv8abm2y-pyt= hon-certifi-2020.12.5/lib/python3.8/site-packages:/gnu/store/q01v2xjfcl7d02= 0y3yh865695gm8i3gx-python-iso8601-0.1.13/lib/python3.8/site-packages:/gnu/s= tore/xkcc4372psi79xiidw4k33nmyf6mk36h-python-asn1crypto-1.4.0/lib/python3.8= /site-packages:/gnu/store/xgsczafbfkmqmanm87nx2qfyzp4h313i-python-pysocks-1= .7.1/lib/python3.8/site-packages:/gnu/store/wand0zrwwnds6x636746116cfh3sy50= k-python-pyopenssl-20.0.0/lib/python3.8/site-packages${PYTHONPATH:+:}$PYTHO= NPATH"exec -a "$0" "/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-only= key-agent-1.1.12/bin/.onlykey_agent.py-real" "$@"--8<---------------cut her= e---------------end--------------->8---* > > > I think that the build phase that I need to modify is wrap. Does anyone know how to modify wrap phase to exclude a file from being wrapped? I am still a GNU Guile beginner so I am having trouble understanding definitions for wrap phase in guix/build/python-build-system.scm and wrap-program in guix/build/utils.scm. --00000000000092b35905cc5bb15b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Sep 18, 2021 at= 3:44 PM Antwane Mason <ad.mas= on1413@gmail.com> wrote:

From what I can tell, one of= the build phases responsible for=20 wrapping executables into shell scripts is wrongly wrapping one of the=20 python files. This causes the shell script which is named as the=20 original python file to be loaded as a python module causing a syntax=20 error because the export line is a shell directive and not valid python=20 syntax. Below is the stack trace again for reference.=C2=A0 The last file r= eferenced in the stack trace is a shell script wrapper for the original onl= ykey_agent.py file which was renamed .onlykey_agent.py-real. Below is the f= ull file for this shell script. Can anyone provide guidance as to which bui= ld phase needs to change and how to change it to prevent onlykey_agent.py f= rom being wrapped?
--8<---------------cut here----=
-----------start------------->8---
antwane@wmguix ~$ onlykey-agentTraceback (most recent call last):
=C2=A0 File "/gnu/store/s2w1lq8= 0x9vcwp5382kn98f5pi2k4b7b-python-onlykey-agent-1.1.12/bin/.onlykey-agent-re= al", line 11, in <module>
=C2=A0 =C2=A0 load_entry_point('= ;onlykey-agent=3D=3D1.1.12', 'console_scripts', 'onlykey-ag= ent')()
=C2=A0 File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q= 0-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py",= line 489, in load_entry_point
=C2=A0 =C2=A0 return get_distribution(dis= t).load_entry_point(group, name)
=C2=A0 File "/gnu/store/sd2ic7bpv8= fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/site-packages/pkg_resourc= es/__init__.py", line 2852, in load_entry_point
=C2=A0 =C2=A0 retur= n ep.load()
=C2=A0 File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q= 0-python-3.8.2/lib/python3.8/site-packages/pkg_resources/__init__.py",= line 2443, in load
=C2=A0 =C2=A0 return self.resolve()
=C2=A0 File &= quot;/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8= /site-packages/pkg_resources/__init__.py", line 2449, in resolve
= =C2=A0 =C2=A0 module =3D __import__(self.module_name, fromlist=3D['__na= me__'], level=3D0)
=C2=A0 File "/gnu/store/s2w1lq80x9vcwp5382kn= 98f5pi2k4b7b-python-onlykey-agent-1.1.12/bin/onlykey_agent.py", line 2=
=C2=A0 =C2=A0 export PYTHONPATH=3D"/gnu/store/s2w1lq80x9vcwp5382kn= 98f5pi2k4b7b-python-onlykey-agent-1.1.12/lib/python3.8/site-packages:/gnu/s= tore/ahbp2qnrx7m6m5yrxcfsf37gqmgkm13c-python-lib-agent-1.0.3/lib/python3.8/= site-packages:/gnu/store/xq0bpzrxy461igy3vwymgmlfg85ghfgv-python-onlykey-1.= 2.6/lib/python3.8/site-packages:/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0= -python-3.8.2/lib/python3.8/site-packages:/gnu/store/gb0xnb6vldlmwiky77w7hx= pkjbvp1560-python-wheel-0.36.2/lib/python3.8/site-packages:/gnu/store/7c48l= s8c4xddx22yy7rlnszs0fjl56k7-python-unidecode-1.1.1/lib/python3.8/site-packa= ges:/gnu/store/hi8yk6yzivzwpxak2fcggd6zl887n7zj-python-semver-2.9.0/lib/pyt= hon3.8/site-packages:/gnu/store/gvka9y88b5i6h1fbwb5qxi8vv0ajh6d3-python-pyn= acl-1.4.0/lib/python3.8/site-packages:/gnu/store/4153n7v3hy0pn2df0c8rag7v4g= mgg0ki-python-pymsgbox-1.0.6/lib/python3.8/site-packages:/gnu/store/ppdbw2s= l5filj79rl6k0wqy7xkz2603n-python-pycryptodome-3.9.9/lib/python3.8/site-pack= ages:/gnu/store/b2pf54i477iby8f17am9p0x2bz96gn63-python-mnemonic-0.20/lib/p= ython3.8/site-packages:/gnu/store/3vl9a6y7d9r3w3diy2bj15jxd0qgzycv-python-e= cdsa-0.14.1/lib/python3.8/site-packages:/gnu/store/1qz6j51mmn2z1za41fb9vs9d= gmwisng3-python-docutils-0.16/lib/python3.8/site-packages:/gnu/store/v74q9n= iaprwv0l25hb1hcyhvyzwp7zmf-python-daemon-2.2.3/lib/python3.8/site-packages:= /gnu/store/jvm96kifzns968g0l115chfdp3n5ksba-python-configargparse-1.2.3/lib= /python3.8/site-packages:/gnu/store/j3w4j8x76n7wdbjrh377fwx4hwgmfwmy-python= -backports.shutil-which-3.5.2/lib/python3.8/site-packages:/gnu/store/hjmz8y= mac939ribn7g3jkgms4dk2az3a-python-six-1.14.0/lib/python3.8/site-packages:/g= nu/store/bxbhdka9x8pnl7jnpkvz1nvgg2m8xqfs-python-prompt-toolkit-3.0.18/lib/= python3.8/site-packages:/gnu/store/2lrpayrb6rrfmscfkfii65jdd328v945-python-= onlykey-solo-0.0.28/lib/python3.8/site-packages:/gnu/store/1xmngywbzxx8lb53= 9z4zcggm12gw6lzm-python-hidapi-0.7.99.post21/lib/python3.8/site-packages:/g= nu/store/j1qn1pjvpyljmrb7hh1pjsgz44b13y5i-python-cython-0.29.22/lib/python3= .8/site-packages:/gnu/store/d5zp1z8vz42c8b69fszck1vqh59npms4-python-aenum-2= .2.4/lib/python3.8/site-packages:/gnu/store/sfy8vc8da10appy093izjz4byzd7sfq= p-python-cffi-1.14.4/lib/python3.8/site-packages:/gnu/store/wi6ihkh2dq1sj6p= q6g28f5vw157kfy8x-python-lockfile-0.12.2/lib/python3.8/site-packages:/gnu/s= tore/xjiplzqxr084ximm4wdhyx3wzf8nxvv0-python-wcwidth-0.1.8/lib/python3.8/si= te-packages:/gnu/store/kffam5lzshdhb0ygq0r76gqvavs0190c-python-requests-2.2= 5.0/lib/python3.8/site-packages:/gnu/store/qkj3ssg0y3ya0d450pp0kaa7zbg9i0x6= -python-pyusb-1.0.2/lib/python3.8/site-packages:/gnu/store/b3k1kmx7rzkykb4i= k5nz0jdabqr86vvv-python-pyserial-3.5/lib/python3.8/site-packages:/gnu/store= /w3q52n0pc5zvblr8qdsgdfiw33psj6pz-python-intelhex-2.2.1/lib/python3.8/site-= packages:/gnu/store/fpk2f2jwqah0s340hdhmr734vvxq3z3j-python-fido2-0.9.1/lib= /python3.8/site-packages:/gnu/store/sjiiqs605sfsqxjdkcm3m8rx0ahv5wvv-python= -cryptography-3.3.1/lib/python3.8/site-packages:/gnu/store/5a12m99wdfqydzwx= 46nlfqqvi9q3pq49-python-click-7.1.2/lib/python3.8/site-packages:/gnu/store/= k08j1silv8zxfglz3mb5q7ngmya9cv39-python-pycparser-2.20/lib/python3.8/site-p= ackages:/gnu/store/fd7sx13lhrgbrnsa5k3g8inas417p5q5-python-urllib3-1.26.4/l= ib/python3.8/site-packages:/gnu/store/ihl3h0s000vlkvadxvv21cbn4fqzvmav-pyth= on-idna-2.10/lib/python3.8/site-packages:/gnu/store/ysvrcvvaajbg432f7pr0k8x= 2w21lnz81-python-chardet-3.0.4/lib/python3.8/site-packages:/gnu/store/2j54g= 0s8db1b10ggs4rirfb5vv8abm2y-python-certifi-2020.12.5/lib/python3.8/site-pac= kages:/gnu/store/q01v2xjfcl7d020y3yh865695gm8i3gx-python-iso8601-0.1.13/lib= /python3.8/site-packages:/gnu/store/xkcc4372psi79xiidw4k33nmyf6mk36h-python= -asn1crypto-1.4.0/lib/python3.8/site-packages:/gnu/store/xgsczafbfkmqmanm87= nx2qfyzp4h313i-python-pysocks-1.7.1/lib/python3.8/site-packages:/gnu/store/= wand0zrwwnds6x636746116cfh3sy50k-python-pyopenssl-20.0.0/lib/python3.8/site= -packages${PYTHONPATH:+:}$PYTHONPATH"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0^
SyntaxError: invalid syntax
--8<-------------= --cut here---------------end--------------->8---

--8<---------------cut here-------------=
--start------------->8---
#!/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk= 72-bash-minimal-5.0.16/bin/bash
export PYTHONPATH=3D"/gnu/store/s2w= 1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-agent-1.1.12/lib/python3.8/sit= e-packages:/gnu/store/ahbp2qnrx7m6m5yrxcfsf37gqmgkm13c-python-lib-agent-1.0= .3/lib/python3.8/site-packages:/gnu/store/xq0bpzrxy461igy3vwymgmlfg85ghfgv-= python-onlykey-1.2.6/lib/python3.8/site-packages:/gnu/store/sd2ic7bpv8fx3im= y1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/site-packages:/gnu/store/gb0xn= b6vldlmwiky77w7hxpkjbvp1560-python-wheel-0.36.2/lib/python3.8/site-packages= :/gnu/store/7c48ls8c4xddx22yy7rlnszs0fjl56k7-python-unidecode-1.1.1/lib/pyt= hon3.8/site-packages:/gnu/store/hi8yk6yzivzwpxak2fcggd6zl887n7zj-python-sem= ver-2.9.0/lib/python3.8/site-packages:/gnu/store/gvka9y88b5i6h1fbwb5qxi8vv0= ajh6d3-python-pynacl-1.4.0/lib/python3.8/site-packages:/gnu/store/4153n7v3h= y0pn2df0c8rag7v4gmgg0ki-python-pymsgbox-1.0.6/lib/python3.8/site-packages:/= gnu/store/ppdbw2sl5filj79rl6k0wqy7xkz2603n-python-pycryptodome-3.9.9/lib/py= thon3.8/site-packages:/gnu/store/b2pf54i477iby8f17am9p0x2bz96gn63-python-mn= emonic-0.20/lib/python3.8/site-packages:/gnu/store/3vl9a6y7d9r3w3diy2bj15jx= d0qgzycv-python-ecdsa-0.14.1/lib/python3.8/site-packages:/gnu/store/1qz6j51= mmn2z1za41fb9vs9dgmwisng3-python-docutils-0.16/lib/python3.8/site-packages:= /gnu/store/v74q9niaprwv0l25hb1hcyhvyzwp7zmf-python-daemon-2.2.3/lib/python3= .8/site-packages:/gnu/store/jvm96kifzns968g0l115chfdp3n5ksba-python-configa= rgparse-1.2.3/lib/python3.8/site-packages:/gnu/store/j3w4j8x76n7wdbjrh377fw= x4hwgmfwmy-python-backports.shutil-which-3.5.2/lib/python3.8/site-packages:= /gnu/store/hjmz8ymac939ribn7g3jkgms4dk2az3a-python-six-1.14.0/lib/python3.8= /site-packages:/gnu/store/bxbhdka9x8pnl7jnpkvz1nvgg2m8xqfs-python-prompt-to= olkit-3.0.18/lib/python3.8/site-packages:/gnu/store/2lrpayrb6rrfmscfkfii65j= dd328v945-python-onlykey-solo-0.0.28/lib/python3.8/site-packages:/gnu/store= /1xmngywbzxx8lb539z4zcggm12gw6lzm-python-hidapi-0.7.99.post21/lib/python3.8= /site-packages:/gnu/store/j1qn1pjvpyljmrb7hh1pjsgz44b13y5i-python-cython-0.= 29.22/lib/python3.8/site-packages:/gnu/store/d5zp1z8vz42c8b69fszck1vqh59npm= s4-python-aenum-2.2.4/lib/python3.8/site-packages:/gnu/store/sfy8vc8da10app= y093izjz4byzd7sfqp-python-cffi-1.14.4/lib/python3.8/site-packages:/gnu/stor= e/wi6ihkh2dq1sj6pq6g28f5vw157kfy8x-python-lockfile-0.12.2/lib/python3.8/sit= e-packages:/gnu/store/xjiplzqxr084ximm4wdhyx3wzf8nxvv0-python-wcwidth-0.1.8= /lib/python3.8/site-packages:/gnu/store/kffam5lzshdhb0ygq0r76gqvavs0190c-py= thon-requests-2.25.0/lib/python3.8/site-packages:/gnu/store/qkj3ssg0y3ya0d4= 50pp0kaa7zbg9i0x6-python-pyusb-1.0.2/lib/python3.8/site-packages:/gnu/store= /b3k1kmx7rzkykb4ik5nz0jdabqr86vvv-python-pyserial-3.5/lib/python3.8/site-pa= ckages:/gnu/store/w3q52n0pc5zvblr8qdsgdfiw33psj6pz-python-intelhex-2.2.1/li= b/python3.8/site-packages:/gnu/store/fpk2f2jwqah0s340hdhmr734vvxq3z3j-pytho= n-fido2-0.9.1/lib/python3.8/site-packages:/gnu/store/sjiiqs605sfsqxjdkcm3m8= rx0ahv5wvv-python-cryptography-3.3.1/lib/python3.8/site-packages:/gnu/store= /5a12m99wdfqydzwx46nlfqqvi9q3pq49-python-click-7.1.2/lib/python3.8/site-pac= kages:/gnu/store/k08j1silv8zxfglz3mb5q7ngmya9cv39-python-pycparser-2.20/lib= /python3.8/site-packages:/gnu/store/fd7sx13lhrgbrnsa5k3g8inas417p5q5-python= -urllib3-1.26.4/lib/python3.8/site-packages:/gnu/store/ihl3h0s000vlkvadxvv2= 1cbn4fqzvmav-python-idna-2.10/lib/python3.8/site-packages:/gnu/store/ysvrcv= vaajbg432f7pr0k8x2w21lnz81-python-chardet-3.0.4/lib/python3.8/site-packages= :/gnu/store/2j54g0s8db1b10ggs4rirfb5vv8abm2y-python-certifi-2020.12.5/lib/p= ython3.8/site-packages:/gnu/store/q01v2xjfcl7d020y3yh865695gm8i3gx-python-i= so8601-0.1.13/lib/python3.8/site-packages:/gnu/store/xkcc4372psi79xiidw4k33= nmyf6mk36h-python-asn1crypto-1.4.0/lib/python3.8/site-packages:/gnu/store/x= gsczafbfkmqmanm87nx2qfyzp4h313i-python-pysocks-1.7.1/lib/python3.8/site-pac= kages:/gnu/store/wand0zrwwnds6x636746116cfh3sy50k-python-pyopenssl-20.0.0/l= ib/python3.8/site-packages${PYTHONPATH:+:}$PYTHONPATH"
exec -a &quo= t;$0" "/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey= -agent-1.1.12/bin/.onlykey_agent.py-real" "$@"
--8&= lt;---------------cut here---------------end--------------->8---
=

I think th= at the build phase that I need to modify is wrap. Does anyone know how to m= odify wrap phase to exclude a file from being wrapped? I am still a GNU Gui= le beginner so I am having trouble understanding definitions for wrap phase= in guix/build/python-build-system.scm and wrap-program in guix/build/utils= .scm.
--00000000000092b35905cc5bb15b--