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

pip2 vs pip3 install #28

Closed
noraj opened this issue Jan 20, 2017 · 7 comments
Closed

pip2 vs pip3 install #28

noraj opened this issue Jan 20, 2017 · 7 comments
Assignees

Comments

@noraj
Copy link

noraj commented Jan 20, 2017

Hello I'm on Archlinux and defaut pip is symbolic link for pip3 and your tool doesn't install with pip3.
Your tool need pip2.

$ pip install --user -r requirements.txt                                                                                                                                                                                         [±master ✓]
Collecting scapy (from -r requirements.txt (line 1))
  Downloading scapy-2.3.3.tgz (1.4MB)
    100% |████████████████████████████████| 1.4MB 427kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-j3_xlo80/scapy/setup.py", line 36
        os.chmod(fname, 0755)
                           ^
    SyntaxError: invalid token
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-j3_xlo80/scapy/
                                                                                                                                                                                                                                             

$ pip2 install --user -r requirements.txt
Collecting scapy (from -r requirements.txt (line 1))
  Using cached scapy-2.3.3.tgz
Building wheels for collected packages: scapy
  Running setup.py bdist_wheel for scapy ... done
  Stored in directory: /home/noraj/.cache/pip/wheels/bd/cf/05/d5abc9b4434f39ffe231517dfb8dab96241fef6a99459051f9
Successfully built scapy
Installing collected packages: scapy
Successfully installed scapy-2.3.3                                 

Could you precise on the documentation to use pip2 or make it work with pip3 too. Thanks.

PS: create new tool and use old stuff (python2)...

@k4m4
Copy link
Owner

k4m4 commented Jan 20, 2017

Hi there.
$ sudo pip install -r requirements.txt works just fine I believe.
Thanks!

@k4m4 k4m4 self-assigned this Jan 20, 2017
@k4m4 k4m4 added the question label Jan 20, 2017
@noraj
Copy link
Author

noraj commented Jan 20, 2017

$ sudo pip install -r requirements.txt                                                                                                                                                                                           [±master ✓]
Collecting scapy (from -r requirements.txt (line 1))
  Downloading scapy-2.3.3.tgz (1.4MB)
    100% |████████████████████████████████| 1.4MB 544kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-huzjb1ct/scapy/setup.py", line 36
        os.chmod(fname, 0755)
                           ^
    SyntaxError: invalid token
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-huzjb1ct/scapy/

That's the same. I just explained you. In your distro pip must be a symlink for pip2 so that's work fine but for me it's a symlink for pip3 and your tool must use python2 and not be compatible with python3.

@k4m4
Copy link
Owner

k4m4 commented Jan 29, 2017

The solution to this issue can be found here: Issue #37. Please let me know if this resolves your issue. Thanks!

@k4m4 k4m4 closed this as completed Jan 29, 2017
@k4m4 k4m4 added the duplicate label Jan 29, 2017
@noraj
Copy link
Author

noraj commented Jan 30, 2017

@k4m4 : As you can see in my first comment I successfully installed kickthemout with pip2 install --user -r requirements.txt. I just asked you to correct your documentation to precise it's using python2 so pip2. I'll make a PR.

@k4m4
Copy link
Owner

k4m4 commented Jan 30, 2017

Hi there. Normal pip install usually works just fine. Thanks. @noraj1337

@noraj
Copy link
Author

noraj commented Jan 30, 2017

@k4m4 : Because you are using debian or a distibution that use pip2 as default pip but I use Archlinux that use pip3 as default pip.

$ pip -V
pip 9.0.1 from /usr/lib/python3.6/site-packages (python 3.6)
                                                                                                                     
$ pip2 -V
pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)
                                                                                                                     
$ pip3 -V
pip 9.0.1 from /usr/lib/python3.6/site-packages (python 3.6)

Do you understand?

PS: I made a PR: #58

@k4m4
Copy link
Owner

k4m4 commented Jan 30, 2017

I understand, of course. We might alter it to pip2. Thanks for the suggestion!

@noraj noraj mentioned this issue Feb 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants