AdamSpannbauer / python_video_stab

A Python package to stabilize videos using OpenCV
https://adamspannbauer.github.io/python_video_stab/html/index.html
MIT License
682 stars 118 forks source link

I get (No module named 'imutils') error #118

Closed Rothax closed 3 years ago

Rothax commented 3 years ago

I didnt changed anything . Only installed necessary modules, of course it is include imtulis module but it gives this error error1

AdamSpannbauer commented 3 years ago

How did you install vidstab? It looks like your working directory is the vidstab directory, and I'm questioning whether anything was installed or if you just cloned the repo and ran the code.

Install with either:

Rothax commented 3 years ago

I used "pip install vidstab[cv2]" for install vidstab

AdamSpannbauer commented 3 years ago

Are you sure that you installed it in the same environment that your code is running in? Can you prove that vidstab is installed by running something like pip list or pip list | grep vid (you should see vidstab in the list if it is installed). Or perhaps by doing python -> import vidstab (not in the vidstab directory).

Rothax commented 3 years ago

Of course 12

AdamSpannbauer commented 3 years ago

So there is definitely some disconnect between the python process running the code and that list of installed packages since we can see imutils in the list.

To try and ensure you're using the appropriate pip + python you can try and install with the below command (since you're using python3 in the command that failed concerning imutils):

python3 -m pip install vidstab[cv2]

You might have your pip for python 2 and pip3 for managing python 3 packages (not for sure of course, but a possibility).