Skip to content

Create new project window won't close #3286

Description

@KateFeller

Is there an existing issue for this?

  • I have searched the existing issues

Operating System

windows 11 (Alienware PC laptop)

DeepLabCut version

3.0.0.rc9

What engine are you using?

pytorch

DeepLabCut mode

single animal

Device type

NVIDIA GeForce RTX 4070 laptop GPU

Bug description 🐛

I've been using the latest version of DLC with Pytorch on Windows 11 OS the last few months just fine, but as of today (after changing nothing on my end) when I go to create a new project, the create project window does not close, and though a project gets created, when I try to load the project config a few pop up windows come up (Transfer learning dropdown menu and weight initialization) that do not have options to select OK or something similar to proceed. Closing the windows results in failure to open the project from the DLC GUI. My projects created a few days ago, however still open with no issues. What is the fix for this? I assume it is associated with an update on your end....

Steps To Reproduce

  1. in Anaconda prompt, run as administrator
  2. 'activate DEEPLABCUT' environment
  3. launch DLC gui: 'python -m deeplabcut'
  4. GUI launches.
  5. 'Create New Project' --- create, window does not close, terminal window states that project is created but GUI does not show loaded project tabs
  6. 'Load Project; --- select new config generates 2 very small popup windows: Transfer learning dropdown menu; weight initialization. Does not launch project.

Relevant log output

Output after creating new project: 
Loading DLC 3.0.0rc9...
Traceback (most recent call last):
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\tabs\create_project.py", line 503, in finalize_project
    cfg: dict = auxiliaryfunctions.read_config(config)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\utils\auxiliaryfunctions.py", line 209, in read_config
    cfg = ruamelFile.load(f)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\main.py", line 454, in load
    return constructor.get_single_data()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\constructor.py", line 117, in get_single_data
    node = self.composer.get_single_node()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 77, in get_single_node
    document = self.compose_document()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 100, in compose_document
    node = self.compose_node(None, None)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 144, in compose_node
    node = self.compose_mapping_node(anchor)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 227, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 111, in compose_node
    if self.parser.check_event(AliasEvent):
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\parser.py", line 141, in check_event
    self.current_event = self.state()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\parser.py", line 631, in parse_block_mapping_value
    if self.scanner.check_token(ValueToken):
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 1737, in check_token
    self._gather_comments()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 1777, in _gather_comments
    self.fetch_more_tokens()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 278, in fetch_more_tokens
    return self.fetch_value()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 628, in fetch_value
    raise ScannerError(
ruamel.yaml.scanner.ScannerError: mapping values are not allowed here
  in "C:\Users\FellerK\Desktop\LySc-Kate-2026-04-16\config.yaml", line 20, column 37
INFO:console:Project "C:\Users\FellerK\Desktop\LySc-Kate-2026-04-16" already exists!
Traceback (most recent call last):
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\tabs\create_project.py", line 503, in finalize_project
    cfg: dict = auxiliaryfunctions.read_config(config)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\utils\auxiliaryfunctions.py", line 209, in read_config
    cfg = ruamelFile.load(f)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\main.py", line 454, in load
    return constructor.get_single_data()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\constructor.py", line 117, in get_single_data
    node = self.composer.get_single_node()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 77, in get_single_node
    document = self.compose_document()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 100, in compose_document
    node = self.compose_node(None, None)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 144, in compose_node
    node = self.compose_mapping_node(anchor)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 227, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 111, in compose_node
    if self.parser.check_event(AliasEvent):
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\parser.py", line 141, in check_event
    self.current_event = self.state()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\parser.py", line 631, in parse_block_mapping_value
    if self.scanner.check_token(ValueToken):
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 1737, in check_token
    self._gather_comments()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 1777, in _gather_comments
    self.fetch_more_tokens()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 278, in fetch_more_tokens
    return self.fetch_value()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 628, in fetch_value
    raise ScannerError(
ruamel.yaml.scanner.ScannerError: mapping values are not allowed here
  in "C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\config.yaml", line 20, column 37
INFO:console:Created "C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos"
INFO:console:Created "C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\labeled-data"
INFO:console:Created "C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\training-datasets"
INFO:console:Created "C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\dlc-models"
INFO:console:Attempting to create a symbolic link of the video ...
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike1-rec2-avi.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike1-rec2-avi.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike10-rec11-Wstim.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike10-rec11-Wstim.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike2-rec3-avi.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike2-rec3-avi.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike3-rec4-avi.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike3-rec4-avi.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike4-rec5-avi.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike4-rec5-avi.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike5-rec6-avi.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike5-rec6-avi.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike6-rec7-airstim.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike6-rec7-airstim.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike7-rec8-airstim.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike7-rec8-airstim.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike8-1-rec9-Wstim.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike8-1-rec9-Wstim.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike8-2-rec9-Wstim.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike8-2-rec9-Wstim.avi
INFO:console:Created the symlink of D:\Kate-OEPS\Open Ephys\2026-04-16_13-09-29-LiSc-Strikes\Record Node 106\DLC tracks\LiSc-strike9-rec10-Astim.avi to C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike9-rec10-Astim.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike1-rec2-avi.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike10-rec11-Wstim.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike2-rec3-avi.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike3-rec4-avi.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike4-rec5-avi.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike5-rec6-avi.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike6-rec7-airstim.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike7-rec8-airstim.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike8-1-rec9-Wstim.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike8-2-rec9-Wstim.avi
INFO:console:C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\videos\LiSc-strike9-rec10-Astim.avi
INFO:console:Generated "C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\config.yaml"
INFO:console:
A new project with name LySc2-Kate-2026-04-16 is created at C:\Users\FellerK\Desktop and a configurable file (config.yaml) is stored there. Change the parameters in this file to adapt to your project's needs.
 Once you have changed the configuration file, use the function 'extract_frames' to select frames for labeling.
. [OPTIONAL] Use the function 'add_new_videos' to add new videos to your project (at any stage).


Output after trying to load project just created: 
Traceback (most recent call last):
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\window.py", line 567, in _open_project
    self._update_project_state(
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\window.py", line 538, in _update_project_state
    self.add_tabs()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\window.py", line 620, in add_tabs
    self.create_training_dataset = CreateTrainingDataset(
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\tabs\create_training_dataset.py", line 60, in __init__
    self._generate_layout_attributes(self.layout_attributes)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\tabs\create_training_dataset.py", line 134, in _generate_layout_attributes
    self.update_nets(self.root.engine)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\tabs\create_training_dataset.py", line 484, in update_nets
    default_net = self.root.cfg.get("default_net_type", "resnet_50")
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\gui\window.py", line 177, in cfg
    cfg = auxiliaryfunctions.read_config(self.config)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\deeplabcut\utils\auxiliaryfunctions.py", line 209, in read_config
    cfg = ruamelFile.load(f)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\main.py", line 454, in load
    return constructor.get_single_data()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\constructor.py", line 117, in get_single_data
    node = self.composer.get_single_node()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 77, in get_single_node
    document = self.compose_document()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 100, in compose_document
    node = self.compose_node(None, None)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 144, in compose_node
    node = self.compose_mapping_node(anchor)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 227, in compose_mapping_node
    item_value = self.compose_node(node, item_key)
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\composer.py", line 111, in compose_node
    if self.parser.check_event(AliasEvent):
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\parser.py", line 141, in check_event
    self.current_event = self.state()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\parser.py", line 631, in parse_block_mapping_value
    if self.scanner.check_token(ValueToken):
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 1737, in check_token
    self._gather_comments()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 1777, in _gather_comments
    self.fetch_more_tokens()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 278, in fetch_more_tokens
    return self.fetch_value()
  File "C:\Users\FellerK\AppData\Local\miniconda3\envs\DEEPLABCUT\lib\site-packages\ruamel\yaml\scanner.py", line 628, in fetch_value
    raise ScannerError(
ruamel.yaml.scanner.ScannerError: mapping values are not allowed here
  in "C:\Users\FellerK\Desktop\LySc2-Kate-2026-04-16\config.yaml", line 20, column 37

Anything else?

Image

Code of Conduct

Metadata

Metadata

Assignees

Labels

GUIissues relating to GUIbugSomething isn't workingconfigRelated to config.yaml, ruamel, YAML parsing, ...

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions