Hello Friends:
On bpython3 version 0.12 and 0.13, when I launch it with the "-i" option to import modules first, there is a problem.
Here is a running, annotated dialogue of the issue.
prompt$ cat /path/to/bpython-PythonStartup.py
import sklearn.<anyModule> # Any module from the SciKit-Learn package triggers this issue. Maybe other packages, too.
prompt$
prompt$ # No issue with python2
prompt$ bpython -i /path/to/bpython-PythonStartup.py
>>> <cr>
>>> <cr>
>>> quit()
prompt$
prompt$ # Issue with python3: As soon as I press anything at the ">>>" prompt, I get hundreds of the following two warnings repeated.
prompt$ bpython3 -i /path/to/bpython-PythonStartup.py
>>> <cr>
/home/user/.local/lib/python3.3/site-packages/bpython/importcompletion.py:122:
DeprecationWarning: imp.get_suffixes() is deprecated; use the constants defined on importlib.machinery instead
if not any(name.endswith(suffix[0]) for suffix in imp.get_suffixes()):
/home/user/.local/lib/python3.3/site-packages/bpython/importcompletion.py:130:
DeprecationWarning: imp.get_suffixes() is deprecated; use the constants defined on importlib.machinery instead
for suffix in imp.get_suffixes():
[ ... both lines are repeated hundreds of times, then stops ... ]
>>>
>>> quit()
[ ... And again here: Upon exit, as the error buffer is emptied, both lines are repeated hundreds of times, then stops ... ]
prompt$
This may not be exclusive to the scikit learn (sklearn) package modules. I just happened be using them when I ran into this.
Any ideas?
Thank you in advance! =:)
NMV