-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lmfit fails on python 3.6 #605
Comments
The above is caused by literal python@2 strings not valid for python@3 representation in the uncertainties package, removing ur will fix this issue and expose the next import lmfit
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.6/site-packages/lmfit/__init__.py", line 39, in <module>
from .confidence import conf_interval, conf_interval2d
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.6/site-packages/lmfit/confidence.py", line 10, in <module>
from .minimizer import MinimizerException
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.6/site-packages/lmfit/minimizer.py", line 34, in <module>
import uncertainties
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.6/site-packages/uncertainties/__init__.py", line 224, in <module>
from .core import *
File "/Applications/Slicer.app/Contents/lib/Python/lib/python3.6/site-packages/uncertainties/core.py", line 985, in <module>
ord(sup): normal for (normal, sup) in TO_SUPERSCRIPT.iteritems()}
AttributeError: 'dict' object has no attribute 'iteritems' Again this is a python@2 code, changing |
@BishopWolf if you look closely at the Traceback you'll see that both issues are actually in the |
Reported here |
Python2 lines create a conflict making them cause errors in python3. Refer to [this issue](lmfit/lmfit-py#605) for a complete description
This pr will solve the issue |
The problem is that So the real solution is to fix the install. Normally |
For reference: version 3.1.4 of |
@lebigot thanks for the update. We dropped support for Python 2 in December. It may be reassuring to people stuck with Python 2 and lmfit 0.9.15 that they will be able to install with I would encourage |
Python 3.6 from Slicer3D package
while importing lmfit
The text was updated successfully, but these errors were encountered: