Giter Site home page Giter Site logo

Comments (1)

sebdah avatar sebdah commented on June 14, 2024

Thanks for reporting this. I'm not able to replicate the issue. Below is an example where I created a virtualenv and ran pip install aws-ec2-assign-elastic-ip. I can then import the ec2_metadata package and also assign IPs.

If you could show me what the pip install output looks like, it'd be great. Might be that we could find some clues there.

Package list

(venv) sebdah@ip-10-10-92-207:~/test$ pip freeze
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
aws-ec2-assign-elastic-ip==0.10.2
boto3==1.12.39
botocore==1.15.39
cached-property==1.5.1
certifi==2020.4.5.1
chardet==3.0.4
docutils==0.15.2
ec2-metadata==1.8.0
futures==3.3.0
idna==2.9
jmespath==0.9.5
netaddr==0.7.19
python-dateutil==2.8.1
requests==2.23.0
s3transfer==0.3.3
six==1.14.0
urllib3==1.25.8

Importing ec2_metadata

(venv) sebdah@ip-10-10-92-207:~/test$ python
Python 2.7.15+ (default, Oct  7 2019, 17:39:04)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ec2_metadata
>>> quit()

Running the application

(venv) sebdah@ip-10-10-92-207:~/test$ aws-ec2-assign-elastic-ip --dry-run
2020-04-10 04:40:17,712 - aws-ec2-assign-eip - INFO - Connected to AWS EC2 in eu-west-1
2020-04-10 04:40:17,909 - aws-ec2-assign-eip - INFO - Would assign IP 34.247.120.9

AWS CLI details

(venv) sebdah@ip-10-10-92-207:~/test$ aws --version
aws-cli/1.16.184 Python/2.7.15+ Linux/4.15.0-1041-aws botocore/1.12.174

from aws-ec2-assign-elastic-ip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.