Skip to content

Commit 59c07f0

Browse files
committed
fix python3.8
1 parent 8d1cb89 commit 59c07f0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

autosklearn/automl.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,12 @@ def fit(
370370
# Produce debug information to the logfile
371371
self._logger.debug('Starting to print environment information')
372372
self._logger.debug(' Python version: %s', sys.version.split('\n'))
373-
self._logger.debug(' Distribution: %s', platform.dist())
373+
try:
374+
self._logger.debug(' Distribution: %s', platform.linux_distribution())
375+
except AttributeError:
376+
# platform.linux_distribution() was removed in Python3.8
377+
# We should move to the distro package as soon as it supports Windows and OSX
378+
pass
374379
self._logger.debug(' System: %s', platform.system())
375380
self._logger.debug(' Machine: %s', platform.machine())
376381
self._logger.debug(' Platform: %s', platform.platform())

0 commit comments

Comments
 (0)