#๐Ÿ”’ Python ModuleNotFoundError and SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] err

34 messages ยท Page 1 of 1 (latest)

midnight marlinBOT
#

@dull bronze

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

dull bronze
dense rover
#

are your certs up to date?

#

@dull bronze

dull bronze
#

how do i check, ive done the pip install -U certifi

#
Collecting logging==0.4.9.6 (from -r list.txt (line 20))
  Downloading logging-0.4.9.6.tar.gz (96 kB)
     ---------------------------------------- 96.0/96.0 kB 1.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  ร— python setup.py egg_info did not run successfully.
  โ”‚ exit code: 1
  โ•ฐโ”€> [24 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 14, in <module>
        File "Cpath\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools\__init__.py", line 7, in <module>
          import _distutils_hack.override  # noqa: F401
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "Cpath\AppData\Local\Programs\Python\Python312\Lib\site-packages\_distutils_hack\override.py", line 1, in <module>
          __import__('_distutils_hack').do_override()
dense rover
#

that's an error in that module

#

pip doesn't use egg anymore

#

if you need that specific version of the package then you might need to install it differently.

#

ร— python setup.py egg_info did not run successfully. <- that's the line I'm referring to

dull bronze
#

i dont think i need that module specifically but its throwing this error on almost all modules i try to install, and i find it weird how my other 2 installs of python on windows doesnt throw this error

dense rover
#

are you using an old version of pip?

dull bronze
#

no, both machines are on python 3.12

#

one of them is running the windows server OS

#

the new deployment is a mirror of my dev OS window OS, trying to copy everything still doesnt work, i tried to do pip freeze > list.txt and then on the new machine pip install -r list.txt, and it throws install errors on some packages ie this one

dense rover
#

so not on all packages?

dull bronze
#

nope

#
aiohttp==3.9.3
aiosignal==1.3.1
asyncio==3.4.3
attrs==23.2.0
certifi==2024.2.2
charset-normalizer==3.3.2
configparser==6.0.0
contourpy==1.2.0
croniter==2.0.1
cycler==0.12.1
DateTime==5.4
discord.py==2.3.2
docopt==0.6.2
essentials==1.1.5
fonttools==4.49.0
frozenlist==1.4.1
gamercon-async==1.0.4
idna==3.6
kiwisolver==1.4.5
logging==0.4.9.6
matplotlib==3.8.3
mcrcon==0.7.0
multidict==6.0.5
nextcord==2.6.0
numpy==1.26.4
packaging==23.2
pandas==2.2.0
pillow==10.2.0
pipreqs==0.4.13
psutil==5.9.8
pyparsing==3.1.1
python-dateutil==2.8.2
python-dotenv==1.0.0
pytz==2024.1
requests==2.31.0
setuptools==69.1.0
six==1.16.0
typing_extensions==4.9.0
tzdata==2024.1
urllib3==2.2.1
yarg==0.1.9
yarl==1.9.4
zope.interface==6.2
#

my list.txt on the working windows server machine

#

According to pip freeze > thispc.txt (the new machine)

aiohttp==3.9.3
aiosignal==1.3.1
async==0.6.2
asyncio==3.4.3
attrs==23.2.0
Automat==22.10.0
buildtools==1.0.6
certifi==2024.2.2
charset-normalizer==3.3.2
constantly==23.10.4
docopt==0.6.2
frozenlist==1.4.1
furl==2.1.3
gamercon-async==1.0.4
greenlet==3.0.3
hyperlink==21.0.0
idna==3.6
importlib==1.0.4
incremental==22.10.0
Jinja2==3.1.3
MarkupSafe==2.1.5
multidict==6.0.5
nextcord==2.6.0
numpy==1.26.4
orderedmultidict==1.0.1
pandas==2.2.0
python-dateutil==2.8.2
python-dotenv==1.0.0
pytz==2024.1
redo==2.0.4
requests==2.31.0
setuptools==69.1.0
simplejson==3.19.2
six==1.16.0
SQLAlchemy==2.0.27
Twisted==23.10.0
twisted-iocpsupport==1.0.4
typing_extensions==4.9.0
tzdata==2024.1
urllib3==2.2.1
wheel==0.42.0
yarl==1.9.4
zope.interface==6.2
dense rover
#

You said you had two other python installations? so three total?

#

and you're only having problems installing on the one

dull bronze
#

no, so only 1 install of python per machine

dense rover
#

so two total

dense rover
dull bronze
#

i have 3 machines, 1 dev, 1 server, the new server im trying to deploy python on

dense rover
#

ah

dull bronze
#

the new server giving me so much issuse

#

fresh install of win 10, 2 times and its just throwing these errors when trying to run this discord bot

#

while the other machines are fine so its not with the code of the bot

dense rover
#

that sucks

#

sorry, I'm not entirely sure what's going on. If you hang out maybe someone else can help you.

midnight marlinBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.