python-linkedin icon indicating copy to clipboard operation
python-linkedin copied to clipboard

Failed to import, invalid syntax

Open charleskawczynski opened this issue 6 years ago • 5 comments

Traceback (most recent call last): File "C:\Users\kawcz\Dropbox\PROGRAMMING\MAIN\job_search_scrape_linkedin\test.py", line 1, in from linkedin import linkedin File "C:\Users\kawcz\AppData\Local\Programs\Python\Python36\lib\site-packages\linkedin\linkedin.py", line 294 except (requests.ConnectionError, requests.HTTPError), error: ^ SyntaxError: invalid syntax

charleskawczynski avatar Jun 26 '18 21:06 charleskawczynski

Facing the same above issue !!!

shirishc avatar Jun 28 '18 07:06 shirishc

Whoops, looks like I reported this on Issue #115 but this is the same thing. Looks like we're trying to use Python 3 with something that was written for Python 2

ramosjoel avatar Jul 12 '18 00:07 ramosjoel

mentioned this on #115 aswell: pip install --upgrade https://github.com/ozgur/python-linkedin/tarball/master seems to solve the issue.

admhpr avatar Jul 17 '18 23:07 admhpr

@harps116 this didn't solve the issue

hsonetta avatar Apr 26 '19 06:04 hsonetta

mentioned this on #115 aswell: pip install --upgrade https://github.com/ozgur/python-linkedin/tarball/master seems to solve the issue.

This helped for me and I could import the linkedin package.

luisberns avatar Nov 01 '19 18:11 luisberns