You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
brew gist-logs <formula> link OR brew config AND brew doctor output
brew config
HOMEBREW_VERSION: 4.0.22
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9d01e1deafca35f30b709b5f6a031faaff9642ec
Last commit: 21 hours ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 480317f32d9a2908002451092ac49b0d001541cd
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/Homebrew
HOMEBREW_REPOSITORY: /opt/Homebrew
HOMEBREW_CELLAR: /opt/Homebrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_INSTALL_FROM_API: set
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 14.0.3 build 1403
Git: 2.41.0 => /opt/Homebrew/bin/git
Curl: 7.88.1 => /usr/bin/curl
macOS: 13.4-arm64
CLT: 14.3.1.0.1.1683849156
Xcode: N/A
Rosetta 2: false
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: Your Homebrew's prefix is not /opt/homebrew.
Many of Homebrew's bottles (binary packages) can only be used with the default prefix.
Consider uninstalling Homebrew and reinstalling into the default prefix.
It is expected behaviour that some formulae will fail to build in this unsupported configuration.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
Verification
My "brew doctor output" says Your system is ready to brew. and am still able to reproduce my issue.
I ran brew update and am still able to reproduce my issue.
I have resolved all warnings from brew doctor and that did not fix my problem.
Running python3 says NameError: name 'new_prefix' is not defined
$ python3
Error in sitecustomize; set PYTHONVERBOSE for traceback:
NameError: name 'new_prefix' is not defined
Python 3.11.4 (main, Jun 13 2023, 08:01:26) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
What happened (include all command output)?
Checking if python3 is installed by homebrew
$ brew install python3
Warning: python@3.11 3.11.4 is already installed and up-to-date.
To reinstall 3.11.4, run:
brew reinstall python@3.11
$ python3
Error in sitecustomize;set PYTHONVERBOSE for traceback:
NameError: name 'new_prefix' is not defined
Python 3.11.4 (main, Jun 13 2023, 08:01:26) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license"for more information.
>>>
The text was updated successfully, but these errors were encountered:
I already know that the sitecustomize method generates error-containing Python script.
See the PR that I have opened to fix this issue.
IzumiSy
changed the title
Install python3 creates sitecustomze.py with syntax error
Install python3 creates sitecustomize.py with syntax error
Jun 13, 2023
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputbrew config
brew doctor
Verification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
Running
python3
saysNameError: name 'new_prefix' is not defined
What happened (include all command output)?
Checking if python3 is installed by homebrew
Install path
What did you expect to happen?
No error when runnnig
python3
.Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: