-
Notifications
You must be signed in to change notification settings - Fork 45
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
ImportError: cannot import name 'dist' from 'matplotlib.mlab' #33
Comments
I am getting the same error with Python 3.6 as well. |
I encounter this too. The issue appears to be that scikit-kinematics 0.8.1 is using functions that have been removed from matplotlib as of matplotlib 3.1.0. Specifically, matplotlib documentation indicates that the function mlab.dist was deprecated in matplotlib 2.2, and it has been removed in matplotlib 3.1.0. The suggestion is to use the numpy function hypot. See https://matplotlib.org/3.1.0/api/api_changes.html for a discussion of this API change. I think the ideal fix is for scikit-kinematics to be updated for compatibility with the current matplotlib version. Absent this, you can set up a custom python environment using an earlier version of matplotlib. As a last resort, you can probably edit the scikit-kinematics offending file (view.py) to use numpy.hypot instead of mlab.dist. I just encountered this problem so I haven't gone through any of the above steps to know if there are similar gotchas. Good luck. |
Should be fixed now. |
Is there any chance of uploading the new version to pip? |
Is this problem fixed? I have encountered the same problem when installing with pip |
Can you please send the explicit error-code? |
here's a solution that manully define it: ESMG/pyroms#18 |
Hi,
I installed scikit-kinematics on my MacOS X system via pip3 (
pip3 install scikit-kinematics
), installation went smoothly, but when I try to import library it throws an error:Any suggestion what can be wrong with my setup?
Thanks in advance.
The text was updated successfully, but these errors were encountered: