I have a simple python 2.7 script using external module ("requests").. I'm using py2exe and having problem when running the exe.
test.py code:::
import requests
r = requests.get('https://api.github.com/')
print r.status_code
print r.text
setup.py code::::
from distutils.core import setup
import py2exe
setup(console=['youtube.py'], options = {'py2exe': { 'packages':['requests']}})
py2exe works for internal modules..but error for external modules.. error log::
D:\dist>youtube.exe
Traceback (most recent call last):
File "youtube.py", line 2, in <module>
File "requests\api.pyc", line 69, in get
File "requests\api.pyc", line 50, in request
File "requests\sessions.pyc", line 465, in request
File "requests\sessions.pyc", line 573, in send
File "requests\adapters.pyc", line 431, in send
requests.exceptions.SSLError: [Errno 2] No such file or directory