From: Toni B. <hih...@go...> - 2015-06-26 20:49:03
|
Hello py2exe users, i'm currently encountering the following problem, using python 2.7.10 and the newest httplib2, doing some youtube api research using the google-api-python-client library. Loading a httplib2.Http() object, I run into the following problem (of course just compiled with py2exe, not running as source code): ... File "oauth2client\util.pyo", line 137, in positional_wrapper File "oauth2client\client.pyo", line 1982, in step2_exchange File "httplib2\__init__.pyo", line 1608, in request File "httplib2\__init__.pyo", line 1350, in _request File "httplib2\__init__.pyo", line 1272, in _conn_request File "httplib2\__init__.pyo", line 1036, in connect File "httplib2\__init__.pyo", line 80, in _ssl_wrap_socket File "ssl.pyo", line 911, in wrap_socket File "ssl.pyo", line 520, in __init__ IOError: [Errno 2] No such file or directory At first I thought it would be the httplib2 certs which are missing, so I included them manually and gave the Http() call the location of the new file, but this didn't help. The ssl.py bundled with python itself does the buggy thing. Is there a way to include whatever python itself needs (I don't know what) manually or can that be patched into py2exe itself to prevent these errors in the future? Thanks for your answers. Best Regards. Toni Barth |