Home > database >  Chaquopy: ModuleNotFoundError: No module named 'distutils.util'
Chaquopy: ModuleNotFoundError: No module named 'distutils.util'

Time:09-13

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 

CodePudding user response:

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

CodePudding user response:

You probably need to install the python3-distutils or python3.8-distutils package.

Source: https://askubuntu.com/questions/1239829, which is the first Google result for this error message.

  • Related