question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Paramiko for not installing with setup.py

See original GitHub issue

Describe the bug For some reason, python does not always install the paramiko fork referenced in setup.py. This causes people to have an argument error when connecting via SSH. To mitigate this, I’ve added a runtime check with inspect as a mitigation until the problem is fixed. The mitigation will tell the user how to fix the problem (which is one simple pip command).

If you have an older version of pwncat and run an ssh connection without the correct paramiko version you will get a message like this:

TypeError: recv() takes 2 positional arguments but 3 were given

To Reproduce Steps to reproduce the behavior:

  1. Attempt to connect to a target with SSH.

Expected behavior A successful connection.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
0xNirvanacommented, Sep 20, 2020

I’ll do this then. Thank you soo much for the guidance!

0reactions
sergiumatcommented, Mar 3, 2021

This worked for me:

sudo pip uninstall paramiko
sudo pip install -U git+https://github.com/calebstewart/paramiko
Read more comments on GitHub >

github_iconTop Results From Across the Web

paramiko installation for python failed : 'unable to find ...
I am trying to install paramiko package using pip and not able to proceed due to this error. OS: Win 10 x64. Python...
Read more >
Problem while installing paramiko, cryptography package in ...
While trying to install paramiko package for ironpython(2.7.9), ... ERROR: Complete output from command python setup.py egg_info: ERROR: Traceback (most ...
Read more >
Can't install packages and get setup.py egg_info error - Reddit
I can enter python with "python" in CMD, but when i try to install a package with "pip install paramiko" it says pip...
Read more >
How to Fix 'Python Setup.py egg_info' Failed with Error Code 1
The issue with python package managers. The good news is that you do not have to manually add other programmers' code (packages) into...
Read more >
Package installation issues | PyCharm Documentation
You might encounter a problem when installing a Python package in the project settings or in the Python Package tool window.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found