From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4Hz4E8FBRmGULgEAgWs5BA (envelope-from ) for ; Sat, 18 Sep 2021 21:45:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id wLlnD8FBRmFlRAAA1q6Kng (envelope-from ) for ; Sat, 18 Sep 2021 19:45:05 +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 A47F6BBDB for ; Sat, 18 Sep 2021 21:45:04 +0200 (CEST) Received: from localhost ([::1]:37066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRgGl-0007WI-FE for larch@yhetil.org; Sat, 18 Sep 2021 15:45:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRgGO-0007W8-OC for guix-devel@gnu.org; Sat, 18 Sep 2021 15:44:40 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:38850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRgGM-0005sz-4E for guix-devel@gnu.org; Sat, 18 Sep 2021 15:44:40 -0400 Received: by mail-ed1-x533.google.com with SMTP id q3so43610771edt.5 for ; Sat, 18 Sep 2021 12:44:37 -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=FhPFM23/Q6nSaj+O0x+eyOCYq8zEoYYzSvwgprnGFwo=; b=pPhBjTtZ0o7J8Q7Rp7SyZpqI8EYMs+3IMhlfoyCN6c225fw2P6YQLJ450rC6y9oAA0 x+rTprdtJ+rv8enaEhk29hRxa1AFW0Iue+iQVAXw7Vs5UNiBStsiTppoRvlcsTngin++ l8EcjXUFJwq3mOb48bXQXxJxxF7JJdcPfXawfWEpP0Lyayqgy9hxLMeot0g6H6NwF2ZG GkDPPeJ3VZOd88PorliFIX90yNxLhX4PKzG1nnSa7bubjmEHuP8HqjF4rzF8HRnnGrD9 QNjlRMQRgaRnFWLW3yV28LzyHcYsYzt0HMUkFDt2t8MT5sqLtiy1z6BrWdTxDck50sV1 3Y6g== 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=FhPFM23/Q6nSaj+O0x+eyOCYq8zEoYYzSvwgprnGFwo=; b=3OuUf4atcEYCpx+zIseP2DTMNZ+FH02Ug/vUnrasrLpGgjiR47hIl0nK9TBzsQiKin TD2y2jzZBKP3Q077Xx0OouOTP97lAXuG0NVtGUzOj+ZO+kum7mjff7bbNfVq5ztWSGU/ 51OF6Qzl5Z7r3cIt+xcXSZ+M15ZXr0xDtyhkhuo3EYpbVLsPshZS1+d4lqTktMGo4Pcj DPfUTYsuWRw+LSxDFCExOxn4iE/Q6JDstz0vNQ9VKcIjriv8H3jm1mcPSusRTG+yQZMl obySdZtINzPHEOUfLGtMVMhUIldmsWcGM68MQNr0vjy1Y+BOaz6JOlUVWhL5HOuB3T4S f7ZA== X-Gm-Message-State: AOAM533a+XFrA7sOR94fOfEelZ0rL2/56L041kbxyOnHGMkeuRWk9QpG T+UM34YdWEPYPiwcZ3ePLkR5cxvJdNb2iG1iQKzmIpb428h5hg== X-Google-Smtp-Source: ABdhPJxksOOkroDAfTml/zoYPHJfQqpTd6P0CCXVoMhPGEOwIfGudJunZI+/n7fR3moaJwxAZ98xZM6wBe+oZaECHqc= X-Received: by 2002:a17:907:9602:: with SMTP id gb2mr18493705ejc.354.1631994274931; Sat, 18 Sep 2021 12:44:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Antwane Mason Date: Sat, 18 Sep 2021 15:44:23 -0400 Message-ID: Subject: Re: Python Site Package Syntax Runtime Error To: Hartmut Goebel Content-Type: multipart/alternative; boundary="00000000000008658805cc4a4739" Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=ad.mason1413@gmail.com; helo=mail-ed1-x533.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=1631994304; 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=FhPFM23/Q6nSaj+O0x+eyOCYq8zEoYYzSvwgprnGFwo=; b=t44e/Dv2drLU+aYFQltHLYXpxpExmmVBmZxIuQt4fKpBmh0CCXdx4b7AxEhSGAxC5rsS2Z 05QIHQFNPPpQO6VK6Kt2RYv59r06O9EgX2ewhquPygQDX4A3K3taOiSOuqmDIZRAbIoUhF 4x34Da0kPpH4BTGdkfAx0LWc7gQKmxcXFrzwlx5zN6HZAjN7hbwhfd4O8wAzV8AypnfdeR DBUbPJc+m+J2Q9ZrTx+whYjAHhl90TfsdvPc2csq1HAF5vPd4oHnumWMQyJT0+DNR6QHfA gTvMVdt2kzQ4rmFHtAyZ7OE0Oyeci9GJmGfPdjRbc4DEOg2Rh4kuZ0sSFsmrKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631994304; a=rsa-sha256; cv=none; b=siLRKZWjYIb7Yx/YgOv043sp/nvu7pDgsJK9DQqS0LYIsF7pAB10kl69UBfZo2/6SjlkVE /8TH9eM/Tn2Q1aQmUZuL9yl//8b6yADQoEZDJdvtQB/4otS281unxwdC4pJupl2eLSbOzX 2hqRjubKV0ZFNSxBcuVq4iWAZr5xy1ZJ38v6LM3MjHJiZBq6kfCPmwCKaoFkO2MOMCXmMz UnP9TDWJ7bha6+R3K2ckyDg/i+VQNH1aszgWWTHc1RMQEEMmADt0wOB8375FOa9EZddzMa hbk8Axpy5888i0hzi1oqx6a/2XzY8/5QE7WFud1tCe5qTMCxuw5JVGg4I7Ryxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pPhBjTtZ; 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-Spam-Score: -0.59 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pPhBjTtZ; 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: A47F6BBDB X-Spam-Score: -0.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: kl3vM8TGKn5t --00000000000008658805cc4a4739 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you for the response. I think since there is nothing out of the ordinary going on in the package definition, this may be some edge-case in one of the python build stages. Below is the package definition. *--8<---------------cut here---------------start------------->8---(define-public python-onlykey-agent (package (name "python-onlykey-agent") (version "1.1.12") (source (origin (method url-fetch) (uri (pypi-uri "onlykey-agent" version)) (sha256 (base32 "1586zhpph79s12alnyj1iiiwj0c5h1z8na2lqczf560p5mca6gxw")))) (build-system python-build-system) (propagated-inputs `(("python-lib-agent" ,python-lib-agent) ("python-onlykey" ,python-onlykey))) (home-page "http://github.com/trustcrypto/onlykey-agent ") (synopsis "Using OnlyKey as hardware SSH/GPG agent") (description "Using OnlyKey as hardware SSH/GPG agent") (license license:lgpl3)))--8<---------------cut here---------------end--------------->8---* >From what I can tell, one of the build phases responsible for wrapping executables into shell scripts is wrongly wrapping one of the python files. This causes the shell script which is named as the original python file to be loaded as a python module causing a syntax error because the export line is a shell directive and not valid python syntax. Below is the stack trace 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 change 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/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-agent-1.1.12/bi= n/.onlykey-agent-real", line 11, in load_entry_point('onlykey-agent=3D=3D1.1.12', 'console_scripts', 'onlykey-agent')() File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/sit= e-packages/pkg_resources/__init__.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/sit= e-packages/pkg_resources/__init__.py", line 2852, in load_entry_point return ep.load() File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/sit= e-packages/pkg_resources/__init__.py", line 2443, in load return self.resolve() File "/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/sit= e-packages/pkg_resources/__init__.py", line 2449, in resolve module =3D __import__(self.module_name, fromlist=3D['__name__'], level=3D0) File "/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-agent-1.1.12/bi= n/onlykey_agent.py", line 2 export PYTHONPATH=3D"/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-ag= ent-1.1.12/lib/python3.8/site-packages:/gnu/store/ahbp2qnrx7m6m5yrxcfsf37gq= mgkm13c-python-lib-agent-1.0.3/lib/python3.8/site-packages:/gnu/store/xq0bp= zrxy461igy3vwymgmlfg85ghfgv-python-onlykey-1.2.6/lib/python3.8/site-package= s:/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/si= te-packages:/gnu/store/gb0xnb6vldlmwiky77w7hxpkjbvp1560-python-wheel-0.36.2= /lib/python3.8/site-packages:/gnu/store/7c48ls8c4xddx22yy7rlnszs0fjl56k7-py= thon-unidecode-1.1.1/lib/python3.8/site-packages:/gnu/store/hi8yk6yzivzwpxa= k2fcggd6zl887n7zj-python-semver-2.9.0/lib/python3.8/site-packages:/gnu/stor= e/gvka9y88b5i6h1fbwb5qxi8vv0ajh6d3-python-pynacl-1.4.0/lib/python3.8/site-p= ackages:/gnu/store/4153n7v3hy0pn2df0c8rag7v4gmgg0ki-python-pymsgbox-1.0.6/l= ib/python3.8/site-packages:/gnu/store/ppdbw2sl5filj79rl6k0wqy7xkz2603n-pyth= on-pycryptodome-3.9.9/lib/python3.8/site-packages:/gnu/store/b2pf54i477iby8= f17am9p0x2bz96gn63-python-mnemonic-0.20/lib/python3.8/site-packages:/gnu/st= ore/3vl9a6y7d9r3w3diy2bj15jxd0qgzycv-python-ecdsa-0.14.1/lib/python3.8/site= -packages:/gnu/store/1qz6j51mmn2z1za41fb9vs9dgmwisng3-python-docutils-0.16/= lib/python3.8/site-packages:/gnu/store/v74q9niaprwv0l25hb1hcyhvyzwp7zmf-pyt= hon-daemon-2.2.3/lib/python3.8/site-packages:/gnu/store/jvm96kifzns968g0l11= 5chfdp3n5ksba-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/hjmz8ymac939ribn7g3jkgms4dk2az3a-pyt= hon-six-1.14.0/lib/python3.8/site-packages:/gnu/store/bxbhdka9x8pnl7jnpkvz1= nvgg2m8xqfs-python-prompt-toolkit-3.0.18/lib/python3.8/site-packages:/gnu/s= tore/2lrpayrb6rrfmscfkfii65jdd328v945-python-onlykey-solo-0.0.28/lib/python= 3.8/site-packages:/gnu/store/1xmngywbzxx8lb539z4zcggm12gw6lzm-python-hidapi= -0.7.99.post21/lib/python3.8/site-packages:/gnu/store/j1qn1pjvpyljmrb7hh1pj= sgz44b13y5i-python-cython-0.29.22/lib/python3.8/site-packages:/gnu/store/d5= zp1z8vz42c8b69fszck1vqh59npms4-python-aenum-2.2.4/lib/python3.8/site-packag= es:/gnu/store/sfy8vc8da10appy093izjz4byzd7sfqp-python-cffi-1.14.4/lib/pytho= n3.8/site-packages:/gnu/store/wi6ihkh2dq1sj6pq6g28f5vw157kfy8x-python-lockf= ile-0.12.2/lib/python3.8/site-packages:/gnu/store/xjiplzqxr084ximm4wdhyx3wz= f8nxvv0-python-wcwidth-0.1.8/lib/python3.8/site-packages:/gnu/store/kffam5l= zshdhb0ygq0r76gqvavs0190c-python-requests-2.25.0/lib/python3.8/site-package= s:/gnu/store/qkj3ssg0y3ya0d450pp0kaa7zbg9i0x6-python-pyusb-1.0.2/lib/python= 3.8/site-packages:/gnu/store/b3k1kmx7rzkykb4ik5nz0jdabqr86vvv-python-pyseri= al-3.5/lib/python3.8/site-packages:/gnu/store/w3q52n0pc5zvblr8qdsgdfiw33psj= 6pz-python-intelhex-2.2.1/lib/python3.8/site-packages:/gnu/store/fpk2f2jwqa= h0s340hdhmr734vvxq3z3j-python-fido2-0.9.1/lib/python3.8/site-packages:/gnu/= store/sjiiqs605sfsqxjdkcm3m8rx0ahv5wvv-python-cryptography-3.3.1/lib/python= 3.8/site-packages:/gnu/store/5a12m99wdfqydzwx46nlfqqvi9q3pq49-python-click-= 7.1.2/lib/python3.8/site-packages:/gnu/store/k08j1silv8zxfglz3mb5q7ngmya9cv= 39-python-pycparser-2.20/lib/python3.8/site-packages:/gnu/store/fd7sx13lhrg= brnsa5k3g8inas417p5q5-python-urllib3-1.26.4/lib/python3.8/site-packages:/gn= u/store/ihl3h0s000vlkvadxvv21cbn4fqzvmav-python-idna-2.10/lib/python3.8/sit= e-packages:/gnu/store/ysvrcvvaajbg432f7pr0k8x2w21lnz81-python-chardet-3.0.4= /lib/python3.8/site-packages:/gnu/store/2j54g0s8db1b10ggs4rirfb5vv8abm2y-py= thon-certifi-2020.12.5/lib/python3.8/site-packages:/gnu/store/q01v2xjfcl7d0= 20y3yh865695gm8i3gx-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/xgsczafbfkmqmanm87nx2qfyzp4h313i-python-pysocks-= 1.7.1/lib/python3.8/site-packages:/gnu/store/wand0zrwwnds6x636746116cfh3sy5= 0k-python-pyopenssl-20.0.0/lib/python3.8/site-packages${PYTHONPATH:+:}$PYTH= ONPATH" ^SyntaxError: invalid syntax--8<---------------cut here---------------end--------------->8---* *--8<---------------cut here---------------start------------->8---#!/gnu/store/pwcp239kjf7lnj5i4lkd= zcfcxwcfyk72-bash-minimal-5.0.16/bin/bashexport PYTHONPATH=3D"/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-ag= ent-1.1.12/lib/python3.8/site-packages:/gnu/store/ahbp2qnrx7m6m5yrxcfsf37gq= mgkm13c-python-lib-agent-1.0.3/lib/python3.8/site-packages:/gnu/store/xq0bp= zrxy461igy3vwymgmlfg85ghfgv-python-onlykey-1.2.6/lib/python3.8/site-package= s:/gnu/store/sd2ic7bpv8fx3imy1j8xcjclx71sv6q0-python-3.8.2/lib/python3.8/si= te-packages:/gnu/store/gb0xnb6vldlmwiky77w7hxpkjbvp1560-python-wheel-0.36.2= /lib/python3.8/site-packages:/gnu/store/7c48ls8c4xddx22yy7rlnszs0fjl56k7-py= thon-unidecode-1.1.1/lib/python3.8/site-packages:/gnu/store/hi8yk6yzivzwpxa= k2fcggd6zl887n7zj-python-semver-2.9.0/lib/python3.8/site-packages:/gnu/stor= e/gvka9y88b5i6h1fbwb5qxi8vv0ajh6d3-python-pynacl-1.4.0/lib/python3.8/site-p= ackages:/gnu/store/4153n7v3hy0pn2df0c8rag7v4gmgg0ki-python-pymsgbox-1.0.6/l= ib/python3.8/site-packages:/gnu/store/ppdbw2sl5filj79rl6k0wqy7xkz2603n-pyth= on-pycryptodome-3.9.9/lib/python3.8/site-packages:/gnu/store/b2pf54i477iby8= f17am9p0x2bz96gn63-python-mnemonic-0.20/lib/python3.8/site-packages:/gnu/st= ore/3vl9a6y7d9r3w3diy2bj15jxd0qgzycv-python-ecdsa-0.14.1/lib/python3.8/site= -packages:/gnu/store/1qz6j51mmn2z1za41fb9vs9dgmwisng3-python-docutils-0.16/= lib/python3.8/site-packages:/gnu/store/v74q9niaprwv0l25hb1hcyhvyzwp7zmf-pyt= hon-daemon-2.2.3/lib/python3.8/site-packages:/gnu/store/jvm96kifzns968g0l11= 5chfdp3n5ksba-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/hjmz8ymac939ribn7g3jkgms4dk2az3a-pyt= hon-six-1.14.0/lib/python3.8/site-packages:/gnu/store/bxbhdka9x8pnl7jnpkvz1= nvgg2m8xqfs-python-prompt-toolkit-3.0.18/lib/python3.8/site-packages:/gnu/s= tore/2lrpayrb6rrfmscfkfii65jdd328v945-python-onlykey-solo-0.0.28/lib/python= 3.8/site-packages:/gnu/store/1xmngywbzxx8lb539z4zcggm12gw6lzm-python-hidapi= -0.7.99.post21/lib/python3.8/site-packages:/gnu/store/j1qn1pjvpyljmrb7hh1pj= sgz44b13y5i-python-cython-0.29.22/lib/python3.8/site-packages:/gnu/store/d5= zp1z8vz42c8b69fszck1vqh59npms4-python-aenum-2.2.4/lib/python3.8/site-packag= es:/gnu/store/sfy8vc8da10appy093izjz4byzd7sfqp-python-cffi-1.14.4/lib/pytho= n3.8/site-packages:/gnu/store/wi6ihkh2dq1sj6pq6g28f5vw157kfy8x-python-lockf= ile-0.12.2/lib/python3.8/site-packages:/gnu/store/xjiplzqxr084ximm4wdhyx3wz= f8nxvv0-python-wcwidth-0.1.8/lib/python3.8/site-packages:/gnu/store/kffam5l= zshdhb0ygq0r76gqvavs0190c-python-requests-2.25.0/lib/python3.8/site-package= s:/gnu/store/qkj3ssg0y3ya0d450pp0kaa7zbg9i0x6-python-pyusb-1.0.2/lib/python= 3.8/site-packages:/gnu/store/b3k1kmx7rzkykb4ik5nz0jdabqr86vvv-python-pyseri= al-3.5/lib/python3.8/site-packages:/gnu/store/w3q52n0pc5zvblr8qdsgdfiw33psj= 6pz-python-intelhex-2.2.1/lib/python3.8/site-packages:/gnu/store/fpk2f2jwqa= h0s340hdhmr734vvxq3z3j-python-fido2-0.9.1/lib/python3.8/site-packages:/gnu/= store/sjiiqs605sfsqxjdkcm3m8rx0ahv5wvv-python-cryptography-3.3.1/lib/python= 3.8/site-packages:/gnu/store/5a12m99wdfqydzwx46nlfqqvi9q3pq49-python-click-= 7.1.2/lib/python3.8/site-packages:/gnu/store/k08j1silv8zxfglz3mb5q7ngmya9cv= 39-python-pycparser-2.20/lib/python3.8/site-packages:/gnu/store/fd7sx13lhrg= brnsa5k3g8inas417p5q5-python-urllib3-1.26.4/lib/python3.8/site-packages:/gn= u/store/ihl3h0s000vlkvadxvv21cbn4fqzvmav-python-idna-2.10/lib/python3.8/sit= e-packages:/gnu/store/ysvrcvvaajbg432f7pr0k8x2w21lnz81-python-chardet-3.0.4= /lib/python3.8/site-packages:/gnu/store/2j54g0s8db1b10ggs4rirfb5vv8abm2y-py= thon-certifi-2020.12.5/lib/python3.8/site-packages:/gnu/store/q01v2xjfcl7d0= 20y3yh865695gm8i3gx-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/xgsczafbfkmqmanm87nx2qfyzp4h313i-python-pysocks-= 1.7.1/lib/python3.8/site-packages:/gnu/store/wand0zrwwnds6x636746116cfh3sy5= 0k-python-pyopenssl-20.0.0/lib/python3.8/site-packages${PYTHONPATH:+:}$PYTH= ONPATH"exec -a "$0" "/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-agent-1= .1.12/bin/.onlykey_agent.py-real" "$@"--8<---------------cut here---------------end--------------->8---* Regards, Antwane On Thu, Sep 16, 2021 at 8:06 AM Hartmut Goebel wrote: > Am 07.09.21 um 19:39 schrieb Antwane Mason: > > File > > > "/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-agent-1.1.12/= bin/onlykey_agent.py", > > > line 2 > > export PYTHONPATH=3D"/gnu/store/=E2=80=A6- > > This looks like an error in the package definition: A .py-file contains > a shell command. > > HTH > > -- > Regards > Hartmut Goebel > > | Hartmut Goebel | h.goebel@crazy-compilers.com | > | www.crazy-compilers.com | compilers which you thought are impossible | > > --00000000000008658805cc4a4739 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for the response. I think since there is no= thing out of the ordinary going on in the package definition, this may be s= ome edge-case in one of the python build stages. Below is the package defin= ition.
--8<---------------cut here---------------=
start------------->8---
(define-public python-onlykey-agent
=C2=A0= (package
=C2=A0 =C2=A0 (name "python-onlykey-agent")
=C2= =A0 =C2=A0 (version "1.1.12")
=C2=A0 =C2=A0 (source
=C2=A0 = =C2=A0 =C2=A0 (origin
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (method url-fetch)
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 (uri (pypi-uri "onlykey-agent" versio= n))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (sha256
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 (base32
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "1586zhpph= 79s12alnyj1iiiwj0c5h1z8na2lqczf560p5mca6gxw"))))
=C2=A0 =C2=A0 (bui= ld-system python-build-system)
=C2=A0 =C2=A0 (propagated-inputs
=C2= =A0 =C2=A0 =C2=A0 `(("python-lib-agent" ,python-lib-agent)
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 ("python-onlykey" ,python-onlykey)))
= =C2=A0 =C2=A0 (home-page
=C2=A0 =C2=A0 =C2=A0 "http://github.com/trustcrypto/onlykey-a= gent")
=C2=A0 =C2=A0 (synopsis
=C2=A0 =C2=A0 =C2=A0 "Us= ing OnlyKey as hardware SSH/GPG agent")
=C2=A0 =C2=A0 (description<= br>=C2=A0 =C2=A0 =C2=A0 "Using OnlyKey as hardware SSH/GPG agent"= )
=C2=A0 =C2=A0 (license license:lgpl3)))
--8<---------------cu= t here---------------end--------------->8---

F= rom 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---
=



Regards,
Antwane
=


On Thu, Sep 16, 2021 at 8:06 AM Hartmut Goebe= l <h.goebel@crazy-compil= ers.com> wrote:
Am 07.09.21 um 19:39 schrieb Antwane Mason:
> File
> "/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4b7b-python-onlykey-agent= -1.1.12/bin/onlykey_agent.py",
> line 2
> =C2=A0 =C2=A0 export PYTHONPATH=3D"/gnu/store/=E2=80=A6-

This looks like an error in the package definition: A .py-file contains a shell command.

HTH

--
Regards
Hartmut Goebel

| Hartmut Goebel=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | h.goebel@crazy-compilers.com=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
|
www.crazy-compilers.com | compilers which you thought are imposs= ible |

--00000000000008658805cc4a4739--