defaultnamehere / zzzzz

Roleplay as the NSA by making creepy graphs of your friends
MIT License
1.3k stars 131 forks source link

Pyhton problem #10

Closed thecorax closed 8 years ago

thecorax commented 8 years ago

With python2.7:

/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Got error from request, restarting...

python3:

Traceback (most recent call last):
  File "fetcher.py", line 6, in <module>
    import requests
ImportError: No module named requests

Yes, I read the page recommended for python2.7. No, I am not not able to fix it with the recommended solutions. Yes, I ran all that "pip install requests" etc, and the rest you can find here.

using my raspberry 2 with debian.

edit:

got a little further with: sudo apt-get install python3-requests

Traceback (most recent call last):
  File "fetcher.py", line 194, in <module>
    f.start_request()
  File "fetcher.py", line 110, in start_request
    resp = self.make_request()
  File "fetcher.py", line 52, in make_request
    raw_response = response_obj.text
  File "/usr/lib/python3/dist-packages/requests/models.py", line 831, in text
    content = str(self.content, encoding, errors='replace')
TypeError: str() argument 2 must be str, not None
thecorax commented 8 years ago

If you have the same problem you probably didn't enter the correct cookie/ client_id.

zeusk commented 8 years ago

@thecorax select the request to /pull and then select the Headers tab, inspect the response headers for the cookie.