Title: installation failed · Issue #8 · pycopia/ssh2-python3 · GitHub
Open Graph Title: installation failed · Issue #8 · pycopia/ssh2-python3
X Title: installation failed · Issue #8 · pycopia/ssh2-python3
Description: $ docker run --rm -it public.ecr.aws/sam/build-python3.10:latest-x86_64 bash bash-4.2# pip install ssh2-python3 Collecting ssh2-python3 Downloading ssh2-python3-1.11.1.tar.gz (613 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 613.6/613.6 ...
Open Graph Description: $ docker run --rm -it public.ecr.aws/sam/build-python3.10:latest-x86_64 bash bash-4.2# pip install ssh2-python3 Collecting ssh2-python3 Downloading ssh2-python3-1.11.1.tar.gz (613 kB) ━━━━━━━━━━━━━...
X Description: $ docker run --rm -it public.ecr.aws/sam/build-python3.10:latest-x86_64 bash bash-4.2# pip install ssh2-python3 Collecting ssh2-python3 Downloading ssh2-python3-1.11.1.tar.gz (613 kB) ━━━━━━━━━━━━━...
Opengraph URL: https://github.com/pycopia/ssh2-python3/issues/8
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"installation failed","articleBody":"```\r\n$ docker run --rm -it public.ecr.aws/sam/build-python3.10:latest-x86_64 bash\r\nbash-4.2# pip install ssh2-python3\r\nCollecting ssh2-python3\r\n Downloading ssh2-python3-1.11.1.tar.gz (613 kB)\r\n ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 613.6/613.6 kB 2.5 MB/s eta 0:00:00\r\n Preparing metadata (setup.py) ... error\r\n error: subprocess-exited-with-error\r\n \r\n × python setup.py egg_info did not run successfully.\r\n │ exit code: 1\r\n ╰─\u003e [6 lines of output]\r\n Traceback (most recent call last):\r\n File \"\u003cstring\u003e\", line 2, in \u003cmodule\u003e\r\n File \"\u003cpip-setuptools-caller\u003e\", line 34, in \u003cmodule\u003e\r\n File \"/tmp/pip-install-wlztxhc4/ssh2-python3_8e5bb10e4a3f469488c4fdbe80b612ed/setup.py\", line 8, in \u003cmodule\u003e\r\n from Cython.Distutils.extension import Extension\r\n ModuleNotFoundError: No module named 'Cython'\r\n [end of output]\r\n \r\n note: This error originates from a subprocess, and is likely not a problem with pip.\r\nerror: metadata-generation-failed\r\n\r\n× Encountered error while generating package metadata.\r\n╰─\u003e See above for output.\r\n\r\nnote: This is an issue with the package mentioned above, not pip.\r\nhint: See above for details.\r\n\r\n[notice] A new release of pip is available: 23.0.1 -\u003e 23.2\r\n[notice] To update, run: pip install --upgrade pip\r\n```\r\n\r\n\r\nAfter manual installation of Cython there is another error\r\n```\r\ngcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -Ilibssh2/include -I/var/lang/include/python3.10 -c ssh2/knownhost.c -o build/temp.linux-x86_64-cpython-310/ssh2/knownhost.o -O3\r\n gcc -pthread -shared -Wl,-rpath=/var/lang/lib build/temp.linux-x86_64-cpython-310/ssh2/knownhost.o -L/tmp/pip-install-qq19ux6x/ssh2-python3_2e993007002f46589797c2c73a8da3b4/build/glibc2.26/src -L/var/lang/lib -lssh2 -lssl -lcrypto -lz -o build/lib.linux-x86_64-cpython-310/ssh2/knownhost.cpython-310-x86_64-linux-gnu.so\r\n /usr/bin/ld: cannot find -lssh2\r\n /usr/bin/ld: cannot find -lssl\r\n /usr/bin/ld: cannot find -lcrypto\r\n collect2: error: ld returned 1 exit status\r\n```\r\n\r\nSo I had to manually install `libssh2-devel` and `openssl-devel` to make it working.\r\n\r\nI believe all of this happens because there are no pre-built binaries for Amazon Linux.\r\nSo I'm wondering where it's possible to add distributions with pre-built binaries. \r\n\r\n---\r\n\r\nEven after successful installation it still doesn't work\r\n```\r\nImportError: /var/lang/lib/python3.10/site-packages/ssh2/session.cpython-310-x86_64-linux-gnu.so: undefined symbol: libssh2_userauth_publickey_frommemory\r\n```\r\n```\r\nbash-4.2# nm -D /lib64/libssh2.so.1 | grep libssh2_userauth_publickey_frommemory\r\nbash-4.2# nm -D /lib64/libssh2.so.1 | grep libssh2_userauth_publickey\r\n0000000000019e90 T libssh2_userauth_publickey\r\n0000000000019cf0 T libssh2_userauth_publickey_fromfile_ex\r\n```\r\n","author":{"url":"https://github.com/Ri0n","@type":"Person","name":"Ri0n"},"datePublished":"2023-07-17T10:22:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/8/ssh2-python3/issues/8"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8b773c14-597c-e803-c077-a1286b2daa37 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE20:F2B91:F694A0:149F199:6969A423 |
| html-safe-nonce | 568853f681015e53dd7f880980f2d37de3b578ee4f073bfcb5900f6e9dbbaf91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTIwOkYyQjkxOkY2OTRBMDoxNDlGMTk5OjY5NjlBNDIzIiwidmlzaXRvcl9pZCI6Ijc2ODY2MjExMTc5MzMwMDM4MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 77cdd5e699d0dda53fbd1dab6283b0dd2d98a8d057c2cf592fb34f687ce8199c |
| hovercard-subject-tag | issue:1807453020 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/pycopia/ssh2-python3/8/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6be7214875f8eff0f527ae0f58478ce5e7d0a3211a881e9c42bfd700a8352f96/pycopia/ssh2-python3/issues/8 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6be7214875f8eff0f527ae0f58478ce5e7d0a3211a881e9c42bfd700a8352f96/pycopia/ssh2-python3/issues/8 |
| og:image:alt | $ docker run --rm -it public.ecr.aws/sam/build-python3.10:latest-x86_64 bash bash-4.2# pip install ssh2-python3 Collecting ssh2-python3 Downloading ssh2-python3-1.11.1.tar.gz (613 kB) ━━━━━━━━━━━━━... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Ri0n |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/pycopia/ssh2-python3 git https://github.com/pycopia/ssh2-python3.git |
| octolytics-dimension-user_id | 69616992 |
| octolytics-dimension-user_login | pycopia |
| octolytics-dimension-repository_id | 287187423 |
| octolytics-dimension-repository_nwo | pycopia/ssh2-python3 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 287187423 |
| octolytics-dimension-repository_network_root_nwo | pycopia/ssh2-python3 |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width