Datasets:

Modalities:
Tabular
Text
Formats:
json
Size:
< 1K
ArXiv:
DOI:
Libraries:
Datasets
Dask
File size: 4,738 Bytes
11c83cb
1
{"language": "Python", "id": 34, "repo_owner": "lightly-ai", "repo_name": "lightly", "head_branch": "master", "workflow_name": "check setup.py", "workflow_filename": "test_setup.yml", "workflow_path": ".github/workflows/test_setup.yml", "contributor": "jameschapman19", "sha_fail": "7e3720f246234572faf7ea093d228d995684f1c8", "sha_success": "b9d0ed9e3ee5fcaa5c41035f0af3dd1f169a1432", "workflow": "name: check setup.py\n\non:\n  push:\n    paths-ignore:\n      - 'docs/**'\n  pull_request:\n    paths-ignore:\n      - 'docs/**'\n  workflow_dispatch:\n\njobs:\n  test:\n    name: Test setup.py\n    runs-on: ubuntu-latest\n\n\n    steps:\n    - name: Checkout Code\n      uses: actions/checkout@v3\n    - name: Hack to get setup-python to work on nektos/act\n      run: |\n        if [ ! -f \"/etc/lsb-release\" ] ; then\n          echo \"DISTRIB_RELEASE=18.04\" > /etc/lsb-release\n        fi\n    - name: Set up Python 3.7\n      uses: actions/setup-python@v4\n      with:\n        python-version: 3.7\n    - uses: actions/cache@v2\n      with:\n        path: ${{ env.pythonLocation }}\n        key: cache_v2_${{ env.pythonLocation }}-${{ hashFiles('requirements/**') }}\n    - name: Install Dependencies and lightly\n      run: pip install .\n    - name: basic tests of CLI\n      run: |\n        LIGHTLY_SERVER_LOCATION=\"localhost:-1\"\n        lightly-crop --help\n        lightly-train --help\n        lightly-embed --help\n        lightly-magic --help\n        lightly-download --help\n        lightly-version\n    - name: test of CLI on a real dataset\n      run: |\n        LIGHTLY_SERVER_LOCATION=\"localhost:-1\"\n        git clone https://github.com/alexeygrigorev/clothing-dataset-small clothing_dataset_small\n        INPUT_DIR_1=\"clothing_dataset_small/test/dress\"\n        lightly-train input_dir=$INPUT_DIR_1 trainer.max_epochs=1 loader.num_workers=6\n        lightly-embed input_dir=$INPUT_DIR_1\n", "logs": [{"step_name": "Test setup.py/7_basic tests of CLI.txt", "log": "##[group]Run LIGHTLY_SERVER_LOCATION=\"localhost:-1\"\n\u001b[36;1mLIGHTLY_SERVER_LOCATION=\"localhost:-1\"\u001b[0m\n\u001b[36;1mlightly-crop --help\u001b[0m\n\u001b[36;1mlightly-train --help\u001b[0m\n\u001b[36;1mlightly-embed --help\u001b[0m\n\u001b[36;1mlightly-magic --help\u001b[0m\n\u001b[36;1mlightly-download --help\u001b[0m\n\u001b[36;1mlightly-version\u001b[0m\nshell: /usr/bin/bash -e {0}\nenv:\n  pythonLocation: /opt/hostedtoolcache/Python/3.7.17/x64\n  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib/pkgconfig\n  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64\n  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64\n  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64\n  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib\n##[endgroup]\nTraceback (most recent call last):\n  File \"/opt/hostedtoolcache/Python/3.7.17/x64/bin/lightly-crop\", line 5, in <module>\n    from lightly.cli.crop_cli import entry\n  File \"/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightly/cli/__init__.py\", line 12, in <module>\n    from lightly.cli.lightly_cli import lightly_cli\n  File \"/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightly/cli/lightly_cli.py\", line 16, in <module>\n    from lightly.cli.train_cli import _train_cli\n  File \"/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightly/cli/train_cli.py\", line 31, in <module>\n    from lightly.loss import NTXentLoss\n  File \"/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightly/loss/__init__.py\", line 6, in <module>\n    from lightly.loss.dcl_loss import DCLLoss, DCLWLoss\n  File \"/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightly/loss/dcl_loss.py\", line 9, in <module>\n    from lightly.utils import dist\n  File \"/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lightly/utils/dist.py\", line 1, in <module>\n    from typing import Any, Callable, Literal, Optional, Tuple, TypeVar, Union\nImportError: cannot import name 'Literal' from 'typing' (/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/typing.py)\n##[error]Process completed with exit code 1.\n"}], "diff": "diff --git a/lightly/utils/dist.py b/lightly/utils/dist.py\nindex e56b43a3..7c8c7f77 100644\n--- a/lightly/utils/dist.py\n+++ b/lightly/utils/dist.py\n@@ -1,4 +1,4 @@\n-from typing import Any, Callable, Literal, Optional, Tuple, TypeVar, Union\n+from typing import Any, Callable, Optional, Tuple, TypeVar, Union\n \n import torch\n import torch.distributed as dist\n", "difficulty": 1, "changed_files": ["lightly/utils/dist.py"], "commit_link": "https://github.com/lightly-ai/lightly/tree/7e3720f246234572faf7ea093d228d995684f1c8"}