Skip to content

Enable CI/CD testing with GitHub Actions#24

Draft
Eve-ning wants to merge 11 commits into
masterfrom
conda-cicd
Draft

Enable CI/CD testing with GitHub Actions#24
Eve-ning wants to merge 11 commits into
masterfrom
conda-cicd

Conversation

@Eve-ning

@Eve-ning Eve-ning commented Jul 2, 2022

Copy link
Copy Markdown
Owner

No idea why the lib can't be found, will try this some other time

ERROR:

Run conda install pytest
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
  environment location: /usr/share/miniconda
  added / updated specs:
    - pytest
The following packages will be downloaded:
    package                    |            build
    ---------------------------|-----------------
    attrs-21.4.0               |     pyhd3eb1b0_0          51 KB
    iniconfig-1.1.1            |     pyhd3eb1b0_0           8 KB
    pluggy-1.0.0               |   py39h06a4308_1          28 KB
    py-1.11.0                  |     pyhd3eb1b0_0          76 KB
    pytest-7.1.2               |   py39h06a4308_0         447 KB
    tomli-1.2.2                |     pyhd3eb1b0_0          17 KB
    ------------------------------------------------------------
                                           Total:         627 KB
The following NEW packages will be INSTALLED:
  attrs              pkgs/main/noarch::attrs-21.4.0-pyhd3eb1b0_0
  iniconfig          pkgs/main/noarch::iniconfig-1.1.1-pyhd3eb1b0_0
  pluggy             pkgs/main/linux-64::pluggy-1.0.0-py39h06a4308_1
  py                 pkgs/main/noarch::py-1.11.0-pyhd3eb1b0_0
  pytest             pkgs/main/linux-64::pytest-7.1.2-py39h06a4308_0
  tomli              pkgs/main/noarch::tomli-1.2.2-pyhd3eb1b0_0
Proceed ([y]/n)? 
Downloading and Extracting Packages
pytest-7.1.2         | 447 KB    |            |   0% 
pytest-7.1.2         | 447 KB    | ##8        |  29% 
pytest-7.1.2         | 447 KB    | ########## | 100% 
iniconfig-1.1.1      | 8 KB      |            |   0% 
iniconfig-1.1.1      | 8 KB      | ########## | 100% 
pluggy-1.0.0         | 28 KB     |            |   0% 
pluggy-1.0.0         | 28 KB     | ########## | 100% 
py-1.11.0            | 76 KB     |            |   0% 
py-1.11.0            | 76 KB     | ########## | 100% 
attrs-21.4.0         | 51 KB     |            |   0% 
attrs-21.4.0         | 51 KB     | ########## | 100% 
tomli-1.2.2          | 17 KB     |            |   0% 
tomli-1.2.2          | 17 KB     | ########## | 100% 
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
============================= test session starts ==============================
platform linux -- Python 3.9.12, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/runner/work/glcm-cupy/glcm-cupy
collected 0 items / 1 error
==================================== ERRORS ====================================
________________________ ERROR collecting test session _________________________
/usr/share/miniconda/lib/python3.9/site-packages/cupy/__init__.py:18: in <module>
    from cupy import _core  # NOQA
/usr/share/miniconda/lib/python3.9/site-packages/cupy/_core/__init__.py:1: in <module>
    from cupy._core import core  # NOQA
cupy/_core/core.pyx:1: in init cupy._core.core
    ???
/usr/share/miniconda/lib/python3.9/site-packages/cupy/cuda/__init__.py:8: in <module>
    from cupy.cuda import compiler  # NOQA
/usr/share/miniconda/lib/python3.9/site-packages/cupy/cuda/compiler.py:14: in <module>
    from cupy.cuda import function
cupy/cuda/function.pyx:1: in init cupy.cuda.function
    ???
cupy/_core/_carray.pyx:1: in init cupy._core._carray
    ???
cupy/_core/internal.pyx:1: in init cupy._core.internal
    ???
cupy/cuda/memory.pyx:1: in init cupy.cuda.memory
    ???
E   ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
The above exception was the direct cause of the following exception:
/usr/share/miniconda/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/usr/share/miniconda/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:168: in exec_module
    exec(co, module.__dict__)
tests/integration_tests/conftest.py:1: in <module>
    import cupy as cp
/usr/share/miniconda/lib/python3.9/site-packages/cupy/__init__.py:20: in <module>
    raise ImportError(f'''
E   ImportError: 
E   ================================================================
E   Failed to import CuPy.
E   
E   If you installed CuPy via wheels (cupy-cudaXXX or cupy-rocm-X-X), make sure that the package matches with the version of CUDA or ROCm installed.
E   
E   On Linux, you may need to set LD_LIBRARY_PATH environment variable depending on how you installed CUDA/ROCm.
E   On Windows, try setting CUDA_PATH environment variable.
E   
E   Check the Installation Guide for details:
E     https://docs.cupy.dev/en/latest/install.html
E   
E   Original error:
E     ImportError: libcuda.so.1: cannot open shared object file: No such file or directory
E   ================================================================
=========================== short test summary info ============================
ERROR  - ImportError: 
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.40s ===============================
Error: Process completed with exit code 2.

@Eve-ning Eve-ning mentioned this pull request Jul 3, 2022
@Eve-ning Eve-ning changed the title Create python-package-conda.yml Enable CI/CD testing with GitHub Actions Jul 17, 2022
@Eve-ning Eve-ning added the help wanted Extra attention is needed label Jul 17, 2022
@Eve-ning Eve-ning marked this pull request as draft August 4, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant