DTE install fails on missing dependency

Open Beginner friendly
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
desktop

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:

  1. git clone https://github.com/qualcomm/DTE.git
  2. cd DTE
  3. pip install -r requirements.txt
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from qualcomm/DTE

All issues in qualcomm/DTE

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.