I’m having problem importing cyberpi, in the python editor.
this simple code:
import cyberpi
print('hello world')
results in this error message:
Traceback (most recent call last):
File "C:\Users\pnaze\.mcode\virtualFS\projects\default\/hellomakeblock/test.py", line 1, in <module>
import cyberpi
File "C:\Users\pnaze\.mcode\site-packages\cyberpi\__init__.py", line 11, in <module>
get_shield=cyberpi.get_shield
AttributeError: module 'makeblock.modules.cyberpi.api_cyberpi_api' has no attribute 'get_shield'
I’m running mBlock v5.4.0
in the python editor
with python 3.6.5
>>> sys.version
'3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46)
on Windows 10.
Can you please help me resolve this error.
Thanks