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
{{ message }}
Repository navigation
The compat modules should use absolute imports #3975
The statsmodels.compat.collections imports the namesake standard library module without requesting absolute imports. While it seems to work in many cases, it causes a problem to packages that override __import__. See KxSystems/pyq#18.
We did drop it, at least we stopped including python 2.6 in our unit tests.
However, unless we explicitly remove python 2.6 compatible code, statsmodels will still work with python 2.6 for most parts, with maybe just a few exceptions.
(I have no idea right now, given that I haven't even used python 2.7 in a long time.)
Activity
Require absolute imports in the compat.collections module.
josef-pkt commentedon Oct 5, 2017
Our related packages numpy, pandas, scipy have the future import, but not the python compat modules
josef-pkt commentedon Oct 5, 2017
However, AFAICS, both ordereddict and counter are in python 2.7, so the collections compat is not needed anymore.
abalkin commentedon Oct 5, 2017
I looked in setup.py and you seem to still support 2.6. It may be time to drop it given that numpy and scipy did so recently.
josef-pkt commentedon Oct 5, 2017
We did drop it, at least we stopped including python 2.6 in our unit tests.
However, unless we explicitly remove python 2.6 compatible code, statsmodels will still work with python 2.6 for most parts, with maybe just a few exceptions.
(I have no idea right now, given that I haven't even used python 2.7 in a long time.)
Require absolute imports in the compat.collections module.