Error when installing dolfinx on Colab

Hello,
I’m running the usual line to install dolfinx on a Colab notebook:

try:
    import dolfinx
except ImportError:
    !wget "https://fem-on-colab.github.io/releases/fenicsx-install-real.sh" -O "/tmp/fenicsx-install.sh" && bash "/tmp/fenicsx-install.sh"
    import dolfinx

and getting the following error:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-8cc2a7230184> in <module>
      1 try:
----> 2     import dolfinx
      3 except ImportError:

ModuleNotFoundError: No module named 'dolfinx'

During handling of the above exception, another exception occurred:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-8cc2a7230184> in <module>
      3 except ImportError:
      4     get_ipython().system('wget "https://fem-on-colab.github.io/releases/fenicsx-install-real.sh" -O "/tmp/fenicsx-install.sh" && bash "/tmp/fenicsx-install.sh"')
----> 5     import dolfinx

ModuleNotFoundError: No module named 'dolfinx'

---------------------------------------------------------------------------

Is there an open issue about this?

Thanks!

Probably due to this:

1 Like

Thanks for your answer

All FEM on Colab packages have been updated to python 3.8. End users can now go back to running their installation cells as usual, without any required change.
Please report any issue at Issues · fem-on-colab/fem-on-colab · GitHub

2 Likes