Git Product home page Git Product logo

Comments (6)

VolcanomanSamUEA avatar VolcanomanSamUEA commented on May 30, 2024 1

Changing my numpy version to 1.23 fixed the AttributeError: module 'numpy' has no attribute 'bool'.

Thank you!

from quakemigrate.

TomWinder avatar TomWinder commented on May 30, 2024

Thanks for posting Sam. Please will you also check what numpy version you are running? (Should be possible with conda list and then search for the numpy line).

from quakemigrate.

VolcanomanSamUEA avatar VolcanomanSamUEA commented on May 30, 2024

Thanks for posting Sam. Please will you also check what numpy version you are running? (Should be possible with conda list and then search for the numpy line).

Added above (Numpy v 1.24.2)

from quakemigrate.

TomWinder avatar TomWinder commented on May 30, 2024

Ok. The problem is that these aliases (np.bool etc.) expired in numpy v1.24, and we haven't updated them yet (in the master branch). There are three possible solutions:

  1. revert your numpy to 1.23 (conda install numpy=1.23) -- easiest option, and recommended to try first
  2. update np.bool, np.int etc within the quakemigrate scripts yourself as a temporary stop-gap
  3. switch to the feat_WheelBuilding branch, which we are finalising at the moment before pushing to master. This removes all version pins and sorts these kinds of issues. However it is still in testing. Instructions if you do want to pursue this option are below:
conda create -n test_install python=3.9
conda activate test_install
git clone https://www.github.com/QuakeMigrate/QuakeMigrate.git
git checkout -b feat_WheelBuilding origin/feat_WheelBuilding
cd QuakeMigrate
pip install .
# Then make sure you change back up out of the 'QuakeMigrate' directory:
cd ..
python
>>> import quakemigrate
>>> quakemigrate.__version__
'1.0.0.rc2'
# ^ check this is the same!!

from quakemigrate.

TomWinder avatar TomWinder commented on May 30, 2024

(Leaving this as an open issue until this has been dealt with in the master branch.)

from quakemigrate.

TomWinder avatar TomWinder commented on May 30, 2024

Closed with #138

from quakemigrate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.