Closed cdr-chakotay closed 4 years ago
@cdr-chakotay There seems to be an issue with your installation of Python. You can try to reinstall it with...
$ brew reinstall python3
Then maybe, if it's still not working for you...
$ pip3 install --upgrade pip setuptools wheel
Sorry to say, but does not do the trick for me. I am still in the Error :(
Traceback (most recent call last):
File "/usr/bin/xattr", line 8, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
Yes Sir:
$echo $PATH
/usr/local/opt/python/libexec/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/MacGPG2/bin:/Library/Apple/usr/bin
and
$python --version
Python 3.7.7
It's a little wired isn't it?
@cdr-chakotay What about $ which python
and $ brew info python
?
@cdr-chakotay What about
$ which python
and$ brew info python
?
I think were getting closer: which python replies "python not found"
And brew does this piece of output:
python: stable 3.7.7 (bottled), HEAD
Interpreted, interactive, object-oriented programming language
https://www.python.org/
/usr/local/Cellar/python/3.7.7 (4,007 files, 61.3MB) *
Poured from bottle on 2020-06-14 at 18:24:00
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/python.rb
==> Dependencies
Build: pkg-config ✘
Required: gdbm ✔, openssl@1.1 ✔, readline ✔, sqlite ✔, xz ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
Python has been installed as
/usr/local/bin/python3
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
/usr/local/opt/python/libexec/bin
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.7/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
==> Analytics
install: 184,609 (30 days), 904,076 (90 days), 5,189,932 (365 days)
install-on-request: 153,292 (30 days), 595,046 (90 days), 2,747,963 (365 days)
build-error: 0 (30 days)
@cdr-chakotay That is strange. Does it work if you remove the python
path from your $PATH
?
Nah it does not. ... Sadly. I will try do get rid of python and reinstall XCode and Stuff which has Pyhton and will come back to you
@cdr-chakotay Tbh I feel like this is more a brew
issue than it is a cask
issue. I don't mind helping you but you might get better support if you open up an issue with them. Hence I'll be closing the issue here, but we can continue to communicate on this issue.
That said, IMPO I wouldn't use brew
or any 'non-pinning' package manager to install python
. FMU the main reason is that brew
will overwrite your python
on upgrading. Personally, I use asdf
.
Anyways, to continue helping you, could you paste the output of brew doctor
?
Even the Python purge ist not a successfull option. Maybe it's a specific VLC problem ...
Regarding non pinning i do not clearly understand what your are trying to mell. Is it about new versions and resulting problems?
Thanks for your support so far!
Regarding the brew doctor:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/fakemysql.h
/usr/local/include/fakepq.h
/usr/local/include/fakesql.h
/usr/local/include/itcl.h
/usr/local/include/itcl2TclOO.h
/usr/local/include/itclDecls.h
/usr/local/include/itclInt.h
/usr/local/include/itclIntDecls.h
/usr/local/include/itclMigrate2TclCore.h
/usr/local/include/itclTclIntStubsFcn.h
/usr/local/include/mysqlStubs.h
/usr/local/include/odbcStubs.h
/usr/local/include/pqStubs.h
/usr/local/include/tcl.h
/usr/local/include/tclDecls.h
/usr/local/include/tclOO.h
/usr/local/include/tclOODecls.h
/usr/local/include/tclPlatDecls.h
/usr/local/include/tclThread.h
/usr/local/include/tclTomMath.h
/usr/local/include/tclTomMathDecls.h
/usr/local/include/tdbc.h
/usr/local/include/tdbcDecls.h
/usr/local/include/tdbcInt.h
/usr/local/include/tk.h
/usr/local/include/tkDecls.h
/usr/local/include/tkPlatDecls.h
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/tcl.pc
/usr/local/lib/pkgconfig/tk.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a
@cdr-chakotay Is there any way you installed python
via an installer or some other route? The output of brew doctor
would make one believe you installed python
via some other method besides brew
.
Yes i did a time ago but also removed it. Turns out only partial removed it i guess? Do you know how to fix that? Can not find any residues anymore
@cdr-chakotay I don't install python
manually like this so I don't have a 'for-sure' solution for you. Sorry.
At least it doesn't launch when i type python3. Python launches 2. which is part of MacOS i guess. Maybe just install it with the installer over again. Well, never had those issues with Java JDK. Don't know whats happening there.
Ah maybe this librarys are also caused by R which i am using. I think it install kind of parts of python.
@cdr-chakotay you stated that the command which python
reported python not found
, which will cause you a lot of problems because this implies that perhaps the system Python provided by macOS is not in your PATH
.
What is the output of /usr/bin/python --version
?
/usr/bin/python --version It's:
/usr/bin/python --version Python 2.7.16
Did some reconfigurations and uninstalls.... I am so far:
which python
/usr/bin/python
Will reboot my mac (happens not often) and reinstall XCODE and brew. Let's see what we get. Will post the new brew doctor then
@cdr-chakotay good news.
Turning back to your original issue, does brew cask install vlc --no-quarantine
work?
So for now i am
brew doctor
Your system is ready to brew.
And python is also fine. Let's see whats cask brings up:
brew cask doctor
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 445763 (delta 0), reused 0 (delta 0), pack-reused 445762
Receiving objects: 100% (445763/445763), 201.02 MiB | 3.63 MiB/s, done.
Resolving deltas: 100% (315808/315808), done.
Tapped 1 command and 3580 casks (3,697 files, 215.7MB).
==> Homebrew Version
2.4.0
==> macOS
10.15.5
==> SIP
Enabled
==> Java
13.0.1, 11.0.7, 1.8.0_251
==> xattr issues
Traceback (most recent call last):
File "/usr/bin/xattr", line 8, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
Error: wrong number of arguments (given 2, expected 1)
Seems to be more cask issue or not @ran-dall
Seems to be more cask issue or not
Not. A xattr
issue is an issue with Python.
Finally figured it out. I did: My MacOS default install had no pip (Is that normal)? So installed pip, the setuptools, wheel and xattr
$curl https://bootstrap.pypa.io/get-pip.py | sudo python
$python -m pip install --upgrade pip setuptools wheel
$python -m pip install --upgrade xattr==0.6.4
And here we go:
==> Downloading https://get.videolan.org/vlc/3.0.10/macosx/vlc-3.0.10.dmg
==> Downloading from https://ftp.halifax.rwth-aachen.de/videolan/vlc/3.0.10/macosx/vlc-3.
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'vlc'.
==> Installing Cask vlc
==> Moving App 'VLC.app' to '/Applications/VLC.app'.
==> Linking Binary 'vlc.wrapper.sh' to '/usr/local/bin/vlc'.
🍺 vlc was successfully installed!
Is it standard for mac not having those modules??
Is it standard for mac not having those modules??
No, but it is also not standard to have which python
report python not found
.
Yeah still quite strange. Never touched system Python. Don't know how this could have happened.
At least running flawless right now.
Thanks for your inspiration and help 👍
Finally found out a workaround. See below
General troubleshooting steps
[x] I understand that if I ignore these instructions, my issue may be closed without review.
[x] I have retried my command with
--force
.[x] I ran
brew update-reset && brew update
and retried my command.[x] I ran
brew doctor
, fixed as many issues as possible and retried my command.[x] I have checked the instructions for reporting bugs.
[x] I made doubly sure this is not a checksum does not match error.
Description of issue
Getting this error when i try to cask the VLC Player, tried BlueJ for reference. That one worked, VLC does not. Hope you can help me out with that. Have this issue randomly appearing with random pakages. I know there have been already xattr bugs. I tried already some fixes. Would be happy if anybody knows how to solve that :) Thank you in advance!
Command that failed
Output of command with
--force --verbose --debug
Output of
brew cask doctor
Output of
brew tap