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

Nototools installation fails on Windows 11 #795

Open
oomek opened this issue May 25, 2023 · 1 comment
Open

Nototools installation fails on Windows 11 #795

oomek opened this issue May 25, 2023 · 1 comment

Comments

@oomek
Copy link

oomek commented May 25, 2023

Here is the error log:

D:\Downloads\nototools>pip install -e .
Obtaining file:///D:/Downloads/nototools
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      c:\apps\tools\python\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "D:\Downloads\nototools\setup.py", line 11, in <module>
          setup(
        File "c:\apps\tools\python\Lib\site-packages\setuptools\__init__.py", line 87, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "c:\apps\tools\python\Lib\site-packages\setuptools\_distutils\core.py", line 147, in setup
          _setup_distribution = dist = klass(attrs)
                                       ^^^^^^^^^^^^
        File "c:\apps\tools\python\Lib\site-packages\setuptools\dist.py", line 476, in __init__
          _Distribution.__init__(
        File "c:\apps\tools\python\Lib\site-packages\setuptools\_distutils\dist.py", line 282, in __init__
          self.finalize_options()
        File "c:\apps\tools\python\Lib\site-packages\setuptools\dist.py", line 900, in finalize_options
          ep(self)
        File "c:\apps\tools\python\Lib\site-packages\setuptools\dist.py", line 920, in _finalize_setup_keywords
          ep.load()(self, ep.name, value)
        File "d:\downloads\nototools\.eggs\setuptools_scm-7.1.0-py3.11.egg\setuptools_scm\integration.py", line 91, in version_keyword
          _assign_version(dist, config)
        File "d:\downloads\nototools\.eggs\setuptools_scm-7.1.0-py3.11.egg\setuptools_scm\integration.py", line 63, in _assign_version
          _version_missing(config)
        File "d:\downloads\nototools\.eggs\setuptools_scm-7.1.0-py3.11.egg\setuptools_scm\__init__.py", line 108, in _version_missing
          raise LookupError(
      LookupError: setuptools-scm was unable to detect version for D:\Downloads\nototools.

      Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

      For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
      [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.

Python 3.11.3

@HyegeunCho
Copy link

In my case, this command worked without any errors.

pip install "git+https://github.com/notofonts/nototools.git"

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

No branches or pull requests

2 participants