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

pip install --no-binary :all: rlp #147

Open
vrypan opened this issue Oct 22, 2023 · 0 comments
Open

pip install --no-binary :all: rlp #147

vrypan opened this issue Oct 22, 2023 · 0 comments
Labels

Comments

@vrypan
Copy link
Contributor

vrypan commented Oct 22, 2023

What happened?

The command pip install --no-binary :all: rlp fails with error.

Code that produced the error

pip install --no-binary :all: rlp
Collecting rlp
  Using cached rlp-3.0.0.tar.gz (40 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [38 lines of output]
      long_description_markdown_filename: dist = <setuptools.dist.Distribution object at 0x103f75c50>; attr = 'long_description_markdown_filename'; value = 'README.md'
      Traceback (most recent call last):
        File "/Users/vrypan/Downloads/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/vrypan/Downloads/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/vrypan/Downloads/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 396, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 44, in <module>
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 147, in setup
          _setup_distribution = dist = klass(attrs)
                                       ^^^^^^^^^^^^
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 303, in __init__
          _Distribution.__init__(self, dist_attrs)
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 283, in __init__
          self.finalize_options()
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 680, in finalize_options
          ep(self)
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 700, in _finalize_setup_keywords
          ep.load()(self, ep.name, value)
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/normal/lib/python3.11/site-packages/setuptools_markdown.py", line 38, in long_description_markdown_filename
          frame = _get_code_object()
                  ^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/1x/s5qfp7sn3rj5qmx_nkz1nx9m0000gn/T/pip-build-env-g80p3wct/normal/lib/python3.11/site-packages/setuptools_markdown.py", line 58, in _get_code_object
          code = frame.f_back.f_code
                 ^^^^^^^^^^^^^^^^^^^
      AttributeError: 'NoneType' object has no attribute 'f_code'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Full error output

No response

Fill this section in if you know how this could or should be fixed

I think that the problem is actually in the README.md file:

Between "Snake" and "Charmers" there is a 0x0A (LF) character instead of 0x20 (SPACE).

#146 May fix the problem.

rlp Version

No response

Python Version

3.11.6

Operating System

osx

Output from pip freeze

No response

@vrypan vrypan added the bug label Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant