I recently encountered an issue with the current requirements.txt file in the repository, which does not include specific version information for the required packages. This has led to compatibility problems due to recent updates in some packages.
Specifically, the issue arises with the latest version of numpy (2.0.0), which has deprecated certain keywords that are critical for running some scripts in the repository. For example, after setting up the environment using the provided requirements.txt file, I encountered errors when running fwi.py. The error details are as follows:
AttributeError: `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead.
I managed to resolve this issue by downgrading numpy to version 1.25.0. I would like to suggest specifying the versions of the packages in the requirements.txt file to prevent such issues in the future.
Here is the environment configuration generated as environment.yml of conda that worked for me, ensuring tested scripts run smoothly:
Hello,
I recently encountered an issue with the current
requirements.txt
file in the repository, which does not include specific version information for the required packages. This has led to compatibility problems due to recent updates in some packages.Specifically, the issue arises with the latest version of
numpy
(2.0.0), which has deprecated certain keywords that are critical for running some scripts in the repository. For example, after setting up the environment using the providedrequirements.txt
file, I encountered errors when runningfwi.py
. The error details are as follows:I managed to resolve this issue by downgrading
numpy
to version 1.25.0. I would like to suggest specifying the versions of the packages in therequirements.txt
file to prevent such issues in the future.Here is the environment configuration generated as
environment.yml
of conda that worked for me, ensuring tested scripts run smoothly:I am more than delighted to share any further details if needed. Thank you for your attention to this matter.