DTE install fails on missing dependency
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start with requirements.txt and the import chain from run.py through controller.py to non_hlos_parser.py, where fs imports pkg_resources. Reproduce the Windows installation with Python 3.12, then verify the dependency adjustment allows run.py to launch the GUI without the pkg_resources failure.
Written by the indexing model from the issue text.
Description
Describe the bug
When installing DTE on Windows run.py fails due to pkg_resources not being included in fs 2.4.16 which results in run.py failing.
Upon running run.py:
PS C:\Users\jpettit\DTE\DTE> python3 run.py
C:\Users\jpettit\DTE\DTE\non_hlos_parser.py:22: SyntaxWarning: invalid escape sequence '\d'
name_regex="([a-z,A-Z]+_(dtb|DTB|dtbs|config)).(((b|B)\d+)|mdt|MDT|bin|mbn|elf){1}"
Traceback (most recent call last):
File "C:\Users\jpettit\DTE\DTE\run.py", line 21, in
import controller
File "C:\Users\jpettit\DTE\DTE\controller.py", line 69, in
import non_hlos_parser
File "C:\Users\jpettit\DTE\DTE\non_hlos_parser.py", line 11, in
from fs import open_fs
File "C:\Users\jpettit\AppData\Local\Programs\Python\Python312\Lib\site-packages\fs_init_.py", line 4, in
import("pkg_resources").declare_namespace(name) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Debugged issue with Claude
The issue: fs==2.4.16 requires pkg_resources (from setuptools), but despite setuptools being installed,
pkg_resources isn't importable. This is a known Python 3.12 issue with broken setuptools installs. The fix is to
force-reinstall setuptools
setuptools 71+ no longer bundles pkg_resources as a standalone top-level module, but fs==2.4.16
still depends on it. The fix is to downgrade setuptools to a version that includes pkg_resources
Root cause: fs==2.4.16 calls pkg_resources.declare_namespace() in its init.py. pkg_resources was historically
bundled with setuptools, but setuptools 71+ no longer ships it as a standalone top-level module.
Workaround: Downgraded setuptools to 70.3.0, which still includes pkg_resources in site-packages.
To Reproduce
Steps to reproduce the behavior:
- git clone https://github.com/qualcomm/DTE.git
- cd DTE
- pip install -r requirements.txt
- python3 run.py
Expected behavior
Expected behavior is that GUI application would launch
Desktop (please complete the following information):
- OS: Windows
Smartphone (please complete the following information):
- N/A
- Dominant language
- Python
- Stars
- 1
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qualcomm/DTE
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100