Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

Problem of running "economic_simulation_basic.ipynb" colab #84

Open
kochiuyu opened this issue Mar 14, 2023 · 1 comment
Open

Problem of running "economic_simulation_basic.ipynb" colab #84

kochiuyu opened this issue Mar 14, 2023 · 1 comment

Comments

@kochiuyu
Copy link

kochiuyu commented Mar 14, 2023

I am trying to run the file in the colab. However, it doesn't seem to work:

When I tried to run the following:

import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
from IPython import display
from utils import plotting # plotting utilities for visualizing env. state

Only error result:

RuntimeError Traceback (most recent call last)
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe


ImportError Traceback (most recent call last)
in
1 import numpy as np
----> 2 get_ipython().run_line_magic('matplotlib', 'inline')
3 import matplotlib.pyplot as plt
4 from IPython import display
5 from utils import plotting # plotting utilities for visualizing env. state

8 frames
/usr/local/lib/python3.9/dist-packages/matplotlib/init.py in _check_versions()
190 # Quickfix to ensure Microsoft Visual C++ redistributable
191 # DLLs are loaded before importing kiwisolver
--> 192 from . import ft2font
193
194 for modname, minver in [

ImportError: numpy.core.multiarray failed to import


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

https://colab.research.google.com/github/salesforce/ai-economist/blob/master/tutorials/economic_simulation_basic.ipynb#scrollTo=w4ROkAd60Gve&line=1&uniqifier=1

Is there anyone facing the same problem or just me?

@kylestahl
Copy link

I am facing the same issue.

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

No branches or pull requests

2 participants