tam7t / photograbber

Download photos from Facebook
GNU General Public License v3.0
80 stars 41 forks source link

Login raises ssl error #6

Open Aeva opened 10 years ago

Aeva commented 10 years ago

I get as far as entering the token and hitting next; a progress box appears, followed swiftly by this error message: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib

Aeva commented 10 years ago

Cmd mode gives this traceback after the token is entered: Traceback (most recent call last): File "./pg.py", line 245, in main() File "./pg.py", line 118, in main my_info = peoplegrab.get_info('me') File "/home/aeva/clutter/photograbber/helpers.py", line 42, in get_info return self.graph.get_data(rid) File "/home/aeva/clutter/photograbber/facebook.py", line 297, in get_data raise retErr requests.exceptions.SSLError: [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib

Aeva commented 10 years ago

A quick hack to get things working (for the benefit of other unfortunate souls wanting to use this code), change line 103 of facebook.py to read: r = requests.get(path, params=args, verify=False)

Note that this pretty much defeats the point of ssl.

Aeva commented 10 years ago

... and again on line 474 of helpers.py: r = requests.get(web_path, verify=False)

tam7t commented 10 years ago

Sorry for the delayed response. Yeah, disabling SSL is definitely not a good idea. I believe this issue comes from the way photograbber references the requests library. Reference Issue https://github.com/tam7t/photograbber/issues/2 for more information. Knowing your OS and python/requests configuration would help debug further.