Skip to content

docs do not build on py3.7 due to small change in python handling of -m #11838

@tacaswell

Description

@tacaswell

The issue is that the units examples (https://github.com/matplotlib/matplotlib/tree/master/examples/units) import from a local module that provides the unit classes and handlers. However, it turns out that this was working coincidentally due to a sorta-nasty bug where if you start python via python -m some_module (which is how sphinx gets launched internally) '' is put in the path, which ends up not getting expanded so the cwd is always in the path (see https://bugs.python.org/issue33053 and https://docs.python.org/3/whatsnew/3.7.html#other-language-changes).

This means the docs do not build cleanly any more 😞 .

If you run the examples from the cli they work correctly. If you explicitly add the cwd back into the path they also build fine.

Not sure what the best solution here is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy