Skip to content

[Ubuntu] Can't install dependencies #18006

@ag-tafe

Description

@ag-tafe

Bug Report

python -m pip install -e .

causes an exception TomlDecodeError("Key name found without value."

To Reproduce

python -m pip install -r test-requirements.txt     # no errors

python -m pip install -e .
ERROR: Exception:
Traceback (most recent call last):
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 357, in run
    resolver.resolve(requirement_set)
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/legacy_resolve.py", line 265, in _get_abstract_dist_for
    return self.preparer.prepare_editable_requirement(req)
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 554, in prepare_editable_requirement
    abstract_dist = _get_prepared_distribution(
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(finder, build_isolation)
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 33, in prepare_distribution_metadata
    self.req.load_pyproject_toml()
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 512, in load_pyproject_toml
    pyproject_toml_data = load_pyproject_toml(
  File "/home/alex/Studying/20111332/mypy/venv/lib/python3.8/site-packages/pip/_internal/pyproject.py", line 75, in load_pyproject_toml
    pp_toml = toml.load(f)
  File "/usr/share/python-wheels/toml-0.10.0-py2.py3-none-any.whl/toml/decoder.py", line 134, in load
    return loads(f.read(), _dict, decoder)
  File "/usr/share/python-wheels/toml-0.10.0-py2.py3-none-any.whl/toml/decoder.py", line 186, in loads
    raise TomlDecodeError("Key name found without value."
toml.decoder.TomlDecodeError: Key name found without value. Reached end of line. (line 133 column 2 char 4066)

Expected Behavior
Dependencies are installed.

Actual Behavior
Exception raised (see above).

Your Environment

  • Mypy version used: Mypy 1.12
  • Mypy command-line flags:
  • Mypy configuration options from mypy.ini (and other config files):
  • Python version used: Python 3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrong

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions