python / python/mypy

dmypy does not work when it lives in a directory path with spaces

Open
#19,955 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

The directory into which I have cloned mypy has spaces in its path. When I run the tests from a venv therein, every daemon.test test fails. The error message indicates that it can't find the executable, because it has separated on the space (just displaying the pre-space prefix as what it was searching for).

I am on windows in case that matters.

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 by reproducing the failure on Windows with a mypy checkout whose path contains spaces, using the daemon.test tests from a virtual environment. Trace the executable lookup and invocation that produces the truncated pre-space path. Done means the daemon.test tests pass when the checkout and virtual environment paths contain spaces.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.