Skip to content

Can't install control in Travis-CI #37

Description

@kdavies4

I have a package that depends on control but I have trouble testing it in Travis-CI due to the following error when running pip install control:

ImportError: Unable to import git_revision. Try removing control/version.py and the build directory before building.

The full log is here: https://travis-ci.org/kdavies4/ModelicaRes/jobs/35359894.

Do you know how to fix this? It seems that control.version can't be imported until the control package is installed, which requires control.version. A catch-22?

Activity

  1. changed the title [-]Can't install `control` in Travis-CI[/-] [+]Can't install control in Travis-CI[/+] on Sep 15, 2014
  2. murrayrm commented on Sep 16, 2014

    @murrayrm
    Member

    Interesting. @jgoppert: Any ideas?

  3. kdavies4 commented on Sep 16, 2014

    @kdavies4
    Author

    One more piece of info that may provide a clue: it worked at least as late as July 22 with the same Travis-CI configuration. It looks like control's setup file was updated to use control.version on Aug. 11 (commit 1f1aad4).

  4. jgoppert commented on Sep 16, 2014

    @jgoppert
    Contributor

    I've confirmed this with my own travis setup and am looking into it. version.py is borrowed from numpy and they also distribute it in their tarball, so it isn't immediately clear what is wrong.

  5. added a commit that references this issue on Sep 16, 2014
    38d5c95
  6. cwrowley commented on Apr 6, 2015

    @cwrowley
    Contributor

    This seems to work now that 0.7.0 is up on PyPI. Note that you can now install slycot with conda too, as follows:

    conda config --add channels http://conda.binstar.org/cwrowley
    conda install slycot
    conda install control
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions