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
Hi, Trying To Spin Up A Clearml Agent And Gettting This Error:

Hi, trying to spin up a clearml agent and gettting this error:
ERROR: Could not find a version that satisfies the requirement pywin32==303 (from -r /tmp/cached-reqsnj14ni7v.txt (line 22)) (from versions: none) ERROR: No matching distribution found for pywin32==303 (from -r /tmp/cached-reqsnj14ni7v.txt (line 22))pywin32 isnt in my requirements file, but it is installed in my environment probably as a dependancy of something else. I run on windows

  
  
Posted 2 years ago
Votes Newest

Answers 14


ohh, could it be a 32bit version of python ?

  
  
Posted 2 years ago

is there a way to explicitly make it some install certain packages, or at least stick to the requirements.txt file rather than the actual environment

  
  
Posted 2 years ago

pywin32 isnt in my requirements file,

CloudySwallow27 whats the OS/env ?
(pywin32 is not in the direct requirements of the agent)

  
  
Posted 2 years ago

Windows 10 python 3.8 virtualenv

  
  
Posted 2 years ago

no 64 bit. but do you mean the PC where I am spinning the task up or the machine where I am running the task

  
  
Posted 2 years ago

yall thought of everything. this fixed it! Having another issue now, but will post seperately

  
  
Posted 2 years ago

So the agent installed okay. It's the specific Task that the agent is failing to create the environment for, correct?
if this is the case, what do you have in the "Installed Packages" section of the Task (see under the Execution tab)

  
  
Posted 2 years ago

the latter is an ec2 instance

and the agent fails to install on the ec2 machine ?

  
  
Posted 2 years ago

In the installed packages section it includes

pywin32 == 303

even though that is not in my requirements.txt.

So for some reason it is being detected (meaning your code base actually imports it in code)
But you can just remove it, either by manually editing the cloned Task (right click, reset, then you can edit the section), or via code
Task.ignore_requirements("pywin32") task = Task.init(...)

  
  
Posted 2 years ago

and pip install clearml-agent fails?

  
  
Posted 2 years ago

yes. i think the problem is that its trying to recreate the environment the task was spun up on - which was on a windows machine - on a linux ec2 instance

  
  
Posted 2 years ago

or at least stick to the requirements.txt file rather than the actual environment

You can also for it to log the requirements.txt with
Task.force_requirements_env_freeze(requirements_file="requirements.txt") task = Task.init(...)

  
  
Posted 2 years ago

the latter is an ec2 instance

  
  
Posted 2 years ago

yes, on my windows machine I am running:
cloned_task = Task.clone(source_task=base_task, name="Auto generated cloned task") Task.enqueue(cloned_task.id, queue_name='test_queue')I see the task successfully start in the clearml server. In the installed packages section it includes pywin32 == 303 even though that is not in my requirements.txt.

In the results --> console section, I see the agent is running and trying to install all packages, but then stops at pywin32. Some lines from that output below:
2022-03-24 11:27:25 task 1c810a6a9b6d42af93c7ffa1a188b08a pulled from 683574f13506440f91b5284107380943 by worker ip-172-31-40-218:0 2022-03-24 11:27:30 Current configuration (clearml_agent v1.1.2, location: /tmp/.clearml_agent.af2pyy2q.cfg): ... Successfully installed pip-20.1.1 ... ERROR: Could not find a version that satisfies the requirement pywin32==303 (from -r /tmp/cached-reqsnj14ni7v.txt (line 22)) (from versions: none) ERROR: No matching distribution found for pywin32==303 (from -r /tmp/cached-reqsnj14ni7v.txt (line 22)) clearml_agent: ERROR: Could not install task requirements!

  
  
Posted 2 years ago
913 Views
14 Answers
2 years ago
one year ago
Tags