Skip to content

Instantly share code, notes, and snippets.

@bsamadi
Created December 16, 2019 04:08
Show Gist options
  • Save bsamadi/62ee62cefdf7aac695de0aa6654f3cda to your computer and use it in GitHub Desktop.
Save bsamadi/62ee62cefdf7aac695de0aa6654f3cda to your computer and use it in GitHub Desktop.
ODrive error on Windows #01
c:\Users\username\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts>odrivetool
Could not init terminal features.
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
c:\Users\nubon\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\Scripts\odrivetool in <module>
13 os.path.realpath(__file__))),
14 "Firmware", "fibre", "python"))
---> 15 import fibre.discovery
16 from fibre import Logger, Event
17 import odrive
~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\fibre\__init__.py in <module>
1
----> 2 from .discovery import find_any, find_all
3 from .utils import Event, Logger, TimeoutError
4 from .protocol import ChannelBrokenException, ChannelDamagedException
5 from .shell import launch_shell
~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\fibre\discovery.py in <module>
113 def find_any(path="usb", serial_number=None,
114 search_cancellation_token=None, channel_termination_token=None,
--> 115 timeout=None, logger=Logger(verbose=False)):
116 """
117 Blocks until the first matching Fibre node is connected and then returns that node
~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\fibre\utils.py in __init__(self, verbose)
159 self._print_lock = threading.Lock()
160 if platform.system() == 'Windows':
--> 161 self._stdout_buf = win32console.GetStdHandle(win32console.STD_OUTPUT_HANDLE)
162
163 def indent(self, prefix=' '):
NameError: name 'win32console' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment