Is there also an ssl.pyc file inside library.zip? There is when I freeze
it, but I have requests 2.0.0 rather than 1.2.0.
Thomas
On 10 December 2013 13:51, Stephen Huenneke <stephen.huenn...@gmail.com>wrote:
> Hi all,
>
> I'm working on building a distributable Python 2.7 app that has a
> requirement on the Requests module. This in-turn requires httplib, which in
> turn requires the socket library. For whatever reason when I attempt to
> connect to an HTTPS url, the executable throws me an error that indicates
> the socket module it's using was compiled without SSL support.
>
> My build folder clearly has a _ssl.so module in it and the application
> itself seems to start properly until an HTTPS request is made and the ssl
> module is used in the socket module. I'm not sure exactly what is going on
> to cause it to not locate the _ssl.so library that's clearly there.
>
> Here's some example output:
> Traceback (most recent call last):
> File
> "example/lib/python2.7/site-packages/cx_Freeze-4.3.2-py2.7-linux-x86_64.egg/cx_Freeze/initscripts/Console.py",
> line 27, in <module>
> File "example.py", line 4, in <module>
> File
> "example/lib/python2.7/site-packages/requests-1.2.0-py2.7.egg/requests/api.py",
> line 55, in get
> File
> "example/lib/python2.7/site-packages/requests-1.2.0-py2.7.egg/requests/api.py",
> line 44, in request
> File
> "example/lib/python2.7/site-packages/requests-1.2.0-py2.7.egg/requests/sessions.py",
> line 354, in request
> File
> "example/lib/python2.7/site-packages/requests-1.2.0-py2.7.egg/requests/sessions.py",
> line 460, in send
> File
> "example/lib/python2.7/site-packages/requests-1.2.0-py2.7.egg/requests/adapters.py",
> line 250, in send
> requests.exceptions.SSLError: Can't connect to HTTPS URL because the SSL
> module is not available.
>
> I've made a simple example to demonstrate:
> https://github.com/skastel/broken-cx-freeze
>
> To reproduce, build on any Python 2.7 machine then send it over to another
> machine ideally with a different distro. I built using Fedora 19 or CentOS
> 6.5 and sent to both an Ubuntu 12.04 instance and an Amazon Linux 2013.09.1
> instance. The
>
> Any ideas on how I what is going on to cause the built project to not
> include the SSL module? Which version of the sockets module is running? Is
> it using the one I built with or the one on the machine it's being executed
> on?
>
> Thanks.
>
> --
> ///Stephen - http://sdh.skarilla.com
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> cx-freeze-users mailing list
> cx-freeze-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users