ubisoft / mixer

Add-on for real-time collaboration in Blender.
https://ubisoft-mixer.readthedocs.io/
GNU General Public License v3.0
1.32k stars 79 forks source link

no attribute 'binary_path_python' #44

Open nathanielisna opened 2 years ago

nathanielisna commented 2 years ago

error message: mixer.connect error : AttributeError("'bpy.app' object has no attribute 'binary_path_python'")

I can't get mixer to work. And "bpy.app.binary_path_python" was deprecated in 2.91 and removed for 2.92 in favor of "sys.executable" https://github.com/JacquesLucke/blender_vscode/issues/80

Also im on Blender 3.0.0. Bottom left corner. image

ovyan commented 2 years ago

I have exactly the same problem

GiganticThirstyHerald commented 2 years ago

I've changed bpy.app.binary_path_pythonto sys.executable and now I can connect and create rooms, but after join my colleague got crash, so it's not a real problem here (for 3.1 at least)

That's what I've got in crash log

# Python backtrace
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\blender_data\attributes.py", line 188 in write_attribute
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\blender_data\datablock_proxy.py", line 428 in _save
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\blender_data\datablock_proxy.py", line 391 in create_standalone_datablock
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\blender_data\datablock_collection_proxy.py", line 133 in create_datablock
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\blender_data\bpy_data_proxy.py", line 503 in create_datablock
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\blender_data\bpy_data_proxy.py", line 318 in func
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\blender_data\bpy_data_proxy.py", line 320 in wrapper
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\blender_client\data.py", line 125 in build_data_create
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\blender_client\client.py", line 1029 in network_consumer
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.1\scripts\addons\mixer\connection.py", line 191 in network_consumer_timer
wprojects commented 2 years ago

@GiganticThirstyHerald I am running ubuntu 21.10 and also have no clue how to actually change this files name. I have tried searching my file explorer and can't find the file. I WAS able to find the bpy.app.binary_path_python in the python console, but I couldn't fix the issue from there had no clue what to do. Do I fix this within blender or do I find the addons folder in my computer (terminal or files explorer) and just rename it there? Does anyone know where blender add ons and this file would actually be stored on my linux computer? Better instructions/explanations or some pictures showing how to do this would be great!

I've tried all kinds of crap like this in my python console image

and this in blenders text editor, none of which solved the problem

image

GiganticThirstyHerald commented 2 years ago

I uhh... I'm not sure where are addons are stored in linux, but I just changed all occurrences of variable bpy.app.binary_path_python to sys.executable in add-on's files, that's all But it won't fix addon itself - it'll eventually crash This might help you with linux paths

wprojects commented 2 years ago

image I found the folder in /.config/blender/3.1/scripts/addons/mixer/blender_data/ but I can't find bpy.app.binary_path_python. Is that a file in your folder? I have bpy_data.py but that doesn't have bpy.app.binary_path_python in it anywhere. So I'm not sure where you found that. What file did you find that in? @GiganticThirstyHerald

nathanielisna commented 2 years ago

It isn't a file, bpy.app.binary_path_python was just a function in the module bpy in 2.91

import bpy

bpy is included with your installation with blender.