8000 Attribute 'timeout' in 'pip_import' rule not found · Issue #346 · bazel-contrib/rules_python · GitHub
[go: up one dir, main page]

Skip to content
Attribute 'timeout' in 'pip_import' rule not found #346
Closed
@leopetter

Description

@leopetter

🐞 bug report

Affected Rule

The issue is caused by the rule: pip_import

Description

The attribute 'timeout' in the 'pip_import' rule is supposedly non-existent.

🌏 Environment

I use the latest release: rules_python-0.0.2, bazel version 3.4.1 and I am working on macOS Catalina (10.15.5).

🔥 Exception or Error

The exact error message is "ERROR: /Users/<...>: //external:common_service_deps: no such attribute 'timeout' in 'pip_import' rule".
The attribute should be merged with #217 and is available in the current version.

Below is the specified rule in the WORKSPACE file of my project:


http_archive(
    name = "rules_python",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.0.2/rules_python-0.0.2.tar.gz",
    strip_prefix = "rules_python-0.0.2",
    sha256 = "b5668cde8bb6e3515057ef465a35ad712214962f0b3a314e551204266c7be90c",
)

load("@rules_python//python:repositories.bzl", "py_repositories")

py_repositories()

load("@rules_python//python:pip.bzl", "pip_repositories", "pip3_import", "pip_import")

pip_repositories()

pip3_import(
    name = "common_service_deps",
    requirements = "//backend/services:common-requirements.txt",
    timeout = 1200,
)

Does anyone have the same issue and knows how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0