Re: [dt-schema PATCH] schemas: iio: add label

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 8 Jun 2023 12:13:55 -0600
Rob Herring <robh@xxxxxxxxxx> wrote:

> On Sun, 07 May 2023 19:12:19 +0200, Krzysztof Kozlowski wrote:
> > Linux IIO core code parses label property which is already used in
> > several IIO devices.
> > 
> > Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> > ---
> >  dtschema/schemas/iio/iio.yaml | 4 ++++
> >  1 file changed, 4 insertions(+)
> >   
> 
> Applied, thanks!
> 

I'm guessing you already know this but I hit it during testing.
dtschema/main + ruamel.yaml 0.17.24 and later seem to be broken. It installs
fine but...

AttributeError: module 'ruamel.yaml' has no attribute 'YAML'                                                                                              
$ /usr/bin/dt-doc-validate                                                                                                  
Traceback (most recent call last):                                                                                                                        
  File "/usr/bin/dt-doc-validate", line 4, in <module>                                                                                                    
    __import__('pkg_resources').run_script('dtschema==2023.5.dev6+g4ddf315.d20230610', 'dt-doc-validate')                                                 
  File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 720, in run_script                                                             
    self.require(requires)[0].run_script(script_name, ns)                                                                                                 
  File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1559, in run_script                                                            
    exec(code, namespace, namespace)                                                                                                                      
  File "/usr/lib/python3.11/site-packages/dtschema-2023.5.dev6+g4ddf315.d20230610-py3.11.egg/EGG-INFO/scripts/dt-doc-validate", line 16, in <module>      
    import dtschema                                                                                                                                       
  File "/usr/lib/python3.11/site-packages/dtschema-2023.5.dev6+g4ddf315.d20230610-py3.11.egg/dtschema/__init__.py", line 1, in <module>                   
    from dtschema.lib import (                                                                                                                            
  File "/usr/lib/python3.11/site-packages/dtschema-2023.5.dev6+g4ddf315.d20230610-py3.11.egg/dtschema/lib.py", line 35, in <module>                       
    rtyaml = ruamel.yaml.YAML(typ='rt')   

I've worked around this by setting a max version at 0.17.
Only change in ruamel.yaml between those is:
https://sourceforge.net/p/ruamel-yaml/code/ci/4309006902d2453399588f4ddccfb3fc460e1eba/

My python is terrible so I'm not looking into this further.

Jonathan



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux