-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error message when reading an artifact from github-catalog #1479
Comments
Hi @yoavkatz , catalogs = list(Catalogs())
for catalog in catalogs:
if self.artifact_linked_to in catalog:
needed_catalog = catalog This returns the last matching catalog. For some reason, the check whether the needed url is in the catalog, for the internet catalog, returns OK for the catalog of 1.16.0 and not OK for 1.15.10. So for 1.15.10 the code does not continue to expect input from the internet catalog, whereas for 1.16.0, it does. However the code that loads the expected artifact is only tailored for local file system: def load_json(path):
with open(path) as f:
try:
return json.load(f) So I did two things: |
The problem in reading from github still exists: github_catalog = GithubCatalog()
path = github_catalog.path("cards.cola[task=tasks.classification.multi_class[metrics=[metrics.accuracy]]")
artifact = Artifact.load(path=path)
print(artifact.__id__)
# assert employed overwrites
print(artifact.task) Throws a similar exception: trying to fetch an artifact from github as if github were a file system. |
This code fails on 1.16.0 and above, and works on 1.15.9.
This is the error:
It seems the code tries load an artifact from a remote catalog as a local file.
Probably relates to
The text was updated successfully, but these errors were encountered: