Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing the latest version downloads all versions of boto3 and botocore until it fails #135

Closed
dgallitelli opened this issue Nov 8, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@dgallitelli
Copy link

On all the devices I've tested - SageMaker Notebooks, SageMaker Notebook Instance (AL1 and AL2), personal MacBook 11.6 - I haven't been able to download and install sagify (neither current or older version. This is caused by some dependencies that fail to cohexist. In particular, it tries to download and install every boto3 and botocore package in existance, until eventually finding that:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
anaconda-project 0.9.1 requires ruamel-yaml, which is not installed.
docker-compose 1.29.2 requires docker[ssh]>=5, but you have docker 3.7.3 which is incompatible.
black 20.8b1 requires click>=7.1.2, but you have click 7.0 which is incompatible.
awscli 1.21.3 requires botocore==1.22.3, but you have botocore 1.18.18 which is incompatible.
awscli 1.21.3 requires s3transfer<0.6.0,>=0.5.0, but you have s3transfer 0.3.7 which is incompatible.
anyio 2.1.0 requires idna>=2.8, but you have idna 2.7 which is incompatible.
aiobotocore 1.3.0 requires botocore<1.20.50,>=1.20.49, but you have botocore 1.18.18 which is incompatible.

I can provide multiple tracelogs here:

SageMaker Notebook Instance AL2:
tracelog-sagemaker-notebook-instance-al2.txt

SageMaker Notebooks (SM Studio):
tracelog-sagemaker-notebooks-studio.txt

Macbook Pro:
tracelog-macbook-pro.txt

@jornfranke
Copy link

Can confirm it on Sagemaker notebooks. Also older versions of Sagify seems to be affected.

Additionally, on other environments I get:


 
Traceback (most recent call last):
  File "/home/ec2-user/environment/env/sagify/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
  File "/home/ec2-user/environment/env/sagify/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/ec2-user/environment/env/sagify/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 792, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (urllib3 1.24.3 (/home/ec2-user/environment/env/sagify/lib/python3.7/site-packages), Requirement.parse('urllib3<1.27,>=1.25.4'), {'botocore'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/home/ec2-user/environment/env/sagify/bin/sagify", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/home/ec2-user/environment/env/sagify/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3261, in <module>
    @_call_aside
  File "/home/ec2-user/environment/env/sagify/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3245, in _call_aside
    f(*args, **kwargs)
  File "/home/ec2-user/environment/env/sagify/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 3274, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/ec2-user/environment/env/sagify/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 586, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/ec2-user/environment/env/sagify/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 599, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/ec2-user/environment/env/sagify/lib64/python3.7/site-packages/pkg_resources/__init__.py", line 792, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (urllib3 1.24.3 (/home/ec2-user/environment/env/sagify/lib/python3.7/site-packages), Requirement.parse('urllib3<1.27,>=1.25.4'), {'botocore'})

@pm3310
Copy link
Contributor

pm3310 commented Nov 10, 2021

Thank you for catching this @dgallitelli @jornfranke . I'm looking into this

@pm3310 pm3310 added the bug Something isn't working label Nov 10, 2021
@pm3310 pm3310 self-assigned this Nov 10, 2021
@pm3310
Copy link
Contributor

pm3310 commented Jan 3, 2022

Hey @dgallitelli and @jornfranke , there's a new version of Sagify deployed, 0.21.1. It should solved this issue. Pls, let me know if you still experience the same problem

@pm3310 pm3310 closed this as completed May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants