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 one year ago
Votes Newest

Answers 24


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 one year 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 one year ago

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

  
  
Posted one year 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 one year 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 one year 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 one year ago

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

  
  
Posted one year 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 one year ago

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

  
  
Posted one year 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 one year 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 one year ago

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 one year ago

Turn it off and on ?! 😊

  
  
Posted one year 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 one year ago

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

  
  
Posted one year ago

haha will do! thanks again!

  
  
Posted one year ago

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

  
  
Posted one year ago

Are you running a jupyter notebook inside vscode ?

  
  
Posted one year 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 one year 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 one year ago

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

  
  
Posted one year ago

I get the same exact thing:

  
  
Posted one year 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 one year ago

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

  
  
Posted one year ago
614 Views
24 Answers
one year ago
one year ago
Tags