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.

Example from getting started in README.md fails

See original GitHub issue

🐛 Bug Report

Running example from the README.md fails with TypeError.

How To Reproduce

Steps to reproduce the behavior:

  1. Create new virtualenv, python3.6, catalyst==21.4.1
  2. Run example from the getting started section in README.md
  3. observe TypeError 😃
Traceback (most recent call last):
  File "main.py", line 45, in <module>
    load_best_on_end=True,
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/runners/runner.py", line 321, in train
    self.run()
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/core/runner.py", line 679, in run
    self._run_event("on_exception")
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/core/runner.py", line 602, in _run_event
    getattr(self, event)(self)
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/core/runner.py", line 594, in on_exception
    raise self.exception
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/core/runner.py", line 676, in run
    self._run_experiment()
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/core/runner.py", line 666, in _run_experiment
    self._run_stage()
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/core/runner.py", line 649, in _run_stage
    self._run_epoch()
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/core/runner.py", line 638, in _run_epoch
    self._run_loader()
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/core/runner.py", line 625, in _run_loader
    self._run_event("on_loader_start")
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/core/runner.py", line 600, in _run_event
    getattr(callback, event)(self)
  File "/home/kamil/envs/intcatalyst/lib/python3.6/site-packages/catalyst/callbacks/misc.py", line 200, in on_loader_start
    desc=f"{runner.stage_epoch_step}/{runner.stage_epoch_len}"
TypeError: __init__() got an unexpected keyword argument 'desc'

Code sample

It was copied from README.md, master branch.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kamil-kaczmarekcommented, May 6, 2021

fixed in #1192

1reaction
Scitatorcommented, Apr 21, 2021

🤔 looks like torch.tqdm somehow depends on just tqdm, good catch! we will return the tqdm dependency in such a case 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Write a Good README File for Your GitHub Project
Before we get started, it is also important to note that when you're writing your project's README, it should be able to answer...
Read more >
fail/README.md at master · mllg/fail
File Abstraction Interface Layer (FAIL) for R, mimicking a key-value store. This package simplifies working with RData files managed in directories.
Read more >
Getting Started With GitHub README.MD | by Luku Geraud
The README.md file is created for your friends, colleagues, future employers and even to use as a reference to your future self.
Read more >
Error Pages
You can create custom error pages to display to your users if they try, for example, to access a broken link. Found under...
Read more >
Professional README Guide | The Full-Stack Blog
If you're new to Markdown, refer to the GitHub guide on mastering markdown or search the internet for Markdown tutorials. For a great...
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