Skip to content
This repository was archived by the owner on Jul 1, 2021. It is now read-only.
This repository was archived by the owner on Jul 1, 2021. It is now read-only.

UnboundLocalError: local variable 'cfg' referenced before assignment #21

Description

@RobertoEnrique

Hi all,

I am having this issue when I attempt "dlc.extract_frames(config_path, crop = True"
I am using Visual Studio Code as a text editor instead of ATOM, could this be the source of the problem? It seems to be in the config.yaml and I even tried it using an old config file that used to work

Activity

  1. KonradDanielewski commented on May 20, 2021

    @KonradDanielewski

    It's an error connected to improper formatting of the project path or an error in project path in config.yaml

    Can you share a path to your project and a screenshot of the config.yaml (top part with the project path)?

  2. RobertoEnrique commented on May 20, 2021

    @RobertoEnrique
    Author

    Yes. What I do to get to the project is:

    config_path = '/home/dubouelab/Roberto/Aggression-Videos-2021-02-04/Side_Videos/Resident-Intruder-Assay-Roberto-2021-02-06'

    Here are 2 screenshots of the path and the error it is throwing:

    20210520_110850
    20210520_111003

  3. KonradDanielewski commented on May 21, 2021

    @KonradDanielewski

    Please post screenshot of your config.yaml file. This part:
    image

  4. RobertoEnrique commented on May 21, 2021

    @RobertoEnrique
    Author

    Ok, here it is:
    20210521_093415

  5. KonradDanielewski commented on May 21, 2021

    @KonradDanielewski

    The config_path variable is different than your project_path. I assume you moved the project and the project_path variable needs to be updated in the config.

  6. RobertoEnrique commented on May 21, 2021

    @RobertoEnrique
    Author

    That solved it... wow, what a silly mistake! I'm still new to all this. But thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions