Hi,
I was having an issue of CircleCI not being able to find the package comm>=0.1.3 such that my CI failed with the following error:
ERROR: Could not find a version that satisfies the requirement comm>=0.1.3 (from ipywidgets->jupyter) (from versions: 0.0.1)
ERROR: No matching distribution found for comm>=0.1.3 (from ipywidgets->jupyter)
This arose from the installation of jupyter
, which requires the dependency ipywidgets
that requires comm>=0.1.3. According to PyPI, the latest version of comm
is 0.1.4, so it confused me why CircleCI was not about to find comm >= 0.1.3. I wonder how I can work around with this issue. Below is the content of config.yml
that I was using with CircleCI:
version: 2.1
jobs:
test:
machine:
# Note that ubuntu with versions later than 2022 triggers an interative prompt that gets CI stuck
image: ubuntu-2004:202107-02
environment:
PYTHON_VERSION: "3.8"
steps:
- checkout
- run:
name: Install nbconvert for testing notebooks
command: |
pip install --upgrade pip
pip install jupyter nbconvert
- run:
name: Install the sampling_simulator package
command: |
pip install .
- run:
name: Test notebooks
command: |
for notebook in *.ipynb; do
jupyter nbconvert --to script "$notebook"
python "${notebook%.ipynb}.py"
done
workflows:
version: 2
test-workflow:
jobs:
- test
Thanks in advance!