Spyder 4.0 version conflict with lmfit

300 views
Skip to first unread message

Feschiessl Schiessl

unread,
Sep 15, 2015, 6:02:27 AM9/15/15
to lmfit-py
Hi,

I get the following error when using Spyder 2.3.6 with IPython 4.0.0 and Python 2.7. I installed lmfit with "pip install lmfit".
Is it a known issue?

Cheers
Ferdi

in <module>
    from lmfit import minimize, Parameters, Model, printfuncs, conf_interval

  File "/Users/xxx/anaconda/lib/python2.7/site-packages/lmfit/__init__.py", line 49, in <module>
    from .ui import Fitter

  File "/Users/xxx/anaconda/lib/python2.7/site-packages/lmfit/ui/__init__.py", line 37, in <module>
    from .ipy_fitter import NotebookFitter

  File "/Users/xxx/anaconda/lib/python2.7/site-packages/lmfit/ui/ipy_fitter.py", line 23, in <module>
    from IPython.html.widgets import Dropdown

ImportError: cannot import name Dropdow

Matt Newville

unread,
Sep 15, 2015, 9:58:42 AM9/15/15
to Feschiessl Schiessl, lmfit-py
Hi,

On Tue, Sep 15, 2015 at 5:02 AM, Feschiessl Schiessl <ferdinan...@gmail.com> wrote:
Hi,

I get the following error when using Spyder 2.3.6 with IPython 4.0.0 and Python 2.7. I installed lmfit with "pip install lmfit".
Is it a known issue?


Yes, it is a known issue.   The IPython widgets used by lmfit were moved out of the main IPython package for IPython 4.0, and are now in the 'ipywidgets' package.   Apparently, the IPython folks did this on purpose, without deprecation warnings, and believe that an easily suppressed Warning is sufficient for users to understand what they broke.  Experience like yours suggests otherwise.

Doing  'pip install ipywidgets'  should remedy the suffering inflicted by IPython 4.

--Matt

Feschiessl Schiessl

unread,
Sep 17, 2015, 5:05:45 AM9/17/15
to lmfit-py
Hi again,

Thanks. It worked...

Ferdinand
Reply all
Reply to author
Forward
0 new messages