-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Closed
Copy link
Description
🐛 Bug
It seems like parts of PL are using deprecated parts of PL. I'm seeing the following DeprecationWarning in CI:
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pytorch_lightning/utilities/argparse.py:345: in insert_env_defaults
return fn(self, **kwargs)
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pytorch_lightning/trainer/trainer.py:488: in __init__
self._callback_connector.on_trainer_init(
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/callback_connector.py:89: in on_trainer_init
self.trainer.callbacks.extend(_configure_external_callbacks())
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pytorch_lightning/trainer/connectors/callback_connector.py:262: in _configure_external_callbacks
factories = entry_points().get("pytorch_lightning.callbacks_factory", ())
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = {'array_api': [EntryPoint(name='numpy', value='numpy.array_api', group='array_api')], 'console_scripts': [EntryPoint(n...ame='projector', value='tensorboard.plugins.projector.projector_plugin:ProjectorPlugin', group='tensorboard_plugins')]}
name = 'pytorch_lightning.callbacks_factory', default = ()
def get(self, name, default=None):
> self._warn()
E DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/importlib/metadata/__init__.py:430: DeprecationWarning
To Reproduce
Should be able to reproduce by testing any Trainer with pytest. I'm not even using callbacks:
Trainer(fast_dev_run=True, log_every_n_steps=1, max_epochs=1) Expected behavior
I would not expect to see a DeprecationWarning.
Environment
- Lightning Component: Trainer
- PyTorch Lightning Version: 1.7.0
- Lightning App Version: N/A
- PyTorch Version: 1.12.0
- Python version: 3.10
- OS: Linux
- CUDA/cuDNN version: N/A
- GPU models and configuration: N/A
- How you installed PyTorch: pip
- If compiling from source, the output of
torch.__config__.show(): N/A - Running environment of LightningApp: CI
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working