[Docs] Fix Mac instructions in the install guide #3675
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!3675
Loading…
Reference in a new issue
No description provided.
Delete branch "jack1142-patch-9"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Description of the changes
Fixes #3436
@aikaterna hoping that you could verify this since you actually have Mac :)
Link to rendered version of docs: https://red-discordbot--3675.org.readthedocs.build/en/3675/install_linux_mac.html#mac
@ -167,4 +167,4 @@After the installation, install the required packages by pasting the commands and pressing enter,one-by-one:This should be all lowercase.
brew cask install adoptopenjdk/openjdk/adoptopenjdk11@ -167,4 +167,4 @@After the installation, install the required packages by pasting the commands and pressing enter,one-by-one:If they install through brew, it is installed with —-with-openssl with an openssl package that was built for brew, so there isn’t a need for the Install certificates.command note - they will only have that file if they have installed through the Python installer application.
I am in the process of testing the brew install command on various Macs. Homebrew has an open issue to migrate formulae to Python 3.8 but it is in progress - the default install on brew currently is Python 3.7.7. Python@3.8 is keg-only which means we will need to tell the system to use it as it is not symlinked into /usr/local. I will provide some suggested install instructions following this, after I confirm some more conditions/install situations.
The Homebrew install link also should be updated. Using what we have on the guide:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Leads to the response:
This new link provided works as expected.
These instructions are after installing python@3.8 through brew with
brew install python@3.8.ADD TO PATH
Check if your terminal is using zsh or bash. This will be at the top of the Terminal window in the title, and will show your Mac user name and then the terminal type.
Mac OS 10.15.x if using zsh:
echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> ~/.zshrcOther Mac OS versions or if still using bash on 10.15.x:
echo 'export PATH="/usr/local/opt/python@3.8/bin:$PATH"' >> ~/.bash_profileLINK PYTHON THROUGH BREW
brew list | grep pythonwill show which Python versions are installed through brew.For example, it may reply with a list of versions that are installed:
Use brew unlink to unlink other Python versions if they are present:
brew unlink pythonbrew unlink python3brew unlink python@2Then link the new Python version:
brew link python@3.8Check
brew list | grep pythonfirst to make sure. This command should show no Python installs besidespython@3.8. If there are other versions listed, use the instructions above in regards to unlinking them.Link the new Python:
brew link python@3.8If it replies with:
Warning: python@3.8 is keg-only and must be linked with --force, then use:brew link python@3.8 --forceIt should reply that it is creating the symlinks for 3.8 (
Linking /usr/local/Cellar/python@3.8/3.8.2... x symlinks created).VERIFY THE PYTHON INSTALL
To test the Python install, type:
python3.8 --versionThe terminal should respond with Python 3.8.2 or greater.
Just an outsiders view:
Instead of editing the bash_profile/zshrc, we may want to edit the .profile, this should simplify the instructions and the .profile should work the same across all MacOS versions.
And doing so reduces the risk of users accidentally messing up their bash_profile/zshrc, as they will be editing only the .profile which is often empty on Mac,
Also to note, perhaps in those instructions above, if they try to

brew linkpython without the bindings being freed thoughbrew unlink, the following can occur:We would want to caution users against the --overwrite flag and encourage unlinking if possible (this warning also shows what owns the link, in this case,
python).Turns out all the fun and games with brew link aren't needed.