Can import random, but can't call randint
Posted: Mon Jun 01, 2020 1:22 am
Hitting a weird issue. I can import the random module, but if I call any method, it fails. Two examples below. There's no file called random.py on my local system or my board. All other modules working fine so far. Stumped, anyone see something like this as well?
File name: test.py
print(random.randint(1, 10)) returns
print(random.__file__) returns
File name: test.py
print(random.randint(1, 10)) returns
Code: Select all
nAttributeError: \'module\' object has no attribute \'randint\'\r\n')
Code: Select all
ampy.pyboard.PyboardError: ('exception', b'', b'Traceback (most recent call last):\r\n File "<stdin>", line 3, in <module>\r\nAttributeError: \'module\' object has no attribute \'__file__\'\r\n')