acme icon indicating copy to clipboard operation
acme copied to clipboard

Quickstart notebook not working in Colab

Open callumtilbury opened this issue 2 years ago • 0 comments
trafficstars

When trying to run the examples/quickstart.ipynb notebook, Colab crashes at the cell with the import statements:

Firstly an error relating to numpy:

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

And then an error which crashes the session:

ImportError                               Traceback (most recent call last)
ImportError: numpy.core.multiarray failed to import

The above exception was the direct cause of the following exception:
SystemError                               Traceback (most recent call last)
SystemError: <built-in function __import__> returned a result with an error set

Regarding the first error: I witnessed this problem elsewhere, and I believe it's a Colab bug. As in interim hack for that issue, I found that simply calling %pip install numpy fixes it. I am not sure if the same can be done here.

As for the second error: I haven't looked into a cause nor solution.

callumtilbury avatar Jan 06 '23 15:01 callumtilbury