man-group / man-group/pytest-plugins

Small issue with pypandoc and common_setup (hit while installing pytest-profiling)

Open
#87 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
597
Forks
89
PR merge metrics
No merged PRs in 30d

Description

If the `pypandoc` module is installed but `pandoc` is not then `import pypandoc` will succeed but the `pypandoc` module will not have a `convert` attribute when imported, leading to an `AttributeError` being raised, which `common_setup` does not currently catch.

The workaround for us is to install `pandoc` before doing our `pip` installs so that the `convert` attribute exists when it needs to.

It would be nice if `common_setup` could catch the `AttributeError`, so that the installation order wouldn't matter.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the common_setup installation path and reproduce the case where pypandoc imports successfully but lacks its convert attribute because pandoc is absent. Trace the resulting AttributeError and verify that the installation no longer depends on pandoc being installed first.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.