mojo
mojo copied to clipboard
[BUG]: Issue on creating numpy N-dimensional array
Bug description
Can't create multi dimensional numpy array, creating single dimension numpy array works well.
Steps to reproduce
- Include relevant code snippet or link to code that did not work as expected.
from python import Python
let np = Python.import_module("numpy")
let np_array = np.array([[1, 2, 3], [4, 5, 6]], np.int32)
- If applicable, add screenshots to help explain the problem.
Same behaviour both on playground and VSCode. It throws "call expansion failed - no concrete specializations" and "expression failed to parse (no further compiler diagnostics)".
- If using the Playground, name the pre-existing notebook that failed and the steps that led to failure.
- Include anything else that might help us debug the issue.
System information
- What OS did you do install Mojo on ?
macOS Sonoma 14.0
- Provide version information for Mojo by pasting the output of `mojo -v`
mojo 0.4.0 (9e33b013)
- Provide Modular CLI version by pasting the output of `modular -v`
modular 0.2.1 (5144fffe)