Я использую BeautifulSoup и Python3 .8, и внезапно я получаю следующую ошибку. Все коды BeautifulSoup имеют одну и ту же проблему, которая работала до вчерашнего дня. Я ничего не обновлял.
Полный журнал ошибок показан ниже:
/Users/me/PycharmProjects/bankOfAmeri/venv/bin/python /Users/me/PycharmProjects/myfewsteps/onlyTitles.py
Traceback (most recent call last):
File "/Users/me/PycharmProjects/myfewsteps/onlyTitles.py", line 1, in <module>
import requests
File "/Users/me/PycharmProjects/myfewsteps/venv/lib/python3.8/site-packages/requests/__init__.py", line 43, in <module>
import urllib3
File "/Users/me/PycharmProjects/myfewsteps/venv/lib/python3.8/site-packages/urllib3/__init__.py", line 7, in <module>
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url
File "/Users/me/PycharmProjects/myfewsteps/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 7, in <module>
from socket import error as SocketError, timeout as SocketTimeout
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/socket.py", line 52, in <module>
import os, sys, io, selectors
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/selectors.py", line 11, in <module>
import math
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/math.cpython-38-darwin.so, 2): no suitable image found. Did find:
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/math.cpython-38-darwin.so: code signature in (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/math.cpython-38-darwin.so) not valid for use in process using Library Validation: Library load disallowed by System Policy
Process finished with exit code 1
Любое решение, которым я могу поделиться и решить.