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.
Python 3.10.4, Windows 10 Education version 21H2, OS Build 19044.2006, clearml 1.7.1
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>'
Yep, that's exactly how it's written in my code
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 ?
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!
No it's just a .py file running through the interactive window. I get the same result in the console
Notice the order here:Task.add_requirements("tensorflow") task = Task.init(...)
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")
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?
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(...)
Could it be there is a Task.init being called Before this code snippet ?
Are you running a jupyter notebook inside vscode ?
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 ?
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.
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()"
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
No -- that section is blank, e.g. the image below. As of yesterday it was populated with all dependencies
-- 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 ?
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?
What's the Windows version, python version, clearml version, you are using ?