16.7 C
New York
Tuesday, October 8, 2024

mac – Python set up damaged after Homebrew auto up to date


My python set up was tousled after I ran the command brew set up curl inflicting Homebrew to auto replace.

Since then, I found that matplotlib was not put in (it was earlier than the replace), which I needed to set up with brew and never pip, and every time I import the newly put in matlplotlib.pyplot, there may be an error relating to not discovering PIL. Putting in Pillow doesn’t have any impact on this error.

Is there a solution to reverse that to when every part labored effectively on my Mac? I’m operating macOS Sonoma 14.5.

Any assistance is welcome. Thanks!

============= ERROR on importing matplotlib =============================

himilcon [Documents]  % python3   
Python 3.12.4 (foremost, Jun  6 2024, 18:26:44) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Sort "assist", "copyright", "credit" or "license" for extra data.

>>> import matplotlib.pyplot as plt
Traceback (most up-to-date name final):
  File "<stdin>", line 1, in <module>
  File "/choose/homebrew/Cellar/python-matplotlib/3.9.1/libexec/lib/python3.12/site-packages/matplotlib/__init__.py", line 159, in <module>
    from . import _api, _version, cbook, _docstring, rcsetup
  File "/choose/homebrew/Cellar/python-matplotlib/3.9.1/libexec/lib/python3.12/site-packages/matplotlib/rcsetup.py", line 28, in <module>
    from matplotlib.colours import Colormap, is_color_like
  File "/choose/homebrew/Cellar/python-matplotlib/3.9.1/libexec/lib/python3.12/site-packages/matplotlib/colours.py", line 52, in <module>
    from PIL import Picture
ModuleNotFoundError: No module named 'PIL'
>>> give up()
> 
> 


=========== auto replace preliminary traces ===================================

himilcon [depends]  % brew set up curl                                                 
==> Auto-updating Homebrew...
Alter how typically that is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Conceal these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Auto-updated Homebrew!
Up to date 2 faucets (homebrew/core and homebrew/cask).
==> New Formulae
[email protected]                                                               tdb
==> New Casks
avbeam                                           duplicateaudiofinder                             twingate
Error: Surprising technique 'appcast' referred to as on Cask adoptopenjdk8.
Observe the directions right here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs

You could have 125 outdated formulae and 1 outdated cask put in.
Error: Surprising technique 'appcast' referred to as on Cask adoptopenjdk8.
Observe the directions right here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
Error: Surprising technique 'appcast' referred to as on Cask adoptopenjdk8.
Observe the directions right here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
==> Migrating method atk to at-spi2-core
==> Unlinking atk
==> Transferring atk variations to /choose/homebrew/Cellar/at-spi2-core
==> Relinking at-spi2-core
Warning: at-spi2-core is outdated!
To keep away from damaged installations, as quickly as attainable please run:
  brew improve
Or, for those who're OK with a much less dependable repair:
  brew improve at-spi2-core

==> Downloading https://ghcr.io/v2/homebrew/core/curl/manifests/8.8.0
########################################################################################################################################### 100.0%
==> Fetching dependencies for curl: brotli, libunistring, gettext, libidn2, libnghttp2, ca-certificates, openssl@3, libssh2, openldap, rtmpdump, xz and zstd

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles