You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying out the new Sockeye-3.0.4 and I'm getting the following error
Traceback (most recent call last):
File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.0.4/bin/sockeye-train", line 8, in <module>
sys.exit(main())
File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.0.4/lib/python3.8/site-packages/sockeye/train_pt.py", line 848, in main
train(args)
File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.0.4/lib/python3.8/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 3
return f(*args, **kwargs)
File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.0.4/lib/python3.8/site-packages/sockeye/train_pt.py", line 1039, in train
trainer = training_pt.PyTorchEarlyStoppingTrainer(
File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.0.4/lib/python3.8/site-packages/sockeye/training_pt.py", line 174, in __init__
self._tflogger = TensorboardLogger(logdir=os.path.join(self.config.output_dir, C.TENSORBOARD_NAME))
File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.0.4/lib/python3.8/site-packages/sockeye/training_pt.py", line 779, in __init__
from torch.utils.tensorboard import SummaryWriter
File "/gpfs/projects/DT/mtp/WMT20/opt/miniconda3/envs/sockeye-3.0.4/lib/python3.8/site-packages/torch/utils/tensorboard/__init__.py", line 4, in <module>
LooseVersion = distutils.version.LooseVersion
AttributeError: module 'distutils' has no attribute 'version'
distutils is from setuptools and my installed versionis setuptools=59.6.0=py38h578d9bd_0
I guess my first question would be which version of setuptools should I install?
I've installed Sockeye in a conda environment with the following export (conda env export)
Solution for now:
I downgraded setuptools to setuptools=58.0.4=py38h06a4308_0 doing conda install -c anaconda setuptools.
SamuelLarkin
changed the title
AttributeError: module 'distutils' has no attribute 'version'
Sockeye-3.0.4: AttributeError: module 'distutils' has no attribute 'version'
Dec 16, 2021
Hi,
I'm trying out the new Sockeye-3.0.4 and I'm getting the following error
distutils
is fromsetuptools
and my installed versionissetuptools=59.6.0=py38h578d9bd_0
I guess my first question would be which version of
setuptools
should I install?I've installed Sockeye in a conda environment with the following export (
conda env export
)The text was updated successfully, but these errors were encountered: