homebrew-cask: Error on Casking VLC
Finally found out a workaround. See below
General troubleshooting steps
-
I understand that if I ignore these instructions, my issue may be closed without review.
-
I have retried my command with
--force. -
I ran
brew update-reset && brew updateand retried my command. -
I ran
brew doctor, fixed as many issues as possible and retried my command. -
I have checked the instructions for reporting bugs.
-
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
brew cask install vlc
Output of command with --force --verbose --debug
==> Downloading https://get.videolan.org/vlc/3.0.10/macosx/vlc-3.0.10.dmg
==> Downloading from https://mirror.netcologne.de/videolan.org/vlc/3.0.10/macosx/vlc-3.0.10.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'vlc'.
==> Installing Cask vlc
hdiutil attach -plist -nobrowse -readonly -noidme -mountrandom /var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/d20200614-1188-drwc9k /Users/abc/Library/Caches/Homebrew/downloads/83d2bc6f6f5405c3154d0931b3e0b919a5572e160746c72dd8921f9fdc97f80b--vlc-3.0.10.dmg
mkbom -s -i /var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/20200614-1188-ocambs.list -- /var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/20200614-1188-10vpazx.bom
ditto --bom /var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/20200614-1188-10vpazx.bom -- /private/var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/d20200614-1188-drwc9k/dmg.m9TJB6 /var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/d20200614-1188-13470l6
diskutil eject /private/var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/d20200614-1188-drwc9k/dmg.m9TJB6
cp -pR /var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/d20200614-1188-13470l6/VLC.app/. /usr/local/Caskroom/vlc/3.0.10/VLC.app
cp -pR /var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/d20200614-1188-13470l6/.background.tiff /usr/local/Caskroom/vlc/3.0.10/.background.tiff
chmod -Rf +w /var/folders/v8/q7kk0kxn7cg8rwc66wyb5cz80000gn/T/d20200614-1188-13470l6
==> Moving App 'VLC.app' to '/Applications/VLC.app'.
==> Linking Binary 'vlc.wrapper.sh' to '/usr/local/bin/vlc'.
==> Backing App 'VLC.app' up to '/usr/local/Caskroom/vlc/3.0.10/VLC.app'.
==> Removing App '/Applications/VLC.app'.
==> Purging files for version 3.0.10 of Cask vlc
Error: Failure while executing; `/usr/bin/xattr -w com.apple.metadata:kMDItemAlternateNames \(\"vlc\"\) /usr/local/Caskroom/vlc/3.0.10/vlc.wrapper.sh` exited with 1. Here's the output:
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
Follow the instructions here:
https://github.com/Homebrew/homebrew-cask#reporting-bugs
/usr/local/Homebrew/Library/Homebrew/system_command.rb:176:in `assert_success!'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:53:in `run!'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:29:in `run'
/usr/local/Homebrew/Library/Homebrew/system_command.rb:33:in `run!'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/relocated.rb:75:in `add_altname_metadata'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:67:in `create_filesystem_link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:54:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/binary.rb:9:in `link'
/usr/local/Homebrew/Library/Homebrew/cask/artifact/symlinked.rb:17:in `install_phase'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:218:in `block in install_artifacts'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/set.rb:777:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/set.rb:777:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:209:in `install_artifacts'
/usr/local/Homebrew/Library/Homebrew/cask/installer.rb:101:in `install'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:22:in `block in run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:16:in `each'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/install.rb:16:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:36:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:150:in `run'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:92:in `run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in `cask'
/usr/local/Homebrew/Library/Homebrew/brew.rb:110:in `<main>'
Output of brew cask doctor
==> Homebrew Version
2.4.0-41-g0125c4c
==> 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)
Output of brew tap
homebrew/cask
homebrew/core
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 24 (10 by maintainers)
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!