Forums - json import error

2 posts / 0 new
Last post
json import error
keerthimk268
Join Date: 29 Jan 21
Posts: 2
Posted: Tue, 2021-03-02 02:24

Hi

Can anyone explain, How to include json python library to the qcs610 application.

i tried to import json library like "import json", but i am getting import error.

  • Up0
  • Down0
Re: json import error Best Answer
g.ramsingh
Join Date: 17 Sep 20
Posts: 7
Posted: Tue, 2021-03-02 02:41

Hi Keerthi,

you can directly use the host system python3.5 JSON library. it doesn't have any .so file dependency and it is written completely on python inbuilt libraries.  push the library to the target board using the below command

  $ adb push /usr/lib/python3.5/json  /usr/lib/python3.5/

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.