Answer the question
In order to leave comments, you need to log in
How to overcome OpenCV video module error?
There is a project with OpenCV (ball tracking)
In the project, in addition to cv2 (this is ok, it was installed normally via pip3), the video module is used.
When executed: import video
I get:
Tell me what to do? I downloaded OpenCV from the GitHub repository, it is on the hard drive. Why it doesn't import - I don't know ( ModuleNotFoundError: No module named 'video'
Answer the question
In order to leave comments, you need to log in
You need to add video.py to your project. It's not a package that you need to install, but a module of it that exists in the same repo.
Show the console application config and specify the exact version of your copy of yii. It would also be nice to specify which skeleton you are using (basic or advanced).
Manually delete already created tables and repeat the
AND command, the relationship must be added to the already created table, i.e. First apply the second migration
this is the meaning of migration, so as not to repeat the one that has already been used. If you need to make changes, you need to write a new migration, and not make changes to the used one.
The m170409_113615_transaction
migration tries to create a foreign key for a table that does not exist at the time of the migration (it is created in the m170409_113632_category migration ).
MySQL does not support transactions in DDL, and therefore the creation of all constraints is best done in separate migrations.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question