Comments (2)
I'm not quite sure on what I changed to go from the timeout errors I was receiving to SSL errors but I fixed those by upgrading aiohttp from 3.6.0 to 3.8.0 and then I fixed my PyNacl issue by updating that to 1.5.0 despite it saying it's not compatible with some packages. It works fine for youtube, bandcamp, soundcloud but not spotify most likely due to an incompatibility with the spotipy package
Here is a current package list
namo@namo-svr2:~/DingoLingo/musicbot$ python3.7 -m pip list
Package Version
---------------------- --------------------
aiohttp 3.8.0
aiosignal 1.2.0
apturl 0.5.2
async-timeout 4.0.2
asyncio 3.4.3
asynctest 0.13.0
attrs 21.4.0
bcrypt 3.1.7
beautifulsoup4 4.10.0
blinker 1.4
Brlapi 0.7.0
Brotli 1.0.9
certifi 2019.11.28
cffi 1.15.0
chardet 3.0.4
charset-normalizer 2.0.12
Click 7.0
colorama 0.4.3
command-not-found 0.3
cryptography 2.8
cupshelpers 1.0
dbus-python 1.2.16
defer 1.0.6
discord.py 1.7.3
distro 1.4.0
distro-info 0.23ubuntu1
duplicity 0.8.12.0
entrypoints 0.3
fasteners 0.14.1
frozenlist 1.3.0
future 0.18.2
httplib2 0.14.0
idna 2.8
keyring 18.0.1
language-selector 0.1
launchpadlib 1.10.13
lazr.restfulclient 0.14.2
lazr.uri 1.0.3
lockfile 0.12.2
louis 3.12.0
macaroonbakery 1.3.1
Mako 1.1.0
MarkupSafe 1.1.0
monotonic 1.5
multidict 6.0.2
mutagen 1.45.1
netifaces 0.10.4
oauthlib 3.1.0
olefile 0.46
paramiko 2.6.0
pbr 5.8.1
pexpect 4.6.0
Pillow 7.0.0
pip 22.0.4
protobuf 3.6.1
py-cord 1.7.3
pycairo 1.16.2
pycparser 2.21
pycryptodomex 3.14.1
pycups 1.9.73
PyGObject 3.36.0
PyJWT 1.7.1
pymacaroons 0.13.0
PyNaCl 1.5.0
pyRFC3339 1.1
python-apt 2.0.0+ubuntu0.20.4.7
python-dateutil 2.7.3
python-debian 0.1.36ubuntu1
pytz 2019.3
pyxattr 0.6.1
pyxdg 0.26
PyYAML 5.3.1
reportlab 3.5.34
requests 2.27.1
requests-unixsocket 0.2.0
SecretStorage 2.3.1
setuptools 60.9.3
simplejson 3.16.0
six 1.16.0
soupsieve 2.3.1
spotipy 2.19.0
systemd-python 234
testresources 2.0.1
typing_extensions 4.1.1
ubuntu-advantage-tools 27.6
ubuntu-drivers-common 0.0.0
ufw 0.36
unattended-upgrades 0.1
urllib3 1.24.3
usb-creator 0.3.7
wadllib 1.3.3
websockets 10.2
wheel 0.37.1
xkit 0.0.0
yarl 1.7.2
youtube-dl 2020.3.24
yt-dlp 2022.3.8.2
I also updated openssl to 1.1.f running ssl.create_default_context().cert_store_stats() still returns ```{'x509': 0, 'crl': 0, 'x509_ca': 0}
All in all I'm not sure what did the trick but I hope this helps out someone!
from dingolingo.
Traceback (most recent call last):
File "/home/namo/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 985, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "/usr/lib/python3.7/asyncio/base_events.py", line 989, in create_connection
ssl_handshake_timeout=ssl_handshake_timeout)
File "/usr/lib/python3.7/asyncio/base_events.py", line 1017, in _create_connection_transport
await waiter
File "/usr/lib/python3.7/asyncio/sslproto.py", line 530, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "/usr/lib/python3.7/asyncio/sslproto.py", line 189, in feed_ssldata
self._sslobj.do_handshake()
File "/usr/lib/python3.7/ssl.py", line 774, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "run.py", line 84, in <module>
bot.run(config.BOT_TOKEN, bot=True, reconnect=True)
File "/home/namo/.local/lib/python3.7/site-packages/discord/client.py", line 723, in run
return future.result()
File "/home/namo/.local/lib/python3.7/site-packages/discord/client.py", line 702, in runner
await self.start(*args, **kwargs)
File "/home/namo/.local/lib/python3.7/site-packages/discord/client.py", line 665, in start
await self.login(*args, bot=bot)
File "/home/namo/.local/lib/python3.7/site-packages/discord/client.py", line 511, in login
await self.http.static_login(token.strip(), bot=bot)
File "/home/namo/.local/lib/python3.7/site-packages/discord/http.py", line 300, in static_login
data = await self.request(Route('GET', '/users/@me'))
File "/home/namo/.local/lib/python3.7/site-packages/discord/http.py", line 192, in request
async with self.__session.request(method, url, **kwargs) as r:
File "/home/namo/.local/lib/python3.7/site-packages/aiohttp/client.py", line 1140, in __aenter__
self._resp = await self._coro
File "/home/namo/.local/lib/python3.7/site-packages/aiohttp/client.py", line 536, in _request
req, traces=traces, timeout=real_timeout
File "/home/namo/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 543, in connect
proto = await self._create_connection(req, traces, timeout)
File "/home/namo/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 906, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "/home/namo/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 1205, in _create_direct_connection
raise last_exc
File "/home/namo/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 1186, in _create_direct_connection
client_error=client_error,
File "/home/namo/.local/lib/python3.7/site-packages/aiohttp/connector.py", line 987, in _wrap_create_connection
raise ClientConnectorCertificateError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discord.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)')]
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f30d7a58b10>
Got the SSL errors again, after rebooting my machine, no updates where done to pip packages or any changes made to the machine that could've affected this. Tried a bunch of stuff then swapped to Python3.8 as Discord.py says it supports 3.8+ ran (installed per-requisites first of course)
sudo update-ca-certificates --fresh
export SSL_CERT_DIR=/etc/ssl/certs``` and that did the trick now everything is up and running perfectly.
from dingolingo.
Related Issues (20)
- TypeError: Client.start() got an unexpected keyword argument 'bot' HOT 2
- Update requirements HOT 1
- Songs with colons (:) in their names causes the Bot to stop working. HOT 3
- missing 1 required keyword-only argument: 'intents' HOT 3
- Not Working on Heroku HOT 3
- Change discord-py to py-cord. HOT 1
- Running bot as .pyw prevents music from playing HOT 2
- Bot doesn't respond to any command, and gives error. HOT 5
- Help HOT 2
- The bot doesn't play anything HOT 4
- Nothing gets added to queue HOT 3
- I can't use commands HOT 3
- I have a problem with intents HOT 3
- run.py is missing intents (.galex_ on discord)
- Cant play music: ClientException: ffmpeg was not found. HOT 1
- The bot responds to commands but does not play songs
- The above exception was the direct cause of the following exception: HOT 1
- Error: name 'Settings' is not defined
- Error when i opening run.py HOT 1
- The bot doesn't respond when I text it on the server. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dingolingo.