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
Hey All -- I'M Fairly New To This But, As Of Today, My Required Packages Aren'T Being Recognized In Cloned Runs And They Are Repeatedly Failing. Has Anyone Had Similar Issues/Found A Fix?

Hey all -- I'm fairly new to this but, as of today, my required packages aren't being recognized in cloned runs and they are repeatedly failing. Has anyone had similar issues/found a fix?

  
  
Posted 2 years ago
Votes Newest

Answers 24


Not that I know of, and nothing would have changed since yesterday but I'm asking the person who set up the computer if he's got any ideas. Maybe the best option is just fully uninstall everything and start again? this makes me feel a little better that I'm not just doing something really stupid!

  
  
Posted 2 years ago

AgitatedDove14 Sort of -- I've been running my script from VSCode for the first time, then cloning the run and tweaking hyperparameters in the ClearML UI. The initial run (from VSCode) runs fine, but on the cloned run, I get a ModuleNotFoundError: no module named 'clearml.' The only package that it auto-recognizes is Cython, so the agent fails when building the new venv to run the cloned experiment.

  
  
Posted 2 years ago

-- I've been running my script from VSCode for the first time,

In the initial Task (the one created when running inside VSCode) do you have all the packages listed in the "Installed Packages" section ?

  
  
Posted 2 years ago

This is what I've got, I don't think it's an order issue. Thanks for taking the time to help with such a low level thing -- really appreciate it.

  
  
Posted 2 years ago

Python 3.10.4, Windows 10 Education version 21H2, OS Build 19044.2006, clearml 1.7.1

  
  
Posted 2 years ago

actually the issue is that the packages are not being detected 😞
what happens if you do the following?
Task.add_requirements("tensorflow") task = Task.init(...)

  
  
Posted 2 years ago

What's the Windows version, python version, clearml version, you are using ?

  
  
Posted 2 years ago

Just tried -- when written in the format from clearml import Task
Task.add_requirements("tensorflow")
task = Task.init(...) I get " WARNING - Requirement ignored, Task.add_requirements() must be called before Task.init()"

  
  
Posted 2 years ago

Am I correct that you can only specify a requirements.txt file when calling Task.init from the CLI, not within code as I'm doing?

  
  
Posted 2 years ago

Actually, there is one other warning: clearml.Task - WARNING - Failed auto-detecting task repository: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\\me\\<stdin>'

  
  
Posted 2 years ago

Yep, that's exactly how it's written in my code

  
  
Posted 2 years ago

Not sure why, but for some reason it seems it is failing to analyze the code, hence the warning and no packages...
Any other hints on your setup that might help to better understand the root cause ? maybe home folder with unicode characters ? python installed in a specific way?

  
  
Posted 2 years ago

Are you running a jupyter notebook inside vscode ?

  
  
Posted 2 years ago

I get the same exact thing:

  
  
Posted 2 years ago

Turn it off and on ?! 😊

  
  
Posted 2 years ago

No it's just a .py file running through the interactive window. I get the same result in the console

  
  
Posted 2 years ago

Hi BoredSquirrel45

as of today, my required packages aren't being recognized in cloned

Are you saying you are editing the code directly in the cloned Task, then enqueue the Task an the agent does not "auto recognize" the package ?

  
  
Posted 2 years ago

haha will do! thanks again!

  
  
Posted 2 years ago

Notice the order here:
Task.add_requirements("tensorflow") task = Task.init(...)

  
  
Posted 2 years ago

Yeah, I call Task.init(project_name = "XXX", task_name = "XXX") and that works fine for creating runs, it's just an issue of being able to run cloned runs

  
  
Posted 2 years ago

No -- that section is blank,

This is the main issue, it should be filled with the requirement being auto detected.
The entire script was executed from within vscode, and the Task was created but it was not prefilled with anything ?
Just making sure, you called Task.init inside your code ?

  
  
Posted 2 years ago

Could it be there is a Task.init being called Before this code snippet ?

  
  
Posted 2 years ago

No -- that section is blank, e.g. the image below. As of yesterday it was populated with all dependencies

  
  
Posted 2 years ago

create a new file, copy paste to the new file these lines, and run it inside vscode, what are you getting in the console?

from clearml import Task Task.add_requirements("tensorflow") task = Task.init(project_name="debug", task_name="requirements") print("done")

  
  
Posted 2 years ago
1K Views
24 Answers
2 years ago
one year ago
Tags