Menu

#3247 pyosaf: update pyosaf support python3

5.21.03
fixed
None
defect
pyosaf
lib
major
False
2021-03-01
2020-12-30
No
root@SC-1:/opensaf-code/python# python3 samples/imm-listener --all
INFO: Listening to changes to all configuration classes
INFO: There is nothing to listen

2020-12-30 08:36:23.046 SC-1 /imm-listener: ER saImmOmClassDescriptionGet_2 FAILED - SA_AIS_ERR_NOT_EXIST

Related

Wiki: ChangeLog-5.21.03

Discussion

  • Thien Minh Huynh

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,5 @@
     ~~~
    -root@SC-1:/srv/osaftest/opensaf-code/python# python3 samples/imm-listener --all
    +root@SC-1:/opensaf-code/python# python3 samples/imm-listener --all
     INFO: Listening to changes to all configuration classes
     INFO: There is nothing to listen
    
    @@ -8,7 +8,7 @@
     ~~~
    
     ~~~
    -root@SC-1:/srv/osaftest/opensaf-code/python# python3 samples/immlist safSg=2N,safApp=OpenSAF
    +root@SC-1:/opensaf-code/python# python3 samples/immlist safSg=2N,safApp=OpenSAF
     Traceback (most recent call last):
       File "samples/immlist", line 73, in <module>
         result = immlist(arguments)
    
     
  • Thien Minh Huynh

    • summary: pyosaf: almost all samples python is failed when run as python3 --> pyosaf: update pyosaf support python3
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,15 +4,4 @@
     INFO: There is nothing to listen
    
     2020-12-30 08:36:23.046 SC-1 /imm-listener: ER saImmOmClassDescriptionGet_2 FAILED - SA_AIS_ERR_NOT_EXIST
    -
     ~~~
    -
    -~~~
    -root@SC-1:/opensaf-code/python# python3 samples/immlist safSg=2N,safApp=OpenSAF
    -Traceback (most recent call last):
    -  File "samples/immlist", line 73, in <module>
    -    result = immlist(arguments)
    -  File "samples/immlist", line 39, in immlist
    -    for name, value_pair in obj.attrs.iteritems():
    -AttributeError: 'dict' object has no attribute 'iteritems'
    -~~~
    
    • Part: samples --> lib
     
  • Thien Minh Huynh

    • status: accepted --> review
     
  • Thien Minh Huynh

    • status: review --> fixed
     
  • Thien Minh Huynh

    commit 2c13c9ea579dc064b1d6adcce98d62efb3d0032d (HEAD -> develop, origin/develop)
    Author: thien.m.huynh thien.m.huynh@dektech.com.au
    Date: Wed Dec 30 08:57:18 2020 +0700

    pyosaf: update pyosaf support python3 [#3247]
    
    - check data type before implicit type conversion
    - add more encode/decode byte-string
    - update iterable dict items for python 2 and 3
    
     
  • Gary Lee

    Gary Lee - 2021-03-01
    • Milestone: 5.20.11 --> 5.21.03
     

Log in to post a comment.