worried-lighter-79998
08/25/2022, 11:54 AMjobs:
register-flyte-workflows:
name: Register Flyte workflows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup flytectl
uses: unionai-oss/flytectl-setup-action@v0.0.1
- name: Setup pyflyte
run: pip install flytekit==1.1.*
- name: Serialize project
run: |
mkdir serialized
pyflyte --pkgs flyte.workflows serialize --local-source-root . --image ${{ env.DOCKER_IMAGE }} workflows -f serialized
gives the following errors. The 'setup pyflyte' job prints
ERROR: googleapis-common-protos 1.56.4 has requirement protobuf<5.0.0dev,>=3.15.0, but you'll have protobuf 3.6.1 which is incompatible.
ERROR: grpcio-status 1.47.0 has requirement protobuf>=3.12.0, but you'll have protobuf 3.6.1 which is incompatible.
ERROR: cookiecutter 2.1.1 has requirement requests>=2.23.0, but you'll have requests 2.22.0 which is incompatible.
ERROR: responses 0.21.0 has requirement urllib3>=1.25.10, but you'll have urllib3 1.25.8 which is incompatible.
but the workflow still continues, then the 'serialize project' job crashes with
Traceback (most recent call last):
File "/home/runner/.local/bin/pyflyte", line 5, in <module>
from flytekit.clis.sdk_in_container.pyflyte import main
File "/home/runner/.local/lib/python3.8/site-packages/flytekit/__init__.py", line 164, in <module>
from flytekit.core.base_sql_task import SQLTask
File "/home/runner/.local/lib/python3.8/site-packages/flytekit/core/base_sql_task.py", line 4, in <module>
from flytekit.core.base_task import PythonTask, TaskMetadata
File "/home/runner/.local/lib/python3.8/site-packages/flytekit/core/base_task.py", line 28, in <module>
from flytekit.core.context_manager import ExecutionParameters, FlyteContext, FlyteContextManager, FlyteEntities
File "/home/runner/.local/lib/python3.8/site-packages/flytekit/core/context_manager.py", line 30, in <module>
from flytekit.clients import friendly as friendly_client # noqa
File "/home/runner/.local/lib/python3.8/site-packages/flytekit/clients/friendly.py", line 20, in <module>
from flytekit.models import execution as _execution
File "/home/runner/.local/lib/python3.8/site-packages/flytekit/models/execution.py", line 10, in <module>
from flytekit.models import security
File "/home/runner/.local/lib/python3.8/site-packages/flytekit/models/security.py", line 11, in <module>
class Secret(_common.FlyteIdlEntity):
File "/home/runner/.local/lib/python3.8/site-packages/flytekit/models/security.py", line 22, in Secret
class MountType(Enum):
File "/home/runner/.local/lib/python3.8/site-packages/flytekit/models/security.py", line 23, in MountType
ANY = _sec.Secret.MountType.ANY
AttributeError: 'EnumTypeWrapper' object has no attribute 'ANY'
Error: Process completed with exit code 1.
Can someone please help me figure out what's going on? The commands work when I run them locally using pyflyte 1.1.1.tall-lock-23197
freezing-airport-6809
broad-monitor-993
08/25/2022, 2:33 PMSeems likeCopy codeAttributeError: 'EnumTypeWrapper' object has no attribute 'ANY'
flyteidl
is out-of-date? @worried-lighter-79998 can you get at the version of flyteidl
installed?worried-lighter-79998
08/25/2022, 2:46 PMbroad-monitor-993
08/25/2022, 2:57 PMpip list
after installing flytekit in your workflow and paste the results here? just wanted to check all the versions.
Also not sure why those package version errors are happeningā¦broad-monitor-993
08/25/2022, 3:00 PMunionai-oss/flytectl-setup-action@master
will make any differenceā¦faint-monitor-96441
08/25/2022, 7:37 PMbroad-monitor-993
08/25/2022, 9:15 PMunionai-oss/flytectl-setup-action
, it seems like all the correct versions of flytekit and flyteidl are installed.high-accountant-32689
08/25/2022, 9:15 PMhigh-accountant-32689
08/25/2022, 11:33 PMubuntu-latest
is relatively old (it comes with python 3.8.10).worried-lighter-79998
08/26/2022, 6:38 AMfreezing-airport-6809
high-accountant-32689
08/26/2022, 5:00 PMhigh-accountant-32689
08/26/2022, 5:02 PMFlyte enables production-grade orchestration for machine learning workflows and data processing created to accelerate local workflows to production.
Powered by