<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ssl_wrap_socket on Rowanto Luo</title><link>https://log.rowanto.com/categories/ssl_wrap_socket/</link><description>Recent content in Ssl_wrap_socket on Rowanto Luo</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Mon, 26 Jan 2015 20:11:28 +0000</lastBuildDate><atom:link href="https://log.rowanto.com/categories/ssl_wrap_socket/index.xml" rel="self" type="application/rss+xml"/><item><title>AWS Eb CLI (v3): How to fix ssl_wrap_socket error in Debian Jessie</title><link>https://log.rowanto.com/posts/aws-eb-cli-v3-how-to-fix-ssl_wrap_socket-error-in-debian-jessie/</link><pubDate>Mon, 26 Jan 2015 20:11:28 +0000</pubDate><guid>https://log.rowanto.com/posts/aws-eb-cli-v3-how-to-fix-ssl_wrap_socket-error-in-debian-jessie/</guid><description>
&lt;p&gt;This is the first time I&amp;rsquo;m deploying stuff to elasticbeanstalk, and when I&amp;rsquo;m trying to deploy my private project, I realized the eb cli I download is the version 2 and has different syntax. I installed the version 3, and it seems like it can only be installed using python package manager pip. After installing it, this is what I get:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;rowanto@Rowanto-Deb ~ $ eb
Traceback (most recent call last):
File &amp;quot;/usr/local/bin/eb&amp;quot;, line 9, in &amp;lt;module&amp;gt;
load_entry_point('awsebcli==3.0.10', 'console_scripts', 'eb')()
File &amp;quot;/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py&amp;quot;, line 519, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File &amp;quot;/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py&amp;quot;, line 2630, in load_entry_point
return ep.load()
File &amp;quot;/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py&amp;quot;, line 2310, in load
return self.resolve()
File &amp;quot;/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py&amp;quot;, line 2316, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File &amp;quot;/usr/local/lib/python2.7/dist-packages/ebcli/core/ebcore.py&amp;quot;, line 23, in &amp;lt;module&amp;gt;
from ..controllers.initialize import InitController
File &amp;quot;/usr/local/lib/python2.7/dist-packages/ebcli/controllers/initialize.py&amp;quot;, line 16, in &amp;lt;module&amp;gt;
from ..core.abstractcontroller import AbstractBaseController
File &amp;quot;/usr/local/lib/python2.7/dist-packages/ebcli/core/abstractcontroller.py&amp;quot;, line 21, in &amp;lt;module&amp;gt;
from ..core import io, fileoperations, operations
File &amp;quot;/usr/local/lib/python2.7/dist-packages/ebcli/core/operations.py&amp;quot;, line 25, in &amp;lt;module&amp;gt;
from ..lib import elasticbeanstalk, s3, iam, aws, ec2, elb
File &amp;quot;/usr/local/lib/python2.7/dist-packages/ebcli/lib/elasticbeanstalk.py&amp;quot;, line 25, in &amp;lt;module&amp;gt;
from ..lib import aws
File &amp;quot;/usr/local/lib/python2.7/dist-packages/ebcli/lib/aws.py&amp;quot;, line 17, in &amp;lt;module&amp;gt;
import botocore_eb.session
File &amp;quot;/usr/local/lib/python2.7/dist-packages/botocore_eb/session.py&amp;quot;, line 27, in &amp;lt;module&amp;gt;
import botocore_eb.credentials
File &amp;quot;/usr/local/lib/python2.7/dist-packages/botocore_eb/credentials.py&amp;quot;, line 27, in &amp;lt;module&amp;gt;
from botocore_eb.utils import InstanceMetadataFetcher, parse_key_val_file
File &amp;quot;/usr/local/lib/python2.7/dist-packages/botocore_eb/utils.py&amp;quot;, line 22, in &amp;lt;module&amp;gt;
from botocore_eb.vendored import requests
File &amp;quot;/usr/local/lib/python2.7/dist-packages/botocore_eb/vendored/requests/__init__.py&amp;quot;, line 53, in &amp;lt;module&amp;gt;
from .packages.urllib3.contrib import pyopenssl
File &amp;quot;/usr/local/lib/python2.7/dist-packages/botocore_eb/vendored/requests/packages/urllib3/contrib/pyopenssl.py&amp;quot;, line 55, in &amp;lt;module&amp;gt;
orig_connectionpool_ssl_wrap_socket = connectionpool.ssl_wrap_socket
AttributeError: 'module' object has no attribute 'ssl_wrap_socket'
rowanto@Rowanto-Deb ~ $
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And I&amp;rsquo;m like, what? Googling around the last line returns you many result, but not those relevant with the eb cli v3. There&amp;rsquo;s also a post which suggest that we use the bundle version (it&amp;rsquo;s a zip file) of aws cli, but I can&amp;rsquo;t find a bundle version of eb cli. Long story short, I found &lt;a href="https://github.com/boto/botocore/issues/266"&gt;this post&lt;/a&gt; which helped me to fix the problem. Thanks to @guss77!&lt;/p&gt;</description></item></channel></rss>