couler-proj / couler

Unified Interface for Constructing and Managing Workflows on different workflow engines, such as Argo Workflows, Tekton Pipelines, and Apache Airflow.
https://couler-proj.github.io/couler/index.html
Apache License 2.0
893 stars 86 forks source link

fix: Add `--ignore-installed` and `python3 -m pip` when installing Python package #240

Closed terrytangyuan closed 2 years ago

terrytangyuan commented 2 years ago

This fixes the following issue:

Collecting git+https://github.com/couler-proj/couler@v0.1.1rc8-stable
  Cloning https://github.com/couler-proj/couler (to revision v0.1.1rc8-stable) to /tmp/pip-req-build-yj7xv69q
Collecting Deprecated
  Downloading Deprecated-1.2.12-py2.py3-none-any.whl (9.5 kB)
...
Successfully built couler wrapt
Installing collected packages: wrapt, Deprecated, websocket-client, docker, pyyaml, oauthlib, requests-oauthlib, pyasn1, rsa, cachetools, pyasn1-modules, google-auth, python-dateutil, urllib3, kubernetes, pyaml, couler
  Attempting uninstall: pyyaml
    Found existing installation: PyYAML 3.12
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
WARNING: You are using pip version 20.2.4; however, version 21.2.4 is available.
You should consider upgrading via the '/usr/bin/python3.8 -m pip install --upgrade pip' command.

controlplane $ python3 coin_flip_example.py
Traceback (most recent call last):
  File "coin_flip_example.py", line 1, in <module>
    import couler.argo as couler
ModuleNotFoundError: No module named 'couler'