Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda build fails while installing packages for testing #3412

Closed
sebp opened this issue Feb 24, 2019 · 3 comments
Closed

conda build fails while installing packages for testing #3412

sebp opened this issue Feb 24, 2019 · 3 comments
Labels
locked [bot] locked due to inactivity

Comments

@sebp
Copy link

sebp commented Feb 24, 2019

I'm trying to build a conda package for osqp on Windows using AppVeyor. While everything compiles and a conda package is created, conda build fails while preparing the environment for testing with

ERROR: file or package not found: codegen' (missing __init__.py?)

codegen is a module of osqp, i.e., osqp.codegen which definitely is available. In fact, conda build is successful on Linux and OSX. The problem applies to Python 3.6 and 3.7.

The full log is at https://ci.appveyor.com/project/sebp/osqp-conda/builds/22612254/job/ti0gq0wa5gtq7tpm

Actual Behavior

TEST START: C:\Miniconda3-x64\conda-bld\win-64\osqp-0.4.1-py37ha82c386_3.tar.bz2
Renaming work directory,  C:\Miniconda3-x64\conda-bld\osqp_cpp_and_py_1551044090860\work  to  C:\Miniconda3-x64\conda-bld\osqp_cpp_and_py_1551044090860\work_moved_osqp-0.4.1-py37ha82c386_3_win-64
Collecting package metadata: ...working... done
Solving environment: ...working... done
## Package Plan ##
  environment location: C:\Miniconda3-x64\conda-bld\osqp_cpp_and_py_1551044090860\_test_env
The following NEW packages will be INSTALLED:
    atomicwrites:    1.3.0-py_0             defaults
    attrs:           18.2.0-py37h28b3542_0  defaults
    blas:            1.0-mkl                defaults
    ca-certificates: 2019.1.23-0            defaults
    certifi:         2018.11.29-py37_0      defaults
    colorama:        0.4.1-py37_0           defaults
    future:          0.17.1-py37_0          defaults
    icc_rt:          2019.0.0-h0cc432a_1    defaults
    intel-openmp:    2019.1-144             defaults
    mkl:             2019.1-144             defaults
    mkl_fft:         1.0.10-py37h14836fe_0  defaults
    mkl_random:      1.0.2-py37h343c172_0   defaults
    more-itertools:  5.0.0-py37_0           defaults
    numpy:           1.15.4-py37h19fb1c0_0  defaults
    numpy-base:      1.15.4-py37hc3f5095_0  defaults
    openssl:         1.1.1a-he774522_0      defaults
    osqp:            0.4.1-py37ha82c386_3   local   
    osqp-purepy:     0.4.1-py37ha82c386_3   local   
    pluggy:          0.8.1-py37_0           defaults
    py:              1.7.0-py37_0           defaults
    pytest:          4.2.0-py37_0           defaults
    python:          3.7.2-h8c8aaf0_10      defaults
    scipy:           1.2.1-py37h29ff71c_0   defaults
    setuptools:      40.8.0-py37_0          defaults
    six:             1.12.0-py37_0          defaults
    sqlite:          3.26.0-he774522_0      defaults
    vc:              14.1-h0510ff6_4        defaults
    vs2015_runtime:  14.15.26706-h3a45250_0 defaults
    wincertstore:    0.2-py37_0             defaults
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
ERROR: file or package not found: codegen' (missing __init__.py?)

Expected Behavior

Installing osqp package should proceed without errors as on Linux an OSX before running test suite.

Steps to Reproduce

Build recipe is available at https://github.com/sebp/osqp-conda/blob/master/recipe/meta.yaml

Output of conda info
     active environment : base
    active env location : C:\Miniconda3-x64
            shell level : 1
       user config file : C:\Users\appveyor\.condarc
 populated config files : C:\Users\appveyor\.condarc
          conda version : 4.6.4
    conda-build version : 3.17.8
         python version : 3.7.1.final.0
       base environment : C:\Miniconda3-x64  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/win-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\Miniconda3-x64\pkgs
                          C:\Users\appveyor\.conda\pkgs
                          C:\Users\appveyor\AppData\Local\conda\conda\pkgs
       envs directories : C:\Miniconda3-x64\envs
                          C:\Users\appveyor\.conda\envs
                          C:\Users\appveyor\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.6.4 requests/2.21.0 CPython/3.7.1 Windows/2012ServerR2 Windows/6.3.9600
          administrator : True
             netrc file : None
           offline mode : False
conda config --get
--set add_pip_as_python_dependency False
@sebp
Copy link
Author

sebp commented Feb 24, 2019

It might be related to pytest-dev/pytest#1445, although the fix suggested there does not solve the issue.

@sebp sebp changed the title conda build fails while installing packing for testing conda build fails while installing packages for testing Feb 24, 2019
@sebp
Copy link
Author

sebp commented Feb 25, 2019

Turns out I made a mistake in the test batch script for Windows by using single instead of double quotes. I apologize for the noise.

@sebp sebp closed this as completed Feb 25, 2019
@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically locked because it has not had recent activity after being closed.

Please open a new issue if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Mar 11, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

No branches or pull requests

1 participant