Yelp / pyleus

Pyleus is a Python framework for developing and launching Storm topologies.
Apache License 2.0
404 stars 113 forks source link

ssl wrap error #164

Closed bboalimoe closed 8 years ago

bboalimoe commented 8 years ago

when i call the requests.post method it ouputs the following errors

File "/private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/0e24a2c0-88ee-4a19-ab3d-eeafac3cd752/supervisor/stormdist/streaming_topology-1-1446534564/resources/pyleus_venv/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py", line 80, in wrap_socket
    return wrap_socket(socket, ciphers=self.ciphers, **kwargs)
  File "/Users/zhanghengyang/anaconda/lib/python2.7/ssl.py", line 392, in wrap_socket
    ciphers=ciphers)
  File "/Users/zhanghengyang/anaconda/lib/python2.7/ssl.py", line 143, in __init__
    self._sslobj = _ssl.sslwrap(self._sock, server_side,
AttributeError: 'module' object has no attribute 'sslwrap'

AttributeError: 'module' object has no attribute 'sslwrap'

bboalimoe commented 8 years ago

i know the reason,for the pyleus use the virtualenv to compile the binary code executed on the storm platform... but the virtualenv use the default python intepreter which is the python 2.7.10. This versioin conflicts with ssl lib... but still need some configuable settings in the pyleus project~

thanks

poros commented 8 years ago

You can choose the python version used for the virtualenv in the yaml file describing your topology: http://yelp.github.io/pyleus/yaml.html#topology-level-options

bboalimoe commented 8 years ago

@poros thanks ~