playframework / playframework/play1

daemon.py can't be loaded

Open
#1,553 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.6k
Forks
671
Avg merge
12d 15h
Merged PRs (30d)
1

Description

Looks like daemon.py is invalid for windows environment in CI.

Installed versions
  Successfully set up CPython (3.14.2)
     [exec] Traceback (most recent call last):
     [exec]   File "D:\a\play1\play1\framework\pym\play\cmdloader.py", line 28, in load_core
     [exec]     mod = load_python_module(module_name, module_path)
     [exec]   File "D:\a\play1\play1\framework\pym\play\cmdloader.py", line 69, in load_python_module
     [exec]     spec.loader.exec_module(mod)
     [exec]     ~~~~~~~~~~~~~~~~~~~~~~~^^^^^
     [exec]   File "<frozen importlib._bootstrap_external>", line 759, in exec_module
     [exec]   File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
     [exec]   File "D:\a\play1\play1\framework\pym\play\commands\daemon.py", line 14, in <module>
     [exec]     import win32pdh, win32pdhutil
     [exec] ModuleNotFoundError: No module named 'win32pdh'
     [exec] ~
     [exec] ~ !! Warning: could not load core command file daemon.py

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.

Research direction

Start with framework/pym/play/commands/daemon.py and the Windows CI run linked in the issue. Inspect the win32pdh and win32pdhutil imports and how daemon.py is loaded by framework/pym/play/cmdloader.py. Done means the daemon command loads successfully on the Windows CI environment without the missing-module warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.