Failing to run MOJO examples (Benchmark Package run method missing?)
Hi everyone !
i was able to run Modular on my Ubuntu 22 WSL on Windows. Here i am trying to test the MOJO Example codes (especially the jupyter Notebooks) from https://github.com/modularml/mojo.git
But in every Notebook, something goes wrong :
in HelloMojo.pynb :
error: Expression [5]:24:17: keyword arguments are not supported yet
z = pow(exp=3, base=2) (attached photo 1)
in Mandelbrot.ipynb:
error: Expression [31]:33:31: package 'benchmark' does not contain 'run'
let vectorized = benchmark.runbench[simd_width].mean"ms"
Did i install an old version ? Do i have to wait and if so, why is it example code, when it doesnt run ?
i appreciate any help.
thank you
GitHub
GitHub - modularml/mojo: The Mojo Programming Language
The Mojo Programming Language. Contribute to modularml/mojo development by creating an account on GitHub.


3 Replies
Hi @Padjo you need to update Mojo to latest version following this: https://developer.modular.com/download
Modular: AI development starts here
The worlds fastest unified AI execution engine, a new programming language for all of AI and the most cost effective and performant compute platform.
Hi @Jack Clayton .
thank you for your reply. i followed your instruction and it does resolve the issue with the benchmark package. But it doesnt fix the "not supported" issue for keywords. Attached the screenshots


Restart VS Code and run again, Jupyter caches stuff
For the one on the right put it all inside
fn main raises
: