brew install on OSX has python issues
Bug #1792508 reported by
Damon Permezel
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
New
|
Undecided
|
Unassigned |
Bug Description
Running OSX 10.13.6.
Just did a brew update; followed by brew install byobu;
Within one Terminal.app screen, byobu starts.
Within an other Terminal.app, I get:
/opt/local/
/opt/local/
I tried to fix by placing a symlink in /usr/bin, but I guess OSX locks down /usr/bin as I was unable to do so.
There is a python3 in /opt/local/bin/
In the select-session.py file:
#!/usr/bin/python3
#
To post a comment you must log in.
I have exactly same issue, but I use MacPort to install Byobu.
I've just discovered it this week, previously was using GNU Screen and start experimenting with tmux and hit Byobu. I use it on WSL, Ubuntu and my MacOS 10.13.6
It work the 1st time on my Mac, but since then I've also performed:
sudo port selfupdate
sudo port upgrade outdated
Then it still started, but once detached, I'm unable to invoke byobu again is it outputs the same error as above: bin/byobu- select- session: /opt/local/ lib/byobu/ include/ select- session. py: /usr/bin/python3: bad interpreter: No such file or directory bin/byobu- select- session: line 24: /opt/local/ lib/byobu/ include/ select- session. py: Undefined error: 0
# delphym @ KiwiBook in /usr/bin [22:06:55]
$ byobu
/opt/local/
/opt/local/
I also use ohmyz.sh as a shell.
Also as above, I've tried to fix it by creating a symlink, but I couldn't because of Apple's System Integrity Protection. (More info here: https:/ /superuser. com/questions/ 933019/ sudo-cant- create- file-in- usr-bin- in-el-capitan)
Location of python(s) in my system is: python- config Library/ Frameworks/ Python. framework/ Versions/ 2.7/bin/ python2. 7 python2. 7-config -> ../../System/ Library/ Frameworks/ Python. framework/ Versions/ 2.7/bin/ python2. 7-config Library/ Frameworks/ Python. framework/ Versions/ 2.7/bin/ pythonw2. 7
$ ll /usr/bin/python*
-rwxr-xr-x 1 root wheel 65K 29 May 17:03 /usr/bin/python
-rwxr-xr-x 4 root wheel 925B 16 Jul 2017 /usr/bin/
lrwxr-xr-x 1 root wheel 75B 21 Oct 2017 /usr/bin/python2.7 -> ../../System/
lrwxr-xr-x 1 root wheel 82B 21 Oct 2017 /usr/bin/
-rwxr-xr-x 1 root wheel 65K 29 May 17:03 /usr/bin/pythonw
lrwxr-xr-x 1 root wheel 76B 21 Oct 2017 /usr/bin/pythonw2.7 -> ../../System/
$ ll `which python3` bin/python3 -> /opt/local/ bin/python3. 4
lrwxr-xr-x 1 root admin 24B 11 Sep 23:28 /opt/local/
Looking into the src: https:/ /github. com/dustinkirkl and/byobu/ blob/master/ usr/lib/ byobu/include/ select- session. py
it's not much obvious to me (I'm very much Python beginner) where it's getting the /usr/bin PATH set.
Many thanks for looking into this issue soon.