man-group / man-group/pytest-plugins
Small issue with pypandoc and common_setup (hit while installing pytest-profiling)
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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