Yocto - ModuleNotFoundError: No module named 'Crypto'

Sunidhi Dixit <[email protected]> Mon, 4 Oct 2021 09:29:49 +0530
Newsgroups org.yoctoproject.lists.meta-freescale
Message-ID <CAHy2U9h17=W899u59waAv4Kh-UCFznMuLhE+BiJjOgvtL_+AWQ@mail.gmail.com>
Hello Community,

I am getting one issue  in yocto

I am trying to execute a python script from inside

IMAGE_CMD_tar_append (){

python3 myscript.py

}

getting following errors

from Crypto.PublicKey import RSA
| ModuleNotFoundError: No module named 'Crypto'



but if I try same command from command line it works

Please guide!

Thanks

-- 


_This
 message contains confidential information and is for the *intended 
recipients.*_ If you are not *intended recipients*_ you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system. E-mail
 transmission cannot be 
guaranteed to be secure or error-free as 
information could be intercepted, 
corrupted, lost, destroyed, arrive 
late or incomplete, or contain viruses. 
The sender or VOLANSYS (www.volansys.com <http://www.volansys.com/>)
 
therefore does not accept liability for any errors or omissions in the 
contents of this message.___