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

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

Open
RobertoEnrique opened this issue May 18, 2021 · 6 comments

Comments

@RobertoEnrique
Copy link

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

@KonradDanielewski
Copy link

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)?

@RobertoEnrique
Copy link
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

@KonradDanielewski
Copy link

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

@RobertoEnrique
Copy link
Author

Ok, here it is:
20210521_093415

@KonradDanielewski
Copy link

KonradDanielewski commented May 21, 2021

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.

@RobertoEnrique
Copy link
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants