cornell-cup / cs-minibot

[WIP] Software platform for MiniBot, an educational robotics kit made for Da Vinci Labs.
http://cornellcuprobotics.com/projects.html#minibot
Apache License 2.0
5 stars 1 forks source link

Added UserScript to Fix Missing Module #84

Closed chynu closed 7 years ago

chynu commented 7 years ago

Running minibot/main.py on develop caused this error:

Traceback (most recent call last):
  File "main.py", line 20, in <module>
    US = importlib.import_module('minibot.scripts.UserScript')
  File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'minibot.scripts.UserScript'

This is because there was no UserScript.py file in minibot/scripts. Fixed.