Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hello. I Am Using Hydra As Configuration Manager And I Am Using A Decorator To Specify The File And The Folder It Is Contained In (Typical Hydra Syntax). The Code Now Runs Into This Error That Says, "Primary Config Directory Not Found. Set The Environment

Hello. I am using hydra as configuration manager and I am using a decorator to specify the file and the folder it is contained in (typical hydra syntax). The code now runs into this error that says, "Primary config directory not found.
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace."

I have used @hydra.main(version_base="1.3", config_path="configs", config_name="predict").
Configs folder is under the same directory as the script and has predict.yaml file inside it.

The "OmegaConf" tab under Configuration in the UI also shows all the configuration inside the yaml file, but the console for some reason shows that the primary config directory is not found.

  
  
Posted 2 months ago
Votes Newest

Answers 4


Following up on this @<1523701070390366208:profile|CostlyOstrich36> @<1523701435869433856:profile|SmugDolphin23>

  
  
Posted 2 months ago

Hi @<1715175986749771776:profile|FuzzySeaanemone21> , can you provide a log of the run? Also some code snippet that reproduces this behavior on your side?

  
  
Posted 2 months ago

Hi @<1523701070390366208:profile|CostlyOstrich36> @<1523701435869433856:profile|SmugDolphin23> . I have used these lines in my script:

task = Task.init(project_name="prediction", task_name="local")
task.set_repo(repo=" None ", branch="main")
task.execute_remotely(queue_name="default", exit_process=True)

It installs all the dependencies using Poetry from .toml file in the repository, but fails to find the config file after that. This is what the error log looks like:

"""
Writing lock file

Installing the current project: project_unet (0.0.1)
Could not freeze installed packages
Running task id [1b83e9263ddf4f13a856c7052fab68b5]:
[.]$ poetry run python -u "C:\Users\HP.clearml\venvs-builds\3.10\task_repository\project_unet.git\predict.py"
No freeze information available
Environment setup completed successfully

Starting Task Execution:

Primary config directory not found.

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

Leaving process id 23458
DONE: Running task '1b83e9263ddf4f13a856c7052fab68b5', exit status 1
"""

  
  
Posted 2 months ago

Hi @<1715175986749771776:profile|FuzzySeaanemone21> ! Are you running this remotely? If so, you should work inside a repository such that the agent can clone the repository which should include the config as well. Otherwise, the script will run as a "standalone"

  
  
Posted 2 months ago
276 Views
4 Answers
2 months ago
2 months ago
Tags