Re: Python Site Package Syntax Runtime Error

2021-09-20 Thread Hartmut Goebel
Am 20.09.21 um 22:28 schrieb Antwane Mason:         (snippet          '(begin (substitute* "setup.py"                    (("scripts=\\['onlykey_agent.py'\\]")                     "py_modules=['onlykey_agent']"))                  #t Typically these kind of changes go into a phase. Search othe

Re: Python Site Package Syntax Runtime Error

2021-09-20 Thread Antwane Mason
On Mon, Sep 20, 2021 at 8:32 AM Hartmut Goebel wrote: > Looking at the code of the package - which actually is quite simple - I > discover > > scripts=['onlykey_agent.py'], > > This might indeed trigger some issue in phase wrap. Please open a > bug-report for this, explicitly pointing to release

Re: Python Site Package Syntax Runtime Error

2021-09-20 Thread Antwane Mason
On Sun, Sep 19, 2021 at 1:59 PM Maxime Devos wrote: > Anyway, to prevent onlykey_agent.py from being wrapped, you can replace > the 'wrap' phase with a custom 'wrap' phase adjusted for onlykey-agent > pecularities: > > (package > (name "python-onlykey-agent") > ... > (arguments > `(#:ph

Re: Python Site Package Syntax Runtime Error

2021-09-20 Thread Hartmut Goebel
Am 18.09.21 um 21:44 schrieb Antwane Mason: 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

Re: Python Site Package Syntax Runtime Error

2021-09-19 Thread Maxime Devos
Antwane Mason schreef op di 07-09-2021 om 13:39 [-0400]: > Has anyone come across the following runtime error when running a python-based > application in guix? I'm wondering if something went wrong during the package > build > for python-onlykey-agent that messed up the PYTHONPATH export for the

Re: Python Site Package Syntax Runtime Error

2021-09-19 Thread Antwane Mason
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 files. > This causes the shell script which is named as the original python file to > be loaded as

Re: Python Site Package Syntax Runtime Error

2021-09-18 Thread Antwane Mason
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

Re: Python Site Package Syntax Runtime Error

2021-09-16 Thread Hartmut Goebel
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="/gnu/store/…- This looks like an error in the package definition: A .py-file contains a shell command. HTH -- Rega

Python Site Package Syntax Runtime Error

2021-09-07 Thread Antwane Mason
Has anyone come across the following runtime error when running a python-based application in guix? I'm wondering if something went wrong during the package build for python-onlykey-agent that messed up the PYTHONPATH export for the runtime. I should note that python-onlykey-agent is a program tha