Git Product home page Git Product logo

continuous-integration's Issues

`ImportError: No module named argparse` in Python2.5 (Travis-CI)

In Travis-CI we run the unit test framework on (amongst other versions) Python 2.5, which we have to install manually via the deadsnakes repo (Note: we ignore Python 2.5 in Appveyor).

But Python 2.5 doesn't have the argparse module in its standard library, which utf.py requires since recently.

In consequence the unit tests fail before they even start (here is a sample Travis job log) with the following exception:

Traceback (most recent call last):
  File "utf.py", line 54, in <module>
    import argparse
ImportError: No module named argparse

The solution is to install argparse via pypi prior to running utf.py.

Caution: when using setup.py, easy_install or pip make sure to use the Python 2.5 versions and to also execute them with Python2.5. (c.f. Kura's gist)

Sync with all SeattleTestbed repos

As I have mentioned earlier .travis.yml and appvoyer.yml are generic for all (or most of the) SeattleTestbed components. Therefor it would be nice to have a central repo, where they can be (a) maintained and (b) cloned from.
While creating this repository took care of (a), (b) seems a little trickier.

Here is what we want/need:

  1. Have a simple command (preferably using git) that adds the CI config files of this repo into any SeattleTestbed component
  2. Be able to simply/automatically pull in changes (preferably using git) that were made to the files into the SeattleTestbed component
  3. Have the files reside at the root of the SeattleTestbed component. Travis and Appvoyer require this to automatically trigger building/testing
  4. Don't have the CI files and changes pollute the git log of the SeattleTestbed component
  5. Don't pull in any other files (e.g. README.md) from this repo

I tried various approaches (with due thanks to our local git expert @SantiagoTorres):

  • git-submodule -- can't do 3.
  • git-subtree -- can't do 2. and 3.
  • git-remote + git-pull --squash -- can't really do 2. and it get's more complicated with 5.
  • google's git-repo -- Might help but looks like cracking a nut with a sledgehammer
  • wget -- can't do 2.

Python 2.6.9 on OS X fails because of missing `argparse`

This is really not a pressing issue, but I wonder why the same Travis config worked a bit ago, but now fails and complains about missing the argparse module now:

$ $PythonBin utf.py -a;
Traceback (most recent call last):
  File "utf.py", line 54, in <module>
    import argparse
ImportError: No module named argparse

We had an issue with argparse and an old Python version (2.5) previously, see fba8bf3, but this time it seems that things have changed on Travis' side.

Anyway, I'd like to emphasize that testing on a very old Python version is not our primary focus.

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.