Python builds failing

Eric's Avatar

Eric

03 Nov, 2015 06:23 AM

Starting sometime last week my builds started to fail. We build with Python 2.6, 2.7, 3.3, and 3.4 (on x86 and x64). Until last week, all our builds were completing but then the Python 2.7 builds began to fail (on both x86 and x64). The failure happens when trying to install Python (from Anaconda).

I turned off the 2.7 builds and now the 3.4 builds are failing with exactly the same error.

Does anyone have any ideas? Thanks!

The exact error I get is the following,

conda install -q --yes numpy=%NUMPY_VERSION% pip jinja2 scipy nose>=1.3 matplotlib netCDF4 sympy pandas Cython
Traceback (most recent call last):
  File "C:\conda\Scripts\conda-script.py", line 4, in <module>
    sys.exit(main())
  File "C:\conda\lib\site-packages\conda\cli\main.py", line 179, in main
    args.func(args, p)
  File "C:\conda\lib\site-packages\conda\cli\main_install.py", line 45, in execute
    install.install(args, parser, 'install')
  File "C:\conda\lib\site-packages\conda\cli\install.py", line 278, in install
    plan.execute_actions(actions, index, verbose=not args.quiet)
  File "C:\conda\lib\site-packages\conda\plan.py", line 436, in execute_actions
    execute_plan(plan, index, verbose)
  File "C:\conda\lib\site-packages\conda\plan.py", line 418, in execute_plan
    link(prefix, arg, index=index)
  File "C:\conda\lib\site-packages\conda\plan.py", line 374, in link
    install.link(pkgs_dir, prefix, dist, lt, index=index)
  File "C:\conda\lib\site-packages\conda\install.py", line 486, in link
    update_prefix(join(prefix, f), prefix, placeholder, mode)
  File "C:\conda\lib\site-packages\conda\install.py", line 210, in update_prefix
    with open(path, 'rb') as fi:
IOError: [Errno 22] invalid mode ('rb') or filename: 'C:\conda\envs\test\"Library\bin\pyuic4.bat"'
Command exited with code 1
  1. Support Staff 1 Posted by Feodor Fitsner on 03 Nov, 2015 06:39 AM

    Feodor Fitsner's Avatar

    What account/project is that?

  2. 2 Posted by Eric on 03 Nov, 2015 03:06 PM

    Eric's Avatar

    mcflugen/landlab

  3. Support Staff 3 Posted by Feodor Fitsner on 03 Nov, 2015 07:33 PM

    Feodor Fitsner's Avatar

    Maybe it's conflicting with Miniconda already installed on build workers: https://github.com/appveyor/ci/issues/359 ?

  4. Support Staff 4 Posted by Feodor Fitsner on 03 Nov, 2015 07:49 PM

    Feodor Fitsner's Avatar

    OK, OSS environment was last updated on October 10: http://www.appveyor.com/updates/2015/10/10 and it basically has nothing related to Python.

    I also tested your latest check-in on a separate environment and got the same results - 3.4 is failing: https://ci.appveyor.com/project/FeodorFitsner/landlab/build/1.0.1

    That environment is still "in beta" environment we are going to switch OSS onto. Build worker image there was re-installed from scratch.

    Looks like some external dependency changed :-/

    Btw, I moved your account to that environment so builds should run faster.

  5. 5 Posted by Eric on 04 Nov, 2015 06:00 AM

    Eric's Avatar

    OK. I think this is fixed. I'm now using the pre-installed Miniconda, as you suggested. Apart from fixing this issue, it speeds up my builds a bit and simplifies the code. Thanks, for the suggestion. I didn't realize Miniconda was already installed.

    Is there any chance it's possible to have an environment with a full Anaconda distribution pre-installed? That would really speed up my builds!

    Thanks for all your help! Much appreciated.

  6. Support Staff 6 Posted by Feodor Fitsner on 05 Nov, 2015 04:11 AM

    Feodor Fitsner's Avatar

    Can Anaconda co-exist (installed side-by-side) with Miniconda on the same server? :)

  7. 7 Posted by Eric on 05 Nov, 2015 05:02 AM

    Eric's Avatar

    Well, I would have thought so... but I'm not so certain about that anymore!

  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac