gd3kr / BlenderGPT

Use commands in English to control Blender with OpenAI's GPT-4
MIT License
4.39k stars 314 forks source link

No module named 'openai.object_classes' #9

Open melontoucan opened 1 year ago

melontoucan commented 1 year ago

Python: Traceback (most recent call last): File "C:\Users\andre\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main__init__.py", line 174, in execute blender_code = generate_blender_code(self.natural_language_input) File "C:\Users\andre\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT-main__init__.py", line 109, in generate_blender_code for event in response: File "C:\Users\andre\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT\lib\openai\api_resources\abstract\engine_api_resource.py", line 167, in File "C:\Users\andre\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT\lib\openai\util.py", line 132, in convert_to_openai_object File "C:\Users\andre\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\BlenderGPT\lib\openai\util.py", line 96, in get_object_classes ModuleNotFoundError: No module named 'openai.object_classes'

gd3kr commented 1 year ago

Are you sure you're on a Blender version after 3.0.0?

melontoucan commented 1 year ago

Yep 3.4

prnthh commented 1 year ago

+1, got this right after installing on mac os

shubhankg-nd commented 8 months ago

Facing same issue in jupyter notebook and macos No module named 'openai.object_classes

cristal2431 commented 8 months ago

Is here any update? I am getting the same issue in my google colab No module named 'openai.object_classes

abhishekmishramm1997 commented 4 months ago

Hi, i was facing the same issue. I downgraded openai by pip install openai==0.28. That seemed to have fixed the issue. For now.

hanxu49 commented 2 months ago

Use the old version, such as 0.28.1!