0

Pysound not working

pip install playsound This is my code from playsound import playsound playsound('/storage/emulated/0/PythonL/Practice/Ch-1/play.mp3') And my errors Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in <module> start(fakepyfile,mainpyfile) File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start exec(open(mainpyfile).read(), __main__.__dict__) File "<string>", line 2, in <module> File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.8/site-packages/playsound.py", line 91, in _playsoundNix import gi ModuleNotFoundError: No module named 'gi'

27th Sep 2020, 5:54 AM
Vinayak
4 Respuestas
27th Sep 2020, 6:06 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Found no documented solution for android. You either solve it on your own, or accept the situation. You see which module is missing, in the last line of the error message. Maybe it helps if you try installing 'gi' manually in pydroid. If not, you could still attempt to replicate the solution others found, when you follow the link it will lead you to stackoverflow. Then you'll just need to investigate if any of those methods are applicable to android, maybe researching where pydroid stores its python source files...
27th Sep 2020, 7:24 AM
Tibor Santa
Tibor Santa - avatar
0
I am on android pydroid how can i solve this for android
27th Sep 2020, 6:13 AM
Vinayak
0
Hmm , That should be what I do 😖
27th Sep 2020, 7:30 AM
Vinayak