Git Product home page Git Product logo

Comments (4)

SyllogismRXS avatar SyllogismRXS commented on August 11, 2024

At the end of install-binaries.sh is the line: pip install sphinx-git. Does that not install sphinx-git for you?
(Note: We need to improve our install-binaries.sh script to handle more configurations.)

from scrimmage.

laurathepluralized avatar laurathepluralized commented on August 11, 2024

I thought I had run install-binaries before trying to recompile docs when I got this error, but it's possible it slipped my mind. As a test, I uninstalled sphinx-git via pip and then ran install-binaries.sh again, and I saw pip reinstall sphinx-git. And while sphinx-git was uninstalled, trying to make docs gave me no errors about sphinx_git not being installed.

I'm not sure what was causing that error earlier, then. I'll see if I can replicate (and better document) this issue later this week when I do a clean install of scrimmage on another machine, and I'll update this issue then. Thanks!

from scrimmage.

laurathepluralized avatar laurathepluralized commented on August 11, 2024

I tried again on my other machine, and was careful to make sure that I ran install-binaries.sh before running make docs. I'm getting the same error again, even though pip definitely ran at the end of install-binaries. Here's the output from install-binaries.sh:

$ sudo ./setup/install-binaries.sh
[sudo] password for <my-username>: 
---------------------------------------------------
Detecting Linux operating system variant.
This is Ubuntu. Using dpkg.
Detecting which required packages are not installed.
All dependencies are installed. No further action is required.
The directory '/home/<my-username>/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/<my-username>/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): sphinx-git in /usr/local/lib/python3.5/dist-packages
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python3/dist-packages (from sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): sphinx in /usr/lib/python3/dist-packages (from sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): GitPython>=0.3.6 in /usr/local/lib/python3.5/dist-packages (from sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): Jinja2>=2.3 in /usr/lib/python3/dist-packages (from sphinx->sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): Pygments>=2.0 in /usr/lib/python3/dist-packages (from sphinx->sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): docutils>=0.11 in /usr/lib/python3/dist-packages (from sphinx->sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): babel!=2.0,>=1.3 in /usr/lib/python3/dist-packages (from sphinx->sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): alabaster<0.8,>=0.7 in /usr/lib/python3/dist-packages (from sphinx->sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): sphinx_rtd_theme<2.0,>=0.1 in /usr/lib/python3/dist-packages (from sphinx->sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): gitdb2>=2.0.0 in /usr/local/lib/python3.5/dist-packages (from GitPython>=0.3.6->sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /usr/lib/python3/dist-packages (from Jinja2>=2.3->sphinx->sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): pytz>=0a in /usr/lib/python3/dist-packages (from babel!=2.0,>=1.3->sphinx->sphinx-git)
Requirement already satisfied (use --upgrade to upgrade): smmap2>=2.0.0 in /usr/local/lib/python3.5/dist-packages (from gitdb2>=2.0.0->GitPython>=0.3.6->sphinx-git)
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Am I right in that this indicates that pip is only checking for sphinx-git and its dependencies for python3? I tried running import sphinx_git in both python2.7 and python3, and only python3 found it. Does BUILD_DOCS depend on the python2.7 sphinx_git?

If that's the case, I'm not sure whether the best way to proceed would be to tell pip to install the python2.7 version of sphinx-git (probably the easiest option--just a one-line change in install-binaries.sh) or whether there is a way make docs can be made aware of the python3 option. If you want me to try fixing this and doing a pull request, or if you want me to test anything out, let me know.

Thanks!

from scrimmage.

SyllogismRXS avatar SyllogismRXS commented on August 11, 2024

I added a CMake function that checks for Python modules. If the sphinx_git python module doesn't exist, cmake will warn you now.

from scrimmage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.