#28921: tor-prompt command 'GETINFO desc/all-recent > /dev/null' fails
---------------------------+-----------------------------------
 Reporter:  wagon          |          Owner:  atagar
     Type:  defect         |         Status:  needs_information
 Priority:  Medium         |      Milestone:
Component:  Core Tor/Stem  |        Version:
 Severity:  Normal         |     Resolution:
 Keywords:  descriptor     |  Actual Points:
Parent ID:                 |         Points:
 Reviewer:                 |        Sponsor:
---------------------------+-----------------------------------

Comment (by wagon):

 > The shebang does not differ between Stem 1.7.0 and the current master
 branch...
 Yes. The same is true for 1.6.0. All of them have `#!/usr/bin/env python`
 as shebang.

 > The shebang probably differs due to how you installed it. If installed
 via pip then iirc it rewrites shebangs to use the interpreter that you
 installed through.
 It seems to be true. I installed my 1.6.0 using `pip3`, so shebang was
 rewritten to use `python3` explicitly. However, when I followed
 [[https://trac.torproject.org/projects/tor/ticket/28332#comment:7|your
 recommendations]] and directly used git, I didn't get this shebang
 rewritten, so it sticks to python2:
 {{{
 $ file /usr/bin/python
 /usr/bin/python: symbolic link to python2.7
 }}}
 I was confused by `whereis` ordering which lists python3 versions first:
 {{{
 $ whereis python
 python:
 /usr/bin/python3.4m
 /usr/bin/python3.4
 /usr/bin/python
 /usr/bin/python2.7
 /usr/lib/python3.4
 /usr/lib/python2.6
 /usr/lib/python2.7
 /etc/python3.4
 /etc/python
 /etc/python2.7
 /usr/local/lib/python3.4
 /usr/local/lib/python2.7
 /usr/include/python2.7
 /usr/share/python
 /usr/share/man/man1/python.1.gz
 }}}
 Nevertheless, as symlink says, python2 is used by default.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28921#comment:11>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs

Reply via email to