Skip to content
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

numpy.core.multiarray fails to import with current setup instructions #26

Open
aldeka opened this issue Jan 20, 2022 · 0 comments
Open

Comments

@aldeka
Copy link

aldeka commented Jan 20, 2022

(Feel free to ignore, this isn't a blocking issue for me anymore)

I was following the setup instructions for Puzzlord on my local dev machine. The rest of the steps worked normally, but when I did python manage.py migrate for the first time I got:

<cut for length>
  File "/Users/aldeka/Code/puzzlord/puzzle_editing/urls.py", line 7, in <module>
    from . import views
  File "/Users/aldeka/Code/puzzlord/puzzle_editing/views.py", line 34, in <module>
    from puzzle_editing.graph import curr_puzzle_graph_b64
  File "/Users/aldeka/Code/puzzlord/puzzle_editing/graph.py", line 7, in <module>
    import matplotlib
  File "/Users/aldeka/Code/puzzlord/venv/lib/python3.9/site-packages/matplotlib/__init__.py", line 174, in <module>
    _check_versions()
  File "/Users/aldeka/Code/puzzlord/venv/lib/python3.9/site-packages/matplotlib/__init__.py", line 159, in _check_versions
    from . import ft2font
ImportError: numpy.core.multiarray failed to import
(venv) aldeka@agaetis puzzlord %

I tried manually installing pip3 install numpy but it said it was already there: Requirement already satisfied: numpy in ./venv/lib/python3.9/site-packages (1.19.1)

This is on an Intel-based Mac running Big Sur (11.6.2) with pip version 21.3.1 and Python 3.9.9.

After googling a bit I found someone recommended running pip install -U numpy instead. This upgraded to numpy-1.22.1. The migrations worked thereafter and I was able to start the django server.

I don't know why that solved the problem, but I guess maybe the requirements.txt needs updating? I wouldn't want to break it for others though, if that's a risk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant