Menu

Error while using python "print" syntax

ZckWzk
2018-11-03
2018-11-10
  • ZckWzk

    ZckWzk - 2018-11-03

    using python3 and when i want to use print syntax

    example => print (ms.GetPropertyValue("PROP_MS_25"))

    its give me error like on the Picture that saying

    "a byte like object is required not str"

     

    Last edit: ZckWzk 2018-11-03
  • Daniel Medeiros

    Daniel Medeiros - 2018-11-03

    Try str().

     
  • ZckWzk

    ZckWzk - 2018-11-04

    using :

    print (str(wf.GetPropertyValue("PROP_MS_25")))

    still couldnt fix the error

     
  • Daniel Medeiros

    Daniel Medeiros - 2018-11-05

    Flowsheet.ShowMessage(str(wf.GetPropertyValue("PROP_MS_25")), 0)

     
  • ZckWzk

    ZckWzk - 2018-11-10

    thanks that work

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.