aspiers / git-deps

git commit dependency analysis tool
GNU General Public License v2.0
297 stars 46 forks source link

Error while trying to install via pip: "AttributeError: module 'pypandoc' has no attribute 'convert'" #112

Closed toabctl closed 2 years ago

toabctl commented 2 years ago

Hey Adam,

I tried to install via pip on Ubuntu 22.04. Steps to reproduce:

$ virtualenv git-deps
created virtual environment CPython3.10.4.final.0-64 in 175ms
  creator CPython3Posix(dest=/home/tom/tmp/git-deps, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/tom/.local/share/virtualenv)
    added seed packages: pip==22.0.2, setuptools==59.6.0, wheel==0.37.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator$ source git-deps/bin/activate
(git-deps) tom@melisse:~/tmp$ pip install git-deps
Collecting git-deps
  Using cached git-deps-1.1.0.zip (8.1 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [34 lines of output]
      /home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'author-email' will not be supported in future versions. Please use the underscore name 'author_email' instead
        warnings.warn(
      /home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'home-page' will not be supported in future versions. Please use the underscore name 'home_page' instead
        warnings.warn(
      /home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      /home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      /home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      /home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-4t6d1r2n/git-deps_d8090bf996dc4261b3cb3647746f13d6/setup.py", line 30, in <module>
          setup_package()
        File "/tmp/pip-install-4t6d1r2n/git-deps_d8090bf996dc4261b3cb3647746f13d6/setup.py", line 18, in setup_package
          setup(
        File "/home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/usr/lib/python3.10/distutils/core.py", line 108, in setup
          _setup_distribution = dist = klass(attrs)
        File "/home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/dist.py", line 459, in __init__
          _Distribution.__init__(
        File "/usr/lib/python3.10/distutils/dist.py", line 292, in __init__
          self.finalize_options()
        File "/home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/dist.py", line 837, in finalize_options
          ep(self)
        File "/home/tom/tmp/git-deps/lib/python3.10/site-packages/setuptools/dist.py", line 858, in _finalize_setup_keywords
          ep.load()(self, ep.name, value)
        File "/tmp/pip-install-4t6d1r2n/git-deps_d8090bf996dc4261b3cb3647746f13d6/.eggs/setuptools_markdown-0.4.1-py3.10.egg/setuptools_markdown.py", line 43, in long_description_markdown_filename
          output = pypandoc.convert(markdown_filename, 'rst', format='md')
      AttributeError: module 'pypandoc' has no attribute 'convert'
      [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.