Skip to content

Missing module when installing using pip #16

Description

Hi guys,

I've tried to install osc-bsu-backup using pip install osc-bsu-backup. It installs correctly. However, when I try to use it, a package is missing :(

[15:06:28] ➜  pip install osc-bsu-backup
Collecting osc-bsu-backup
  Using cached osc_bsu_backup-0.0.6-py3-none-any.whl.metadata (219 bytes)
Collecting boto3 (from osc-bsu-backup)
  Downloading boto3-1.40.42-py3-none-any.whl.metadata (6.7 kB)
Collecting botocore<1.41.0,>=1.40.42 (from boto3->osc-bsu-backup)
  Downloading botocore-1.40.42-py3-none-any.whl.metadata (5.7 kB)
Collecting jmespath<2.0.0,>=0.7.1 (from boto3->osc-bsu-backup)
  Using cached jmespath-1.0.1-py3-none-any.whl.metadata (7.6 kB)
Collecting s3transfer<0.15.0,>=0.14.0 (from boto3->osc-bsu-backup)
  Using cached s3transfer-0.14.0-py3-none-any.whl.metadata (1.7 kB)
Collecting python-dateutil<3.0.0,>=2.1 (from botocore<1.41.0,>=1.40.42->boto3->osc-bsu-backup)
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting urllib3!=2.2.0,<3,>=1.25.4 (from botocore<1.41.0,>=1.40.42->boto3->osc-bsu-backup)
  Using cached urllib3-2.5.0-py3-none-any.whl.metadata (6.5 kB)
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore<1.41.0,>=1.40.42->boto3->osc-bsu-backup)
  Using cached six-1.17.0-py2.py3-none-any.whl.metadata (1.7 kB)
Using cached osc_bsu_backup-0.0.6-py3-none-any.whl (6.7 kB)
Downloading boto3-1.40.42-py3-none-any.whl (139 kB)
Downloading botocore-1.40.42-py3-none-any.whl (14.1 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.1/14.1 MB 8.5 MB/s eta 0:00:00
Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached s3transfer-0.14.0-py3-none-any.whl (85 kB)
Using cached urllib3-2.5.0-py3-none-any.whl (129 kB)
Using cached six-1.17.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: urllib3, six, jmespath, python-dateutil, botocore, s3transfer, boto3, osc-bsu-backup
Successfully installed boto3-1.40.42 botocore-1.40.42 jmespath-1.0.1 osc-bsu-backup-0.0.6 python-dateutil-2.9.0.post0 s3transfer-0.14.0 six-1.17.0 urllib3-2.5.0

[notice] A new release of pip is available: 25.1.1 -> 25.2
[notice] To update, run: pip install --upgrade pip

[15:06:39] ➜  pip3 list
Package         Version
--------------- -----------
boto3           1.40.42
botocore        1.40.42
jmespath        1.0.1
osc-bsu-backup  0.0.6
pip             25.1.1
python-dateutil 2.9.0.post0
s3transfer      0.14.0
six             1.17.0
urllib3         2.5.0

[15:06:53] ➜  which osc-bsu-backup
/Users/eqn4/work/src/osc-bsu-backup/osc-bsu-backup/bin/osc-bsu-backup

[15:07:08] ➜  /Users/eqn4/work/src/osc-bsu-backup/osc-bsu-backup/bin/osc-bsu-backup
Traceback (most recent call last):
  File "/Users/eqn4/work/src/osc-bsu-backup/osc-bsu-backup/bin/osc-bsu-backup", line 5, in <module>
    from osc_bsu_backup.cli import main
  File "/Users/eqn4/work/src/osc-bsu-backup/osc-bsu-backup/lib/python3.13/site-packages/osc_bsu_backup/cli.py", line 6, in <module>
    from osc_bsu_backup import __version__, bsu_backup
  File "/Users/eqn4/work/src/osc-bsu-backup/osc-bsu-backup/lib/python3.13/site-packages/osc_bsu_backup/bsu_backup.py", line 6, in <module>
    from mypy_boto3_ec2.client import EC2Client
ModuleNotFoundError: No module named 'mypy_boto3_ec2'

I think mypy_boto3_ec2 package is missing from osc-bsu-backup dependencies
After I installed it, osc-bsu-backup is working as expected:

[15:08:07] ✗  pip3 install mypy_boto3_ec2
Collecting mypy_boto3_ec2
  Using cached mypy_boto3_ec2-1.40.40-py3-none-any.whl.metadata (55 kB)
Using cached mypy_boto3_ec2-1.40.40-py3-none-any.whl (398 kB)
Installing collected packages: mypy_boto3_ec2
Successfully installed mypy_boto3_ec2-1.40.40

[notice] A new release of pip is available: 25.1.1 -> 25.2
[notice] To update, run: pip install --upgrade pip

[15:16:50] ➜  /Users/eqn4/work/src/osc-bsu-backup/osc-bsu-backup/bin/osc-bsu-backup --help
INFO:osc_bsu_backup.cli:osc_bsu_backup: 0.0.6
usage: osc-bsu-backup [-h] [--instance-by-id INSTANCE_ID] [--instances-by-tags INSTANCES_TAGS [INSTANCES_TAGS ...]] [--volume-by-id VOLUME_ID]
                      [--volumes-by-tags VOLUMES_TAGS [VOLUMES_TAGS ...]] [--rotate ROTATE] [--rotate-by-days ROTATE_DAYS] [--rotate-only] [--copy-tags] [--region REGION]
                      [--endpoint ENDPOINT] [--profile PROFILE] [--client-cert CLIENT_CERT] [--debug]

osc-bsu-backup: 0.0.6

options:
  -h, --help            show this help message and exit
  --instance-by-id INSTANCE_ID
                        instance to backup
  --instances-by-tags INSTANCES_TAGS [INSTANCES_TAGS ...]
                        instances tags to look for, use the format Key:Value. Can be used multiple times
  --volume-by-id VOLUME_ID
                        volume to backup
  --volumes-by-tags VOLUMES_TAGS [VOLUMES_TAGS ...]
                        volumes tags to look for, use the format Key:Value. Can be used multiple times
  --rotate ROTATE       retention for snapshot
  --rotate-by-days ROTATE_DAYS
                        retention for snapshot, delete snapshots if there are older than N days
  --rotate-only         only rotate snapshots create by osc-bsu-backup
  --copy-tags           copy the volume tags to the created snapshots
  --region REGION       region
  --endpoint ENDPOINT   endpoint
  --profile PROFILE     aws profile to use, ~/.aws/credentials. Don't set to use environment variables
  --client-cert CLIENT_CERT
                        for TLS client authentication
  --debug               enable debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions