-
-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error During Generate: Certificate Verify Failed #5
Comments
With a normal Python install there is a InstallCertificates.command file you can run to setup the certificates, but I don’t think blenders Python will have this. So maybe you can try this answer from SO: https://stackoverflow.com/a/61142526 Using Blender’s Python though. If that works for you, I will add that script to the addon. |
I have the same issue in Blender 3.3 on Ubuntu 20.04.5 LTS. That SO script did not work, because the OpenSSL directory it looks for does not exist. Sybren is a Blender developer so I suppose this is a Blender bug where their OpenSSL path has found its way in when compiling Python. |
I'm having the same problem. I tried to create the file structure but macOS doesn't allow me. Even with sudo su. It responds with. |
Dream Textures 0.0.5 was released 3 days ago. The release notes say 'fixes an error with macOS installation'. Does it solve the problem of this thread? Or is it something else? |
@Teralink It attempted to fix a different error with CLIP model downloading. I do not know of a solution for this yet. |
From here: After installing those packages you should run Blender from the same terminal where you executed the line "export SSL_CERT_DIR=/etc/ssl/certs" SSL certificate error is gone, but now I get an error related to:
|
@YAFU good find. You should be able to run the script in the dream textures addon directory |
@carson-katri I'm not sure what to do, just run preload_models.py? I have Python 3.10 installed on my system now. BTW, I am using addon dependencies installed from addon "install dependencies" button now (dependencies installed in /blender/3.4/python/ of master/buildbot 3.4 portable folder). For now I have abandoned trying the method of installing dependencies on the system. |
@YAFU SSL_CERT_DIR=/etc/ssl/certs does work thanks! |
These steps fixed the issue for me. |
im on ubuntu 18.04, this fixed the exact same issue for me too. i also ran "install dependencies" from the preference window again and everything worked as expected. |
I found the fix for this in another thread. Use the certifi module which is bundled with Blender as @john-shine proposed here. This example uses aiohttp but should lead you in the right direction even if you're using a different module.
|
This issue is stale because it has been open for 60 days with no activity. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
Add-on, Application and OS versions
Dream Textures 0.0.3
Blender 3.3
Mac OS 10.15.7
Describe the bug
When generating a texture, two certificate issues caused it to fail.
1.)
future: <Task finished name='Task-1' coro=<DreamTexture.dream_texture() done, defined at /Users/***/Library/Application Support/Blender/3.3/scripts/addons/dream_textures/__init__.py:448> exception=URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))>
2.)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
and perhaps related, no current event loop was found.
How to Reproduce
On Mac with same specs, generate new texture.
Error message
Full event log:
Screenshots
n/a
The text was updated successfully, but these errors were encountered: