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

Running tests fails with requirements issues for websockets #74

Closed
dparv opened this issue Jun 28, 2024 · 2 comments
Closed

Running tests fails with requirements issues for websockets #74

dparv opened this issue Jun 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@dparv
Copy link

dparv commented Jun 28, 2024

Bug Description

Tests fail with and websockets==8.1 because these package versions have conflicting dependencies.

To Reproduce

git clone https://github.com/canonical/charmed-kubeflow-uats.gi
cd charmed-kubeflow-uats/
apt install python3.10-venv
sudo apt install python3.10-venv
python3 -m venv venv
source venv/bin/activate
pip install tox
tox -e uats-remote

Environment

AKS 1.28.9
juju 3.4.3

Relevant Log Output

Preparing metadata (setup.py) ... done
INFO: pip is looking at multiple versions of juju to determine which version is compatible with other requirements. This could take a while.

The conflict is caused by:
    The user requested websockets==8.1
    juju 3.2.3.0 depends on websockets>=10.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict

ERROR: Cannot install -r requirements.txt (line 66) and websockets==8.1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

uats-remote: exit 1 (8.46 seconds) /home/ubuntu/charmed-kubeflow-uats> python -I -m pip install -r requirements.txt pid=10018
  uats-remote: FAIL code 1 (8.91 seconds)
  evaluation failed :( (8.98 seconds)


### Additional Context

_No response_
@dparv dparv added the bug Something isn't working label Jun 28, 2024
Copy link

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-5908.

This message was autogenerated

@DnPlas
Copy link
Contributor

DnPlas commented Jul 9, 2024

This is because the UATs' dependencies are for py3.8, and won't work with any other version. #80 is introducing a more explicit set of instructions.

Closing this as it is not an issue with the UATs, but rather an environment one.

@DnPlas DnPlas closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants