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

Cannot pip install pdoc3 #147

Closed
1081 opened this issue Jan 15, 2020 · 4 comments
Closed

Cannot pip install pdoc3 #147

1081 opened this issue Jan 15, 2020 · 4 comments
Labels
invalid This is not a (valid) bug report

Comments

@1081
Copy link

1081 commented Jan 15, 2020

Actual Behavior

I get this error message in windows 10 during pip install:

File "c:\XXX\venv\lib\site-packages\setuptools\command\easy_install.py", line 673, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('setuptools_scm')
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Steps to Reproduce

  1. cmd: pip install pdoc3
  2. --> Error message

Additional info

  • windows 10
  • python 3.8.1 and 3.74
  • pdoc version: 0.7.2
@kernc
Copy link
Member

kernc commented Jan 15, 2020

Pdoc3 installation requires setuptools-scm package:

pip install setuptools_scm

Please install this first; or what does it error with?

@1081
Copy link
Author

1081 commented Jan 15, 2020

Thank you! I had to install setuptools-scm and setuptools-git first. Are these packages not included in the requirements?

@kernc
Copy link
Member

kernc commented Jan 15, 2020

Sure they are.

pdoc/setup.py

Lines 52 to 55 in 72bd982

setup_requires=[
'setuptools_git',
'setuptools_scm',
],

For some reason your environment (outdated setuptools or pip?) didn't obtain/pick them up properly.

That easy_install is worrisome. As the error says, check the logs for full command output? Do explain if you figure it out. 👍

@kernc kernc closed this as completed Jan 15, 2020
@kernc kernc added the invalid This is not a (valid) bug report label Jan 15, 2020
@kernc
Copy link
Member

kernc commented Jan 15, 2020

Maybe related: pypa/setuptools#1320.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This is not a (valid) bug report
Development

No branches or pull requests

2 participants