[PD] Deken command line

Patco colet.patrice at gmail.com
Mon Nov 28 14:40:52 CET 2022


The install didn’t work at all, it was not only a failed string.

I tried the "--ignore-missing-gpg" flag and now deken seems broken, it doesn’t work in PureData interface anymore

Using Pd 0.52.2


 % deken install --ignore-missing-gpg maxlib gem
Traceback (most recent call last):
  File "pydeken.py", line 140, in <module>
  File "/var/folders/w9/785j6nzd3lz_s4_6gmkh165c0000gn/T/_MEIBuSGy1/deken.hy", line 2166, in main
    (if command (command arguments) (.print_help arg-parser)))
  File "/var/folders/w9/785j6nzd3lz_s4_6gmkh165c0000gn/T/_MEIBuSGy1/deken.hy", line 1745, in _hy_anon_var_113
    (download-verified
  File "/var/folders/w9/785j6nzd3lz_s4_6gmkh165c0000gn/T/_MEIBuSGy1/deken.hy", line 1565, in download_verified
    (lfor x (find-packages searchterms
  File "/var/folders/w9/785j6nzd3lz_s4_6gmkh165c0000gn/T/_MEIBuSGy1/deken.hy", line 1409, in find_packages
    (lfor x (search (or searchurl default-searchurl)
TypeError: 'NoneType' object is not iterable
[60585] Failed to execute script 'pydeken' due to unhandled exception!

% python3 --version
Python 3.10.7
 

 % deken --version
0.9.2


% deken --debug install maxlib 
Traceback (most recent call last):
  File "pydeken.py", line 140, in <module>
  File "/var/folders/w9/785j6nzd3lz_s4_6gmkh165c0000gn/T/_MEITCxxt0/deken.hy", line 2166, in main
    (if command (command arguments) (.print_help arg-parser)))
  File "/var/folders/w9/785j6nzd3lz_s4_6gmkh165c0000gn/T/_MEITCxxt0/deken.hy", line 1745, in _hy_anon_var_113
    (download-verified
  File "/var/folders/w9/785j6nzd3lz_s4_6gmkh165c0000gn/T/_MEITCxxt0/deken.hy", line 1565, in download_verified
    (lfor x (find-packages searchterms
  File "/var/folders/w9/785j6nzd3lz_s4_6gmkh165c0000gn/T/_MEITCxxt0/deken.hy", line 1409, in find_packages
    (lfor x (search (or searchurl default-searchurl)
TypeError: 'NoneType' object is not iterable
[61502] Failed to execute script 'pydeken' due to unhandled exception!


% deken shell                                  
usage: deken [-h] [-v] [-q] [--debug] [--no-debug] [--version] [--platform]
             {package,upload,find,download,verify,install,uninstall,systeminfo,systemfix} ...
deken: error: argument {package,upload,find,download,verify,install,uninstall,systeminfo,systemfix}: invalid choice: 'shell' (choose from 'package', 'upload', 'find', 'search', 'verify', 'download', 'install', 'uninstall', 'upgrade', 'update', 'systeminfo', 'systemfix')

% deken --platform        
Darwin-amd64-32


% uname -a
Darwin MacBook-Air-de-patrice-5.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Sep 29 20:13:46 PDT 2022; root:xnu-8020.240.7~1/RELEASE_ARM64_T8101 arm64

I will try again after reinstalling PureData with newer version...

> Le 27 nov. 2022 à 23:19, IOhannes m zmölnig <zmoelnig at iem.at> a écrit :
> 
> On 11/27/22 22:28, Patco wrote:
>> Yes, thanks for the hint, but actually this doesn’t work:
>>  % deken install gge maxlib zexy
>> Downloading 'http://puredata.info/Members/fjkraan/software/maxlib/1.5.8/maxlib[v1.5.8](Darwin-amd64-32)(Darwin-i386-32)(Sources).dek.asc' failed with '404'
>> Downloading 'http://puredata.info/Members/zmoelnigbot/software/zexy/2.4.1/zexy[v2.4.1](Darwin-amd64-32)(Darwin-arm64-32)(Linux-amd64-32)(Linux-arm64-32)(Linux-armv7-32)(Linux-i386-32)(Windows-amd64-32)(Windows-i386-32).dek.asc' failed with ‘404'
>> It works when I install using PureData interface.
> 
> that's because cmdline command interface is stricter when it comes to requirements.
> e.g. it tries hard to verify gpg-signatures (something the cmdline interface doesn't even attempt to do).
> you can ignore missing GPG signatures with the "--ignore-missing-gpg" cmdline flag.
> 
> the 'deken' cmdline utility has plenty of flags to tune its behaviour, which you can query with "--help".
> also note that each subcommand has their own flags, so you might try something like:
> ```
> deken install --help
> ```
> 
> 
> mfdsar
> IOhannes
> 
> PS: i just tried to actually reproduce your error, and even without specifying the "--ignore-missing-gpg" it downloads and installs the files just fine, even though it cannot download the .asc signature. are you sure that the installation is failing, or are you just seeing a "failed" string and concluding that things are going wrong from there?
> PPS: there actually seems to be an issue with 'deken', as it succeeds to install, even if i explicitely tell it to *not* ignore the missing GPG signature... but that's a different story.
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20221128/43653ffb/attachment.htm>


More information about the Pd-list mailing list