Skip to content

[Bug]: ImportError: cannot import name 'AWSSecurityGroupsClient' from 'app.clients.aws_security_groups #82

@cyberdometanza

Description

@cyberdometanza

Describe the bug

When starting the actions service via docker compose up, the container crashes with the following error:

File "/app/app/services/executor_registry.py", line 23, in
from app.executors.network import AllowIPExecutor, BlockDomainExecutor, BlockIPExecutor
File "/app/app/executors/network.py", line 21, in
from app.clients.aws_security_groups import AWSSecurityGroupsClient
ImportError: cannot import name 'AWSSecurityGroupsClient' from 'app.clients.aws_security_groups' (/app/app/clients/aws_security_groups.py)

Steps to reproduce

  1. docker compose up -d
  2. docker logs aisoc-actions

Expected behavior

The actions service should start without import errors.

Actual behavior

The container crashes with this error:
File "/app/app/services/executor_registry.py", line 23, in
from app.executors.network import AllowIPExecutor, BlockDomainExecutor, BlockIPExecutor
File "/app/app/executors/network.py", line 21, in
from app.clients.aws_security_groups import AWSSecurityGroupsClient
ImportError: cannot import name 'AWSSecurityGroupsClient' from 'app.clients.aws_security_groups' (/app/app/clients/aws_security_groups.py)

Component

Docker / Compose

AiSOC version

AiSOC v5.1.0

Environment

OS: Linux (Ubuntu/Debian)

Checklist

  • I have searched existing issues and this is not a duplicate
  • I have read the CONTRIBUTING guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions