question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remote server repo.query_metrics() raises AttributeError: 'NoneType' object has no attribute 'caches'

See original GitHub issue

🐛 Bug

Repo.query_metrics for an aim server repo raises:

AttributeError: 'NoneType' object has no attribute 'caches'

To reproduce

import aim

# Choose one:
repo_path = "/path/to/aim/repo"      # Good.
repo_path = "aim://localhost:53666"  # Bad.

repo = aim.Repo(repo_path)  # , read_only=True)
query = "run.model.name == 'example-model'"

runs = list(repo.iter_runs())  # This works.
runs = list(repo.query_metrics(query).iter_runs())
runs = list(repo.query_runs(query).iter_runs())

Side note: I’m not sure what the difference between query_metrics and query_runs is.

Expected behavior

No AttributeError.

Environment

  • Aim Version: 3.11.1
  • Python version: 3.8.10
  • pip version: 22.0.4
  • OS: Linux

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mihran113commented, Jul 18, 2022

Hey @YodaEmbedding! Thanks a lot for the report. We’ll provide the fix with aim v3.12.0.

0reactions
gorarakelyancommented, Aug 17, 2022

Closing the issue as the main bug was resolved. @YodaEmbedding could you please submit a separate issue (if it still appears) to track its progress there?

Read more comments on GitHub >

github_iconTop Results From Across the Web

unexpected error - 'NoneType' object has no attribute 'cache ...
I can confirm that 1.1.7 is in our deb repo already. 1
Read more >
AttributeError: 'NoneType' object has no attribute 'find', cache ...
The error was that I didn't have memcached installed in the first place; even though I used this command to install it: pip3...
Read more >
unexpected error - 'NoneType' object has no attribute 'flush ...
Hi, Trying to use DVC on windows, got the error below when trying to track a data file with DVC. Any idea of...
Read more >
Traceback error "AttributeError: 'NoneType' object has no ...
Traceback error "AttributeError: 'NoneType' object has no attribute 'read' " when adding packages to Satellite channel.
Read more >
AttributeError: 'NoneType' object has no attribute 'getReleases'
Hi there, I am currently trying to get my experiment to integrate with our Biopac shock hardware via parallel port. I am running...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found