joshuaKnauber / bpy-chat-gpt

Chat GPT api integrated into a simple blender addon
57 stars 9 forks source link

Doesn't work on Mac #1

Open riouxr opened 1 year ago

riouxr commented 1 year ago

Hi! I get this when I try to load the addon in 3.3 or 3.4:

Traceback (most recent call last): File "/Applications/Blender3.4.app/Contents/Resources/3.4/scripts/modules/addon_utils.py", line 333, in enable mod = import(module_name) File "/Users/riouxr/Library/Application Support/Blender/3.4/scripts/addons/bpy_chat_gpt/init.py", line 14, in import requests File "/Applications/Conductor.app/Contents/MacOS/python/lib/python2.7/site-packages/requests/init.py", line 64, in from . import utils File "/Applications/Conductor.app/Contents/MacOS/python/lib/python2.7/site-packages/requests/utils.py", line 28, in from .cookies import RequestsCookieJar, cookiejar_from_dict File "/Applications/Conductor.app/Contents/MacOS/python/lib/python2.7/site-packages/requests/cookies.py", line 164, in class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping): AttributeError: module 'collections' has no attribute 'MutableMapping'

joshuaKnauber commented 1 year ago

Could you check if the requests package is installed?

Go into blender -> scripting workspace -> console in the bottom left: Run import requests

If this doesn't throw an error that means it's installed

riouxr commented 1 year ago

I get this:

Traceback (most recent call last): File "", line 1, in File "/Applications/Conductor.app/Contents/MacOS/python/lib/python2.7/site-packages/requests/init.py", line 64, in from . import utils File "/Applications/Conductor.app/Contents/MacOS/python/lib/python2.7/site-packages/requests/utils.py", line 28, in from .cookies import RequestsCookieJar, cookiejar_from_dict File "/Applications/Conductor.app/Contents/MacOS/python/lib/python2.7/site-packages/requests/cookies.py", line 164, in class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping): AttributeError: module 'collections' has no attribute 'MutableMapping'

joshuaKnauber commented 1 year ago

Try downloading the zip (from the main page, not the releases) and installing that. This uses a different package now so hopefully that will fix the issue

riouxr commented 1 year ago

That's what I did. I clicked on the release button and it brought me to another page.

joshuaKnauber commented 1 year ago

Yes, I just pushed an update which is not under releases yet. Try downloading and installing that again

riouxr commented 1 year ago

Seems to be working now. Thank you so much! I use ChatGTP with Blender on a daily basis

riouxr commented 1 year ago

So I don't get any error messages but I don't see the prompt area in the text editor.

joshuaKnauber commented 1 year ago

In the npanel?

riouxr commented 1 year ago

Oh yeah! Now I get this when I try something:

<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>

I did put the API key in the add-on's prefs

riouxr commented 1 year ago

No, when I press play

riouxr commented 1 year ago

Any idea? :-)