NiklasRosenstein / pydoc-markdown

Create Python API documentation in Markdown format.
http://niklasrosenstein.github.io/pydoc-markdown/
Other
453 stars 102 forks source link

Install fails processing PyYAML dependency on ubuntu 22.04 in clean virtual environment. #271

Closed RileyRaschke closed 1 year ago

RileyRaschke commented 1 year ago

Environment

Describe the bug

pip install to clean virtualenv fails with PyYAML. This appears to be due to the requirement of PyYAML<6.0

Expected behavior

A clean install.

~/pyyaml_error$ python3 --version                                                                           
Python 3.10.6
~/pyyaml_error$ python3 -mvenv venv                                                                         
~/pyyaml_error$ . ./venv/bin/activate                                                                       
(venv) ~/pyyaml_error$ pip3 install pydoc-markdown                                                          
Collecting pydoc-markdown
  Using cached pydoc_markdown-4.6.3-py3-none-any.whl (64 kB)
Collecting nr.util<1.0.0,>=0.7.5
  Downloading nr.util-0.8.12-py3-none-any.whl (90 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.3/90.3 KB 2.7 MB/s eta 0:00:00
Collecting PyYAML<6.0,>=5.3
  Using cached PyYAML-5.4.1.tar.gz (175 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      /tmp/pip-build-env-8vgtit5y/overlay/lib/python3.10/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      running egg_info
      writing lib3/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib3/PyYAML.egg-info/top_level.txt
      failed to import Cython: /tmp/pip-build-env-8vgtit5y/overlay/lib/python3.10/site-packages/Cython/Compiler/Scanning.cpython-310-x86_64-linux-gnu.so: failed to map segment from shared object
      error: Cython does not appear to be installed
NiklasRosenstein commented 1 year ago

Hello @RileyRaschke ,

This doesn't appear to be an issue specific with Pydoc Markdown. I can't tell you why you're seeing this issue, but your issue is with installing PyYAML.