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 All, I'M New With Clearml And I Have A Question. I Have A Modular Code, And When I'M Trying To Run It In A Remote Machine With The Agent, I Get An Error On The Line 'From X Import Y', Which Says That There Isn'T Such Module X. Any Help? Thanks.

Hi all, I'm new with clearml and I have a question. I have a modular code, and when I'm trying to run it in a remote machine with the agent, I get an error on the line
'from X import Y', which says that there isn't such module X. any help? thanks.

  
  
Posted 3 years ago
Votes Newest

Answers 30


and: " clearml_agent: ERROR: 'charmap' codec can't encode character '\u0303' in position 5717: character maps to <undefined> "

  
  
Posted 3 years ago

User/pass should be enough,
Could it be the specific commit ID is not pushed?

  
  
Posted 3 years ago

and I would like to run it on the colab as well(it has the same error)

  
  
Posted 3 years ago

yes, and I was running it without problems when I wasn't use git repo

  
  
Posted 3 years ago

when I try to run it with the agent

When you try to run what, exactly?

  
  
Posted 3 years ago

AgitatedDove14 this is not a package but a sibling script file

  
  
Posted 3 years ago

Yes, I'm running on windows directly

  
  
Posted 3 years ago

and: " clearml_agent: ERROR: 'charmap' codec can't encode character '\u0303' in position 5717: character maps to <undefined> "

Ohh that's the issue with the LC_ALL missing in the docker itself (i.e unicode code character will break it)
Add locals into the container, in your clearml.conf add the following
agent.extra_docker_shell_script: ["apt-get install -y locales",]Let me know if that solves the issue (as you pointed, it has nothing to do with importing package X)

  
  
Posted 3 years ago

I think BroadMole64 is running it directly on Windows?

  
  
Posted 3 years ago

What python version are you using to run the agent?

  
  
Posted 3 years ago

3.8.1

  
  
Posted 3 years ago

the same code that I talked about but this time from a git repo. I init the task, clone it in the UI and ran it using "clearml-agent daemon --queue default".

  
  
Posted 3 years ago

I can't see what is the problem

  
  
Posted 3 years ago

I was running the agent from windows

  
  
Posted 3 years ago

venv

  
  
Posted 3 years ago

The errors you've sent seem related to the agent failing to locate the python version in the machine where it's running, and are not related to the use of a git reporisotry

  
  
Posted 3 years ago

Do you have python3 on the machine where you're running the agent?

  
  
Posted 3 years ago

after creating the virtual environment

  
  
Posted 3 years ago

Hi BroadMole64

'from X import Y', which says that there isn't such module X. any help? thanks.

can you see package X under the "Execution" tab "Installed Packages" section ?
(think of this section as requirements.txt section, in order for the agent to install the package on the remote machine it should have it listed there)

  
  
Posted 3 years ago

Yes, it is pushed, but there is some other data which I'm NOT using so I didn't create dataset of it, should I? I Also opened a new project and cloned the giltab repo and init a new task, running again the agent from the new repo, and same error

  
  
Posted 3 years ago

The issue now is different, I can't run experiemnt throught the git repo with the agent because of the above errors

  
  
Posted 3 years ago

from the teraminal in pycharm

  
  
Posted 3 years ago

By default the agent will add the root of the git repository into the pythonpath , so that you can import...

  
  
Posted 3 years ago

What OS are you running the agent in?

  
  
Posted 3 years ago

https://stackoverflow.com/questions/5419/python-unicode-and-the-windows-console
Hmm try to set this one before spinning the agent
Windows
set PYTHONIOENCODING=:replaceInside Colab
os.environ["PYTHONIOENCODING"] = ":replace"

  
  
Posted 3 years ago

what exactly should I change in the conf file except gitlab user and pssword?

  
  
Posted 3 years ago

Creating a dataset sounds like a good idea, but that does not seem to be the issue.
Can you verify you can manually clone using the same link (notice the log should specify the exact clone it is using, with the password replaced with *)

  
  
Posted 3 years ago

And the agent is in docker mode or venv mode?

  
  
Posted 3 years ago

Hi, thanks for the answers, it seems that now I have another issue, the agent can't clone the git(it is a gitlab repo):

  
  
Posted 3 years ago
1K Views
30 Answers
3 years ago
one year ago
Tags