Subclassing `CommandLineOption` is deprecated.
See original GitHub issueI have gotten this warning when I was running Sacred on a Jupyter notebook. I use dev version due to Incense library. Could you show me how to improve the code?
UserWarning: Subclassing
CommandLineOptionis deprecated. Please use thesacred.cli_optiondecorator and pass the function to the Experiment constructor. "SubclassingCommandLineOptionis deprecated. Please "
pip install git+https://github.com/IDSIA/sacred.git
pip install incense
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
python - How to warn about class (name) deprecation
Subclassing of a deprecated class should raise a warning; Support isinstance and issubclass checks. Solution. This can be achieved with a custom ...
Read more >Deprecations and Removals — pytest documentation
Below is a complete list of all pytest features which are considered deprecated. Using those features will issue PytestWarning or subclasses, ...
Read more >Parser (Apache Commons CLI 1.3.1 API)
Deprecated. Parse the arguments according to the specified options and properties. Parameters: options - the specified Options: arguments - the command line ...
Read more >optparse — Parser for command line options — Python 3.11.1 ...
Deprecated since version 3.2: The optparse module is deprecated and will not be developed further; development will continue with the argparse module.
Read more >[DEPRECATION] Moving away from html5lib to html.parser
I tried --use-deprecated=html5lib, did not work. Getting an error for this: pip3 install --no-cache --upgrade pip setuptools wheel. Specifying ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The current warning is because we use a deprecated API inside sacred. We’re modernising it and afterwards that warning should disappear. So you don’t need to do anything at the moment. I’ll update you when all the usages of
CommandLineOptionhas been revoved.If you are suclassing this class yourself, please see https://sacred.readthedocs.io/en/latest/command_line.html#custom-flags to update your code.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.