ParallelSSH / parallel-ssh

Asynchronous parallel SSH client library.
https://parallel-ssh.org
GNU Lesser General Public License v2.1
1.2k stars 148 forks source link

python 3.10 crashes #336

Closed wynnw closed 2 years ago

wynnw commented 2 years ago

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 https://github.com/cython/cython/issues/3876 for more discussion on the issue.

wynnw commented 2 years ago

Looks like this was fixed with ssh2-python here: https://github.com/ParallelSSH/ssh2-python/pull/156

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

wynnw commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

https://parallel-ssh.readthedocs.io/en/latest/ does work.

pkittenis commented 2 years ago

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