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
(or (getenv "PYTHONPATH") "")) (for-each (lambda (dir) (let ((files (list-of-files dir))) (for-each (lambda (file) (wrap-program file var)) files)))

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

Re: Python Site Package Syntax Runtime Error

2021-09-18 Thread Antwane Mason
packages:/gnu/store/xgsczafbfkmqmanm87nx2qfyzp4h313i-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"exec -a "$0" "/gnu/store/s2w1lq80x9vcwp5382kn98f5pi2k4

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

Re: How to Write Empty File in Build Phase?

2021-08-29 Thread Antwane Mason
> (with-output-to-file "__init__.py" >newline) > Untested, but NEWLINE taking #:optional arguments should not make it any > less of a thunk. That code snippet worked well for me. I appreciate the suggestion!

Re: How to Write Empty File in Build Phase?

2021-08-28 Thread Antwane Mason
muradm, Thank you so much for your help! That worked like a charm! Just needed to adjust the second argument of with-output-to-file so that it takes a lambda that returns (newline). Here is the resulting package definition that successfully builds. (define-public python-verspec (package (na

How to Write Empty File in Build Phase?

2021-08-27 Thread Antwane Mason
Hello, I am currently working to resolve a build issue of python-verspec with the ultimate goal of submitting a package for this package, onlykey-cli, and all other dependencies required for onlykey-cli. Onlykey is a hardware password manager, second factor authenticator, and private key storage m