lpython icon indicating copy to clipboard operation
lpython copied to clipboard

? from foo import * not working ?

Open rebcabin opened this issue 1 year ago • 1 comments

└─(19:12:01 on brian-vector-back-end ✹ ✭)──> cat > i2463.py                                                                             ──(Tue,Jan30)─┘
from numpy import *

def main():
    pass
(ch_emulation) ┌─(~/tmp/copperhead-save/benchmarks/matmul/ISSUES)───────────────────────────────────────────────────────────────────────────(brian@MacBook-Pro:s000)─┐
└─(19:12:46 on brian-vector-back-end ✹ ✭)──> lpython i2463.py                                                                           ──(Tue,Jan30)─┘
semantic error: The symbol '*' not found in the module 'numpy'
 --> i2463.py:1:19
  |
1 | from numpy import *
  |                   ^ 


Note: Please report unclear or confusing messages as bugs at
https://github.com/lcompilers/lpython/issues.

rebcabin avatar Jan 31 '24 03:01 rebcabin

I think it might work for user modules, but not for numpy.

certik avatar Jan 31 '24 03:01 certik