Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keepalive exception handling not compatible with Python 3 in at least one place #9

Open
mhearne-usgs opened this issue Jul 20, 2020 · 0 comments · May be fixed by #11
Open

keepalive exception handling not compatible with Python 3 in at least one place #9

mhearne-usgs opened this issue Jul 20, 2020 · 0 comments · May be fixed by #11

Comments

@mhearne-usgs
Copy link

I'm not directly using keepalive, it is being used by some tool in the conda install chain. The error below occurs when trying to compile keepalive. I believe it is failing because line 240 is not valid Python 3 syntax. I think the correct syntax would be:

except (socket.error, httplib.HTTPException) as err:

pyc file failed to compile successfully (run_command failed)
python_exe_full_path: /Users/user/miniconda/envs/testenv2/bin/python3.7
py_full_path: /Users/user/miniconda/envs/testenv2/lib/python3.7/site-packages/networkx/algorithms/tests/test_structuralholes.py
pyc_full_path: /Users/user/miniconda/envs/testenv2/lib/python3.7/site-packages/keepalive/pycache/keepalive.cpython-37.pyc
compile rc: 1
compile stdout: *** Error compiling 'lib/python3.7/site-packages/keepalive/keepalive.py'...
File "lib/python3.7/site-packages/keepalive/keepalive.py", line 240
except (socket.error, httplib.HTTPException), err:
^
SyntaxError: invalid syntax

compile stderr:

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant