mixer icon indicating copy to clipboard operation
mixer copied to clipboard

no attribute 'binary_path_python'

Open nathanielisna opened this issue 3 years ago • 6 comments

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

nathanielisna avatar Feb 14 '22 01:02 nathanielisna

I have exactly the same problem

ovyan avatar Feb 25 '22 09:02 ovyan

I've changed bpy.app.binary_path_python to 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

GiganticThirstyHerald avatar Mar 23 '22 04:03 GiganticThirstyHerald

@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

wprojects avatar Mar 26 '22 05:03 wprojects

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

GiganticThirstyHerald avatar Mar 26 '22 06:03 GiganticThirstyHerald

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

wprojects avatar Mar 26 '22 18:03 wprojects

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.

nathanielisna avatar Mar 26 '22 20:03 nathanielisna