Closed JXH-SHU closed 4 days ago
Have you tried the import as follows?
from mvextractor.videocap import VideoCap
With the new Docker image, I changed the directory structure of the package and now the import statement is different.
Thank you for your reply. Yes, I used the updated codes ("from mvextractor.videocap import VideoCap"), and it reported the error ("No module named 'mvextractor'").
Okay. Does the error occur when importing in your own code or when running the "extract_mvs" script as mentioned in the readme?
Also, do you run your script within the same Docker container?
And have you tried the PyPI package?
I wonder why the error occurs. Since I run some tests which import the code in the CI pipeline and these ones work fine.
Thank you for your reply. I tried to install the tool using PyPI package, but it failed. Finally, I use the last version of the tool for my tests.
Can you provide a bit more information? E.g. what is your host OS, architecture, etc. What is the error message you get upon the failed installation?
I'd be glad to get this info so I can fix potential bugs.
Have you tried the readily built Docker image from DockerHub? You can run it with
git clone https://github.com/LukasBommes/mv-extractor.git mv_extractor
sudo ./run.sh python3.10 extract_mvs.py vid_h264.mp4 --preview --verbose
That works at least for me. I am not sure if it still works, if you are on a different host OS or architecture (I am on Ubuntu 20.04 x86_64).
What I tried to install was the readily built Docker you provided. According to your instructions, I successfully copied the docker you provided, but it couldn't test it successfully.
I am on Ubuntu 16.04 x86_64.
Could you send the exact commands you tried to execute? E.g. how did you clone the repo and which command did you run in the Docker container?
And can you post the exact error traceback that is being thrown?
The tool should be compatible with ubuntu 16.04 x86_64.
Dear all,
Thanks for the library. I use this code in docker. when I run the test file, I got error "File "/home/video_cap/tests/tests.py", line 4, in
@ZaraNaSha Could you please create a new issue with more details, e.g. your the exact commands that you executed?
Thank you for developing this great tool for motion extraction.
I tried to use the docker you provided, but the codes reported an error. The error message is "No module named 'mvextractor'". Looking forward to your reply。