ozgur / python-linkedin

Python interface to the LinkedIn API
http://ozgur.github.com/python-linkedin/
MIT License
894 stars 392 forks source link

Error #112

Open athulaugustine opened 6 years ago

athulaugustine commented 6 years ago

at@at-Vostro-3445:~/Desktop/python-linkedin-master/examples$ python3 http_api.py Server started on port:8080 127.0.0.1 - - [11/Jun/2018 11:08:33] "GET / HTTP/1.1" 200 -

Exception happened during processing of request from ('127.0.0.1', 42956) Traceback (most recent call last): File "/usr/lib/python3.5/socketserver.py", line 625, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.5/socketserver.py", line 354, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.5/socketserver.py", line 681, in init self.handle() File "/usr/lib/python3.5/http/server.py", line 422, in handle self.handle_one_request() File "/usr/lib/python3.5/http/server.py", line 410, in handle_one_request method() File "http_api.py", line 62, in do_GET open_new_tab(liw.authentication.authorization_url) File "/home/at/.local/lib/python3.5/site-packages/linkedin/linkedin.py", line 112, in authorization_url qsl.append('%s=%s' % (quote(k), quote(v))) File "/usr/lib/python3.5/urllib/parse.py", line 712, in quote return quote_from_bytes(string, safe) File "/usr/lib/python3.5/urllib/parse.py", line 737, in quote_from_bytes raise TypeError("quote_from_bytes() expected bytes") TypeError: quote_from_bytes() expected bytes

127.0.0.1 - - [11/Jun/2018 11:08:34] "GET /favicon.ico HTTP/1.1" 200 -

Exception happened during processing of request from ('127.0.0.1', 42958) Traceback (most recent call last): File "/usr/lib/python3.5/socketserver.py", line 625, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.5/socketserver.py", line 354, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.5/socketserver.py", line 681, in init self.handle() File "/usr/lib/python3.5/http/server.py", line 422, in handle self.handle_one_request() File "/usr/lib/python3.5/http/server.py", line 410, in handle_one_request method() File "http_api.py", line 62, in do_GET open_new_tab(liw.authentication.authorization_url) File "/home/at/.local/lib/python3.5/site-packages/linkedin/linkedin.py", line 112, in authorization_url qsl.append('%s=%s' % (quote(k), quote(v))) File "/usr/lib/python3.5/urllib/parse.py", line 712, in quote return quote_from_bytes(string, safe) File "/usr/lib/python3.5/urllib/parse.py", line 737, in quote_from_bytes raise TypeError("quote_from_bytes() expected bytes") TypeError: quote_from_bytes() expected bytes