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
In My Requirement.Txt File I Have Modules Installed From The Same Repository, I.E., I Have Lines Such As:

In my requirement.txt file I have modules installed from the same repository, i.e., I have lines such as:
-e ../../nomagiclib/algorithmsTask.add_requirements does not handle it (traceback in the thread). Any suggestions?

  
  
Posted 2 years ago
Votes Newest

Answers 5


this is part of repository

  
  
Posted 2 years ago

understood, can you try
Task.add_requirements("-e path/to/folder/")

  
  
Posted 2 years ago

I will try with sys.path.append('../../../../') ` later today and see what happens

  
  
Posted 2 years ago

Task.add_requirements does not handle it (traceback in the thread). Any suggestions?

Hmm that is a good point maybe we should fix that 🙂
I'm assuming someone already created this module? Or is it part of the repository?
(if it than the assume this executed from the git root)

  
  
Posted 2 years ago

traceback:
Traceback (most recent call last): File "/home/marek/nomagic/monomagic/ml/tiresias/calibrate_and_test.py", line 57, in <module> Task.add_requirements('requirements.txt') File "/home/marek/.virtualenvs/tiresias-3.9/lib/python3.9/site-packages/clearml/backend_interface/task/task.py", line 1976, in add_requirements for req in pkg_resources.parse_requirements(requirements_txt): File "/home/marek/.virtualenvs/tiresias-3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3102, in __init__ super(Requirement, self).__init__(requirement_string) File "/home/marek/.virtualenvs/tiresias-3.9/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 104, in __init__ raise InvalidRequirement( pkg_resources.extern.packaging.requirements.InvalidRequirement: Parse error at "'-e ../..'": Expected W:(0-9A-Za-z)

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