Skip to content

Conversation

stefannica
Copy link
Contributor

@stefannica stefannica commented Apr 3, 2025

Describe changes

This currently happens with any stack that has both an AWS stack component and an S3 artifact store, regardless of ZenML version:

Building Docker image(s) for pipeline super_simple_pipeline.
Building Docker image 339712793861.dkr.ecr.eu-central-1.amazonaws.com/zenml:super_simple_pipeline-orchestrator.
- Including stack requirements: aws-profile-manager, boto3, kubernetes, kubernetes>=21.7,<26, s3fs>2024.10.0, sagemaker>=2.199.0
WARNING! Your password will be stored unencrypted in /home/stefan/snap/docker/3064/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credential-stores

Login Succeeded
Step 1/9 : FROM zenmldocker/zenml:0.80.1-py3.10
Step 2/9 : WORKDIR /app
Step 3/9 : ENV ZENML_LOGGING_COLORS_DISABLED=False
Step 4/9 : COPY .zenml_stack_integration_requirements .
Step 5/9 : RUN pip install --no-cache-dir --default-timeout=60 -r .zenml_stack_integration_requirements
ERROR: Ignored the following yanked versions: 2022.8.0, 2022.8.1, 2025.3.1

ERROR: Could not find a version that satisfies the requirement fsspec==2025.3.1.* (from s3fs) (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.5.1, 0.5.2, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7, 0.9.0, 2021.4.0, 2021.5.0, 2021.6.0, 2021.6.1, 2021.7.0, 2021.8.1, 2021.9.0, 2021.10.0, 2021.10.1, 2021.11.0, 2021.11.1, 2022.1.0, 2022.2.0, 2022.3.0, 2022.5.0, 2022.7.0, 2022.7.1, 2022.8.2, 2022.10.0, 2022.11.0, 2023.1.0, 2023.3.0, 2023.4.0, 2023.5.0, 2023.6.0, 2023.9.0, 2023.9.1, 2023.9.2, 2023.10.0, 2023.12.0, 2023.12.1, 2023.12.2, 2024.2.0, 2024.3.0, 2024.3.1, 2024.5.0, 2024.6.0, 2024.6.1, 2024.9.0, 2024.10.0, 2024.12.0, 2025.2.0, 2025.3.0, 2025.3.2)

ERROR: No matching distribution found for fsspec==2025.3.1.*

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/stefan/aspyre/src/zenml/examples/as_simple_as_it_gets/run.py:50 in <module>                │
│                                                                                                  │
│   47                                                                                             │
│   48                                                                                             │
│   49 if __name__ == "__main__":                                                                  │
│ ❱ 50 │   main()                                                                                  │
│   51                                                                                             │
│                                                                                                  │
│ /home/stefan/aspyre/src/zenml/examples/as_simple_as_it_gets/run.py:46 in main                    │
│                                                                                                  │
│   43                                                                                             │
│   44                                                                                             │
│   45 def main():                                                                                 │
│ ❱ 46 │   super_simple_pipeline()                                                                 │
│   47                                                                                             │
│   48                                                                                             │
│   49 if __name__ == "__main__":                                                                  │
│                                                                                                  │
│ /home/stefan/aspyre/src/zenml/src/zenml/pipelines/pipeline_definition.py:1411 in __call__        │
│                                                                                                  │
│   1408 │   │   │   return self.entrypoint(*args, **kwargs)                                       │
│   1409 │   │                                                                                     │
│   1410 │   │   self.prepare(*args, **kwargs)                                                     │
│ ❱ 1411 │   │   return self._run()                                                                │
│   1412 │                                                                                         │
│   1413 │   def _call_entrypoint(self, *args: Any, **kwargs: Any) -> None:                        │
│   1414 │   │   """Calls the pipeline entrypoint function with the given arguments.               │
│                                                                                                  │
│ /home/stefan/aspyre/src/zenml/src/zenml/pipelines/pipeline_definition.py:809 in _run             │
│                                                                                                  │
│    806 │   │                                                                                     │
│    807 │   │   with track_handler(AnalyticsEvent.RUN_PIPELINE) as analytics_handler:             │
│    808 │   │   │   stack = Client().active_stack                                                 │
│ ❱  809 │   │   │   deployment = self._create_deployment(**self._run_args)                        │
│    810 │   │   │                                                                                 │
│    811 │   │   │   self.log_pipeline_deployment_metadata(deployment)                             │
│    812 │   │   │   run = create_placeholder_run(deployment=deployment)                           │
│                                                                                                  │
│ /home/stefan/aspyre/src/zenml/src/zenml/pipelines/pipeline_definition.py:730 in                  │
│ _create_deployment                                                                               │
│                                                                                                  │
│    727 │   │   │   │   "`DockerSettings.prevent_build_reuse` instead."                           │
│    728 │   │   │   )                                                                             │
│    729 │   │                                                                                     │
│ ❱  730 │   │   build_model = build_utils.reuse_or_create_pipeline_build(                         │
│    731 │   │   │   deployment=deployment,                                                        │
│    732 │   │   │   pipeline_id=pipeline_id,                                                      │
│    733 │   │   │   allow_build_reuse=not prevent_build_reuse,                                    │
│                                                                                                  │
│ /home/stefan/aspyre/src/zenml/src/zenml/pipelines/build_utils.py:208 in                          │
│ reuse_or_create_pipeline_build                                                                   │
│                                                                                                  │
│   205 │   │   │   │   │   "are the same as for the existing build."                              │
│   206 │   │   │   │   )                                                                          │
│   207 │   │                                                                                      │
│ ❱ 208 │   │   return create_pipeline_build(                                                      │
│   209 │   │   │   deployment=deployment,                                                         │
│   210 │   │   │   pipeline_id=pipeline_id,                                                       │
│   211 │   │   │   code_repository=code_repository,                                               │
│                                                                                                  │
│ /home/stefan/aspyre/src/zenml/src/zenml/pipelines/build_utils.py:390 in create_pipeline_build    │
│                                                                                                  │
│   387 │   │   │   │   image_name_or_digest,                                                      │
│   388 │   │   │   │   dockerfile,                                                                │
│   389 │   │   │   │   requirements,                                                              │
│ ❱ 390 │   │   │   ) = docker_image_builder.build_docker_image(                                   │
│   391 │   │   │   │   docker_settings=build_config.settings,                                     │
│   392 │   │   │   │   tag=tag,                                                                   │
│   393 │   │   │   │   stack=stack,                                                               │
│                                                                                                  │
│ /home/stefan/aspyre/src/zenml/src/zenml/utils/pipeline_docker_image_builder.py:342 in            │
│ build_docker_image                                                                               │
│                                                                                                  │
│   339 │   │   │   │   │   │   destination=destination, source=source                             │
│   340 │   │   │   │   │   )                                                                      │
│   341 │   │   │                                                                                  │
│ ❱ 342 │   │   │   image_name_or_digest = image_builder.build(                                    │
│   343 │   │   │   │   image_name=target_image_name,                                              │
│   344 │   │   │   │   build_context=build_context,                                               │
│   345 │   │   │   │   docker_build_options=build_options,                                        │
│                                                                                                  │
│ /home/stefan/aspyre/src/zenml/src/zenml/image_builders/local_image_builder.py:129 in build       │
│                                                                                                  │
│   126 │   │   │   │   tag=image_name,                                                            │
│   127 │   │   │   │   **(docker_build_options or {}),                                            │
│   128 │   │   │   )                                                                              │
│ ❱ 129 │   │   docker_utils._process_stream(output_stream)                                        │
│   130 │   │                                                                                      │
│   131 │   │   if container_registry:                                                             │
│   132 │   │   │   return container_registry.push_image(image_name)                               │
│                                                                                                  │
│ /home/stefan/aspyre/src/zenml/src/zenml/utils/docker_utils.py:386 in _process_stream             │
│                                                                                                  │
│   383 │   │   │   try:                                                                           │
│   384 │   │   │   │   line_json = json.loads(line)                                               │
│   385 │   │   │   │   if "error" in line_json:                                                   │
│ ❱ 386 │   │   │   │   │   raise RuntimeError(f"Docker error: {line_json['error']}.")             │
│   387 │   │   │   │   elif "stream" in line_json:                                                │
│   388 │   │   │   │   │   text = line_json["stream"].strip()                                     │
│   389 │   │   │   │   │   if "ERROR" in text:                                                    │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeError: Docker error: The command '/bin/sh -c pip install --no-cache-dir --default-timeout=60 -r .zenml_stack_integration_requirements' returned a non-zero code: 1.

The problem can be distilled to:

  • this works
pip install 's3fs>2022.3.0' boto3
  • this doesn’t
pip install boto3 's3fs>2022.3.0'

Pre-requisites

Please ensure you have done the following:

  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.
  • I have based my new branch on develop and the open PR is targeting develop. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.
  • IMPORTANT: I made sure that my changes are reflected properly in the following resources:
    • ZenML Docs
    • Dashboard: Needs to be communicated to the frontend team.
    • Templates: Might need adjustments (that are not reflected in the template tests) in case of non-breaking changes and deprecations.
    • Projects: Depending on the version dependencies, different projects might get affected.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Other (add details above)

@stefannica stefannica requested review from strickvl and htahir1 April 3, 2025 09:03
Copy link
Contributor

coderabbitai bot commented Apr 3, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added internal To filter out internal PRs and issues bug Something isn't working labels Apr 3, 2025
@stefannica stefannica force-pushed the bug/fix-yanked-fsspec branch from dfe5bfa to 4c39375 Compare April 3, 2025 09:03
Copy link
Contributor

github-actions bot commented Apr 3, 2025

Documentation Link Check Results

Absolute links check passed
Relative links check passed
Last checked: 2025-04-03 10:22:04 UTC

Copy link
Contributor

@htahir1 htahir1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol

@stefannica stefannica merged commit cdf2af0 into develop Apr 3, 2025
123 of 126 checks passed
@stefannica stefannica deleted the bug/fix-yanked-fsspec branch April 3, 2025 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working internal To filter out internal PRs and issues run-slow-ci
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants