View Single Post
Old 01-30-2023, 06:13 AM   #3
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
I already add the `--` argument but pip won't add it.

Here is a command to reproduce the error: "calibre-debug -e /usr/lib/python3.10/site-packages/pip/__pip-runner__.py -- install -t temp sudachidict-core"

and here is the error message:
Code:
Collecting sudachidict-core
  Using cached SudachiDict-core-20230110.tar.gz (9.0 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 2
  ╰─> [24 lines of output]
      Usage: calibre-debug [options]

      Various command line interfaces useful for debugging calibre. With no options,
      this command starts an embedded Python interpreter. You can also run the main
      calibre GUI, the calibre E-book viewer and the calibre editor in debug mode.

      It also contains interfaces to various bits of calibre that do not have
      dedicated command line tools, such as font subsetting, the E-book diff tool and so
      on.

      You can also use calibre-debug to run standalone scripts. To do that use it like this:

          calibre-debug -e myscript.py -- --option1 --option2 file1 file2 ...

      Everything after the -- is passed to the script. You can also use calibre-debug
      as a shebang in scripts, like this:

          #!/usr/bin/env -S calibre-debug -e -- --


      Whenever you pass arguments to calibre-debug that have spaces in them, enclose the arguments in quotation marks. For example: "/some path/with spaces"

      calibre-debug: error: no such option: --egg-base
      ['calibre-debug', '-c', '\nexec(compile(\'\'\'\n# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py\n#\n# - It imports setuptools before invoking setup.py, to enable projects that directly\n#   import from `distutils.core` to work with newer packaging standards.\n# - It provides a clear error message when setuptools is not installed.\n# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so\n#   setuptools doesn\'t think the script is `-c`. This avoids the following warning:\n#     manifest_maker: standard file \'-c\' not found".\n# - It generates a shim setup.py, for handling setup.cfg-only projects.\nimport os, sys, tokenize\n\ntry:\n    import setuptools\nexcept ImportError as error:\n    print(\n        "ERROR: Can not execute `setup.py` since setuptools is not available in "\n        "the build environment.",\n        file=sys.stderr,\n    )\n    sys.exit(1)\n\n__file__ = %r\nsys.argv[0] = __file__\n\nif os.path.exists(__file__):\n    filename = __file__\n    with tokenize.open(__file__) as f:\n        setup_py_code = f.read()\nelse:\n    filename = "<auto-generated setuptools caller>"\n    setup_py_code = "from setuptools import setup; setup()"\n\nexec(compile(setup_py_code, filename, "exec"))\n\'\'\' % (\'/private/var/folders/05/x6p94j1j60v7g4jqv7ty70vc0000gn/T/pip-install-wbo8cn49/sudachidict-core_96b2a6d901534e538c891974b5ba2848/setup.py\',), "<pip-setuptools-caller>", "exec"))', 'egg_info', '--egg-base', '/private/var/folders/05/x6p94j1j60v7g4jqv7ty70vc0000gn/T/pip-pip-egg-info-xz1txqv5']
      [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.
xxyzz is offline   Reply With Quote