Skip to content
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

Neptune logger: "TypeError: log_text() got an unexpected keyword argument 'step'" #7193

Closed
alessiobonfiglio opened this issue Apr 23, 2021 · 0 comments · Fixed by #7194
Closed
Labels
3rd party Related to a 3rd-party bug Something isn't working help wanted Open to be worked on logger Related to the Loggers

Comments

@alessiobonfiglio
Copy link
Contributor

🐛 Bug

If you want to manually log a text on neptune.ai through its logger invoking

neptune_logger.log_text("name", "value")

you'll end up with this error

/usr/local/lib/python3.7/dist-packages/pytorch_lightning/loggers/neptune.py in log_text(self, log_name, text, step)
    315             step: Step number at which the metrics should be recorded, must be strictly increasing
    316         """
--> 317         self.experiment.log_text(log_name, text, step=step)
    318 
    319     @rank_zero_only

TypeError: log_text() got an unexpected keyword argument 'step'

due to an unwanted keyword argument: step.

How to reproduce

Link to the colab notebook

Expected behavior

The logging goes fine

Proposed fix

Remove the argument "step" in the logger and in its invocation of neptune.experiment.log_text() because it is unwanted, as shown here.

@alessiobonfiglio alessiobonfiglio added bug Something isn't working help wanted Open to be worked on labels Apr 23, 2021
@Borda Borda added 3rd party Related to a 3rd-party logger Related to the Loggers labels Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party Related to a 3rd-party bug Something isn't working help wanted Open to be worked on logger Related to the Loggers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants