Fix for import error due to SciPy update #2
sampr7
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Fix for SciPy Compatibility Issue
(ImportError: trapz)
We've identified a compatibility issue affecting users with recent versions of the
SciPy
library (v1.14 and newer). This update toSciPy
renamed a function used byPyMieScatt
, a core dependency ofAeroMix
, which can cause the following error when you importAeroMix
:To ensure
AeroMix
continues to run smoothly, we have created a patch script that automatically corrects the necessary files in your localPyMieScatt
installation.How to Apply the Fix
Download the Patch Script
You can find the script here: pymiescatt_patch.py
Run the Script
Execute the script using the same Python environment where you have
AeroMix
andSciPy
installed.python pymiescatt_patch.py
The script will automatically locate your
PyMieScatt
package and apply the necessary fix. After running it, yourAeroMix
import should work correctly.If you continue to experience problems after applying the patch, please open a new issue.
Beta Was this translation helpful? Give feedback.
All reactions