OS: Windows 10
Python Version: 3.11.2
Steps to reproduce:
1. Download and unzip Python_Firmware_Upgrader-5_20_07_01.zip.
2. Follow Installation instructions in release_Notes_Example_Python_Firmware_Upgrader.html
Observed Behaviour:
Installation fails at the python distribute step. Errors generated:
c:\distribute-0.7.3>python setup.py install
Traceback (most recent call last):
File "c:\distribute-0.7.3\setup.py", line 8, in <module>
import setuptools
File "c:\distribute-0.7.3\setuptools\__init__.py", line 2, in <module>
from setuptools.extension import Extension, Library
File "c:\distribute-0.7.3\setuptools\extension.py", line 5, in <module>
from setuptools.dist import _get_unpatched
File "c:\distribute-0.7.3\setuptools\dist.py", line 7, in <module>
from setuptools.command.install import install
File "c:\distribute-0.7.3\setuptools\command\__init__.py", line 8, in <module>
from setuptools.command import install_scripts
File "c:\distribute-0.7.3\setuptools\command\install_scripts.py", line 3, in <module>
from pkg_resources import Distribution, PathMetadata, ensure_directory
File "c:\distribute-0.7.3\pkg_resources.py", line 1518, in <module>
register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
c:\distribute-0.7.3>
Additional information: I tried to skip past the distribute step and I was able to successfully install pwinusb. However, when I then attempt to run the gui with the recommended command, "set PYTHONPATH=.\python-msp430-tools& python TargetGUI.py", I get the following error:
c:\Python_Firmware_Upgrader>set PYTHONPATH=.\python-msp430-tools& python TargetGUI.py
File "c:\Python_Firmware_Upgrader\TargetGUI.py", line 125
self.logger.addHandler(self.myHandler)
TabError: inconsistent use of tabs and spaces in indentation
c:\Python_Firmware_Upgrader>
Expected behaviour: Installation completes.
Update: I was able to fix the syntax error in TargetGUI.py by replacing the hard tab at line 125 with enough spaces to line up with the previous line. However, when I ran the command again, I got a different error:
set PYTHONPATH=.\python-msp430-tools& python TargetGUI.py
Traceback (most recent call last):
File "C:\Python_Firmware_Upgrader\TargetGUI.py", line 45, in <module>
import tkMessageBox
ModuleNotFoundError: No module named 'tkMessageBox'
C:\Python_Firmware_Upgrader>
So, still no joy.
Update 2: I tried the command-line method as well and got back the following errors:
C:\Python_Firmware_Upgrader>set PYTHONPATH=.\python-msp430-tools& python -m msp430.bsl5.hid_1 -e -v -P ./blinky5659.txt
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Python_Firmware_Upgrader\python-msp430-tools\msp430\bsl5\hid_1.py", line 11, in <module>
import ttk
ModuleNotFoundError: No module named 'ttk'
C:\Python_Firmware_Upgrader>