DeprecationWarning for python 3.8 ( from louie 2.0 )
A DeprecationWarning from louie 2.0 about collections
import appears when exiting BLISS.
(bliss) pcsht:~ % bliss --no-tmux
__ __ __
|__) | | /__` /__`
|__) |__ | .__/ .__/
Welcome to BLISS version 0.3.0-595-g2b18df44 running on pcsht (in bliss Conda environment)
Copyright (c) 2015-2019 Beamline Control Unit, ESRF
-
Connected to Beacon server on pcsht (port /tmp/beacon_q6iwhk_c.sock)
Done.
BLISS [1]:
/opt/bliss/conda/miniconda/envs/bliss/lib/python3.7/site-packages/louie/saferef.py:133:
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from
'collections.abc' is deprecated, and in 3.8 it will stop working
if isinstance(function, collections.Callable):
(bliss) pcsht:~ %
BLISS [5]: louie.version.VERSION
Out [5]: '2.0'
In [1]: import collections
In [2]: dir(collections)
Out[2]:
['ChainMap',
'Counter',
'OrderedDict',
'UserDict',
'UserList',
'UserString',
...,
'abc',
'defaultdict',
'deque',
'namedtuple']
]
In [3]: collections.Callable
/opt/bliss/conda/miniconda/envs/bliss/bin/ipython:1: DeprecationWarning:
Using or importing the ABCs from 'collections' instead of from 'collections.abc'
is deprecated, and in 3.8 it will stop working
#!/opt/bliss/conda/miniconda/envs/bliss/bin/python
Out[3]: collections.abc.Callable
In [4]: dir(collections)
Out[4]:
['Callable', <-------------------
'ChainMap',
'Counter',
'OrderedDict',
'UserDict',
'UserList',
'UserString',
...
this seems ok ? :
In [4]: collections.abc.Callable
Out[4]: collections.abc.Callable
fix ?
/opt/bliss/conda/miniconda/envs/bliss/lib/python3.7/site-packages/louie/saferef.py
line 133
- if isinstance(function, collections.Callable):
+ if isinstance(function, collections.abc.Callable):