Skip to content

python 3.10 crashes #336

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

Closed
wynnw opened this issue Feb 15, 2022 · 5 comments
Closed

python 3.10 crashes #336

wynnw opened this issue Feb 15, 2022 · 5 comments

Comments

@wynnw
Copy link

wynnw commented Feb 15, 2022

For general questions please use the mail group.

Describe the bug
A clear and concise description of what the bug is.
Using this python 3.10 crashes with:
ImportError: /lib/python3.10/site-packages/pssh/native/_ssh2.cpython-310-x86_64-linux-gnu.so: undefined symbol: _PyGen_Send

To Reproduce

Steps to reproduce the behavior:

  1. Create a virtualenv with python3.10
  2. $ /bin/pip install parallel-ssh
  3. $ <venv/bin/python3.10 -c "from pssh.clients import ParallelSSHClient"

Expected behavior
Import should work

Actual behaviour
Crash!

Additional information
I get parallel-ssh 1.13.0 installed. It looks to be a common problem with the version of cython that was used to generate files and python 3.10. It still crashes if I install cython 0.29.27 into the venv and then run:
pip install --no-binary "parallel-ssh,ssh2-python" parallel-ssh==1.13.0

See
cython/cython#3876
for more discussion on the issue.

@wynnw
Copy link
Author

wynnw commented Feb 15, 2022

Looks like this was fixed with ssh2-python here: ParallelSSH/ssh2-python#156

but somehow it hasn't gotten into the parallel-ssh release.

@wynnw
Copy link
Author

wynnw commented Feb 15, 2022

Somehow in reading docs and using pypi.org I ended up installing 1.13.0 and the latest release is 2.8.0 which doesn't have the problem. Not sure how I got in that state. Sorry for the noise.

@wynnw wynnw closed this as completed Feb 15, 2022
@wynnw
Copy link
Author

wynnw commented Feb 15, 2022

I got confused by the https://parallel-ssh.readthedocs.io/en/1.13.0/ link which is the only readthedocs link I found, so I thought 1.13.0 was the latest version. I can't seem to find a 2.8.0 version of the docs.

@wynnw
Copy link
Author

wynnw commented Feb 15, 2022

@pkittenis
Copy link
Member

I'll remove the pinned old version of the documentation to avoid confusion. Thanks.

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

No branches or pull requests

2 participants