Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo for pyproject.toml #94

Merged
merged 1 commit into from
Apr 8, 2021

Conversation

wtdcode
Copy link
Contributor

@wtdcode wtdcode commented Apr 8, 2021

A typo which causes pip install to fail.

$ python3 -m pip install https://github.com/trolldbois/ctypeslib/archive/d59c5d4725ec0d40f134e2bb87b120ea73af88be.zip
Collecting https://github.com/trolldbois/ctypeslib/archive/d59c5d4725ec0d40f134e2bb87b120ea73af88be.zip
  Using cached https://github.com/trolldbois/ctypeslib/archive/d59c5d4725ec0d40f134e2bb87b120ea73af88be.zip
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/pip/_vendor/toml/decoder.py", line 510, in loads
    ret = decoder.load_line(line, currentlevel, multikey,
  File "/usr/local/lib/python3.8/site-packages/pip/_vendor/toml/decoder.py", line 777, in load_line
    value, vtype = self.load_value(pair[1], strictly_valid)
  File "/usr/local/lib/python3.8/site-packages/pip/_vendor/toml/decoder.py", line 905, in load_value
    raise ValueError("This float doesn't have a leading "
ValueError: This float doesn't have a leading digit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 228, in _main
    status = self.run(options, args)
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper
    return func(self, options, args)
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 323, in run
    requirement_set = resolver.resolve(
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 183, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 388, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 340, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 482, in prepare_linked_requirement
    abstract_dist = _get_prepared_distribution(
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/operations/prepare.py", line 91, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(finder, build_isolation)
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/distributions/sdist.py", line 33, in prepare_distribution_metadata
    self.req.load_pyproject_toml()
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 504, in load_pyproject_toml
    pyproject_toml_data = load_pyproject_toml(
  File "/usr/local/lib/python3.8/site-packages/pip/_internal/pyproject.py", line 75, in load_pyproject_toml
    pp_toml = toml.load(f)
  File "/usr/local/lib/python3.8/site-packages/pip/_vendor/toml/decoder.py", line 156, in load
    return loads(f.read(), _dict, decoder)
  File "/usr/local/lib/python3.8/site-packages/pip/_vendor/toml/decoder.py", line 513, in loads
    raise TomlDecodeError(str(err), original, pos)
pip._vendor.toml.decoder.TomlDecodeError: This float doesn't have a leading digit (line 31 column 1 char 499)

@wtdcode wtdcode changed the title Fix typo Fix typo for pyproject.toml Apr 8, 2021
@coveralls
Copy link

Coverage Status

Coverage remained the same at 83.584% when pulling 187171e on wtdcode:fix-pyproject-typo into d59c5d4 on trolldbois:master.

@trolldbois trolldbois merged commit 58b0729 into trolldbois:master Apr 8, 2021
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Jul 15, 2022
https://build.opensuse.org/request/show/989223
by user bnavigator + dimstar_suse
- Avoid install error with updated setuptools
  * gh#trolldbois/ctypeslib#94 (forwarded request 989222 from bnavigator)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants