Chaquopy: ModuleNotFoundError: No module named 'distutils.util'

Viewed 38

I am trying to make an app with android studio, i imported chaquopy and python runs it.. (app is ok fine but when start python script cv2 is missing) in the python program I use opencv so I have to import the library the fact is that if I add:

     python {      
         pip {   
              install "opencv-python"  
            }
        }

in the defaultconfig and try sync now:

*** 
Process 'command 'python3.8'' finished with non-zero exit value 1
***
***
Execution failed for task ':app:generateDebugPythonRequirements'.
ModuleNotFoundError: No module named 'distutils.util'
***
***
> Process 'command 'python3.8'' finished with non-zero exit value 1
***
***
ModuleNotFoundError: No module named 'distutils.util'
***
***
Process 'command '/usr/bin/python3.8'' finished with non-zero exit value 1
***
gradle is update at last version 
2 Answers

My bad I just need sudo apt-get install python3.8-distutils now work

Related