buildozer "ModuleNotFoundError: No module named 'rsa'"

40 views
Skip to first unread message

Gary Kuipers

unread,
Mar 25, 2023, 12:46:08 PM3/25/23
to Kivy users support
Maybe I misunderstand:

The virtual environment in which I am compiling using buildozer has the module and can access it. 

(venv) ga...:~/PycharmProjects/YSI_Read/c4k_photo_example$ python3
Python 3.10.7 (main, Mar 10 2023, 10:47:39) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rsa
>>>

I am expecting that the apk should be able to access it as well. However, at execution of the apk, the instantiation of the class:
from applayout.crypto import CryptoApp

file crypto.py
import os
import rsa

class CryptoApp(object):

Error:
03-25 12:37:52.772 24746 24814 I python  :    File "/home/gary/PycharmProjects/YSI_Read/c4k_photo_example/.buildozer/android/app/applayout/sender.py", line 19, in <module>
03-25 12:37:52.772 24746 24814 I python  :    File "/home/gary/PycharmProjects/YSI_Read/c4k_photo_example/.buildozer/android/app/applayout/crypto.py", line 2, in <module>
03-25 12:37:52.773 24746 24814 I python  :  ModuleNotFoundError: No module named 'rsa'


Am I misunderstanding how modules are incorporated in the build process of buildozer?





 




Robert

unread,
Mar 25, 2023, 12:57:50 PM3/25/23
to Kivy users support
> Am I misunderstanding how modules are incorporated in the build process of buildozer?

yes

Reply all
Reply to author
Forward
0 new messages