amazon web services - boto3 throws error in when packaged under rpm -


i using boto3 in project , when package rpm raising error while initializing ec2 client.

<class 'botocore.exceptions.datanotfounderror'>:unable load data for: _endpoints. traceback -traceback (most recent call last): file "roboclientlib/boto/awsdrlib.py", line 186, in _get_ec2_client file "boto3/__init__.py", line 79, in client file "boto3/session.py", line 200, in client file "botocore/session.py", line 789, in create_client file "botocore/session.py", line 682, in get_component file "botocore/session.py", line 809, in get_component file "botocore/session.py", line 179, in <lambda> file "botocore/session.py", line 475, in get_data file "botocore/loaders.py", line 119, in _wrapper file "botocore/loaders.py", line 377, in load_data datanotfounderror: unable load data for: _endpoints 

can me here. boto3 requires run time resolutions not able in rpm.

i tried using ld_library_path in /etc/environment not working.

export ld_library_path="/usr/lib/python2.6/site-packages/boto3:/usr/lib/python2.6/site-packages/boto3-1.2.3.dist-info:/usr/lib/python2.6/site-packages/botocore: 

i faced same issue:

botocore.exceptions.datanotfounderror: unable load data for: ec2/2016-04-01/service-2

for figured out directory missing. updating botocore running following solved issue:

pip install --upgrade botocore 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

c - getting error: cannot take the address of an rvalue of type 'int' -

How to merge four videos on one screen with ffmpeg -