You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extract frames failing on new and old previously successful projects #3448
I encountered a sudden new issue today where all new and old projects are failing to extract frames.
The popup in the GUI reads "Frame extraction failed. Please check your terminal output for more information.
Terminal output:
(DEEPLABCUT) C:\Windows\System32>python -m deeplabcut
Starting GUI...
INFO:deeplabcut.gui:Use all bodyparts
INFO:deeplabcut.gui:Videos added to analyze:
{WindowsPath('C:/Users/tensor/Desktop/3label-RZ-2026-08-06/videos/4_flies.MP4')}
Current video files:
{WindowsPath('C:/Users/tensor/Desktop/3label-RZ-2026-08-06/videos/4_flies.MP4')}
WARNING: QThread::wait: Thread tried to wait on itself
WARNING:vispy:QThread::wait: Thread tried to wait on itself
INFO:deeplabcut.gui.console:Config file read successfully.
INFO:deeplabcut.gui.console:Frame extraction failed. Video files must be corrupted.
This project has worked previously with these videos so the video shouldn't be corrupted (it also is happening on all new and old projects).
Widows updated last night and this issue started today, unsure if it is related, but the timing is odd.
I have tried upgrading DLC but keep running into this issue. I am able to open the window to crop, but when I click crop I also get the same error.
I attempted troubleshooting but have gotten stuck due to my lack of background in python.
Thanks for your help!
One thing to update - I had DeepLabCut run the most recent update to 3.0.1 on the computer that is no longer allowing me to load projects, another lab computer has not run this update and is allowing the creation of new projects and opening old ones. Could this be a bug in the recent update?
Apologies if I am using imprecise or inaccurate terminology.
Thanks for the report! This is indeed a regression in frame extraction, the message about corruption of your videos is incorrect in this case.
The code was comparing pathlib.Path values from the GUI with string paths from the project configuration, which is not a valid comparison, so it reported no videos and displayed the error you mentioned.
The recent configuration refactor added stronger validation for configuration files, but indeed some call sites still need more consistent path handling after the update. This is exactly the kind of remaining issue we were looking out for, thanks for reporting this one.
This is now fixed in #3449, let us know if this is blocking your work and you would like to try out the fix.
Hi Cyril,
Thank you so much, I was able to run that code and all appears to be working.
Do you have recommendations on when to update versus when to hold off for those of us without much knowhow when it comes to python and coding? Or, is the preference to update so any bugs like this one can be caught?
Thanks again for such a fast response and fix, I was worried I had created a mess of my computer!
I think when to update mostly depends on the state of your project; from my experience the best for a full scientific pipeline is that once a software version is well in place and used to generate usable results, it should remain the same, at least when generating extra related results that need to be comparable.
When first labeling data, trying out models, checking the outputs etc, it matters less, so updating may be worthwhile if there are any bugs hindering the initial exploration. This wouldn't be true if you already have several trained models and usable results end-to-end.
We do try our best in DLC to make everything backwards compatible, however the processing/parsing of project data does change across versions, sometimes because we fix bugs, but also sometimes because we introduce new bugs by bringing in other improvements (in your case, typed configs).
Overall I think it's a balance between how critical a given version is to your results, versus how usable it is.
If your current version works and has already produced results you need for e.g. a publication, there is usually no need to update during that phase of the project
If you are blocked by a bug (and report it so it is fixed), updating in a controlled way would be best
I think the key takeaways when you need to update are:
Back up project data and record the DLC version at the time
Keep envs separate, ideally have one env per version and keep them until you are certain the update works as expected
If migrating, try out on smaller representative dataset chunks before redoing everything
We do very much appreciate bug reports but your project and data should be first, no need to update just to help us find bugs :)
One last thing is that it can be difficult for us to provide fixes and debug help for much older versions, so keeping up to date where possible is still good practice, but it should come after doing what's best for your project.
Sorry for the long answer, but I feel this is not a trivial question; the best decision really does depend on your project and its current stage.
I really appreciate the long and detailed answer. I often feel I jumped into the deep end and skipped a lot of steps just in background of how the programming side works.
Your explanation makes complete sense and again, I really appreciate you taking the time to add all of that.
ffmpeg: ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
ffmpeg_path: bin/ffmpeg
Recent logs
10:58:23.710 | INFO | deeplabcut.gui | Use all bodyparts
10:58:32.688 | INFO | deeplabcut.gui | Videos added to analyze:
{PosixPath('/data/Deeplabcut/test-02-2026-09-16/videos/05-55.mp4')}
Current video files:
{PosixPath('/data/Deeplabcut/test-02-2026-09-16/videos/05-55.mp4')}
10:58:33.873 | INFO | deeplabcut.gui.console | Config file read successfully.
10:58:33.874 | INFO | deeplabcut.gui.console | Frame extraction failed. Video files must be corrupted.
10:58:41.909 | INFO | deeplabcut.gui.console | failed to extract frames: worker is None
If you prefer you could also install from the 3.0.2 dev branch, let me know if you'd like instructions on how to do so, but ideally I would recommend using the API and waiting until 3.0.2 is released.
Activity
C-Achard commentedon Aug 14, 2026
Hello @calliecrawford,
Thanks for the report! This is indeed a regression in frame extraction, the message about corruption of your videos is incorrect in this case.
The code was comparing pathlib.Path values from the GUI with string paths from the project configuration, which is not a valid comparison, so it reported no videos and displayed the error you mentioned.
The recent configuration refactor added stronger validation for configuration files, but indeed some call sites still need more consistent path handling after the update. This is exactly the kind of remaining issue we were looking out for, thanks for reporting this one.
This is now fixed in #3449, let us know if this is blocking your work and you would like to try out the fix.
Best,
Cyril
calliecrawford commentedon Aug 14, 2026
Thank you for looking into this so quickly! I would like to try out the fix so I can get my student researcher back on track.
C-Achard commentedon Aug 17, 2026
@calliecrawford Apologies for the late reply, please find below how to install from the fix dev branch!
python -m pip install --no-deps --force-reinstall "git+https://github.com/DeepLabCut/DeepLabCut.git@refs/pull/3449/head"That should be all, if you want to revert to the latest DLC use:
(and whichever other optional deps you were using initially)
Let me know if you have any questions or encounter problems with the fix!
Best,
Cyril
calliecrawford commentedon Aug 17, 2026
Hi Cyril,
Thank you so much, I was able to run that code and all appears to be working.
Do you have recommendations on when to update versus when to hold off for those of us without much knowhow when it comes to python and coding? Or, is the preference to update so any bugs like this one can be caught?
Thanks again for such a fast response and fix, I was worried I had created a mess of my computer!
Callie
C-Achard commentedon Aug 18, 2026
Hello again,
I think when to update mostly depends on the state of your project; from my experience the best for a full scientific pipeline is that once a software version is well in place and used to generate usable results, it should remain the same, at least when generating extra related results that need to be comparable.
When first labeling data, trying out models, checking the outputs etc, it matters less, so updating may be worthwhile if there are any bugs hindering the initial exploration. This wouldn't be true if you already have several trained models and usable results end-to-end.
We do try our best in DLC to make everything backwards compatible, however the processing/parsing of project data does change across versions, sometimes because we fix bugs, but also sometimes because we introduce new bugs by bringing in other improvements (in your case, typed configs).
Overall I think it's a balance between how critical a given version is to your results, versus how usable it is.
I think the key takeaways when you need to update are:
We do very much appreciate bug reports but your project and data should be first, no need to update just to help us find bugs :)
One last thing is that it can be difficult for us to provide fixes and debug help for much older versions, so keeping up to date where possible is still good practice, but it should come after doing what's best for your project.
Sorry for the long answer, but I feel this is not a trivial question; the best decision really does depend on your project and its current stage.
Hope this helps,
Cyril
calliecrawford commentedon Aug 18, 2026
I really appreciate the long and detailed answer. I often feel I jumped into the deep end and skipped a lot of steps just in background of how the programming side works.
Your explanation makes complete sense and again, I really appreciate you taking the time to add all of that.
Callie
ShambreTaylor commentedon Sep 16, 2026
Hello there,
I have the same problem: all new and old projects are failing to extract frames. (The old project was created 2 weeks ago)
Runtime
DeepLabCut core libraries
GUI libraries
External tools
Recent logs
C-Achard commentedon Sep 16, 2026
Hello @ShambreTaylor,
Thanks for the additional report, this is now fixed in #3449 and will be released soon as part of 3.0.2.
In the meantime, please use either the API directly if possible:
If you prefer you could also install from the 3.0.2 dev branch, let me know if you'd like instructions on how to do so, but ideally I would recommend using the API and waiting until 3.0.2 is released.
Please let us know if you have any questions!
Best,
Cyril