pythonmodularmojolang

Mojo: "Error: An error occurred in Python."


I am trying out Mojo by Modular and more specifically having a look at the Mandelbrot.ipynb available here. When running the line np = Python.import_module("numpy") I get the rather odd error Error: An error occurred in Python.. I have had a look around and only found this open issue. Has anyone experienced the same issue previously and reached a solution? Thanks in advance!


Solution

  • try to make sure you have numpy installed, or check the compatibility of mojo with your python version and Review the code in the Mandelbrot.ipynb notebook aware. Make sure there are no syntax errors or logical problems in your code that could cause the error.