Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

no attribute 'binary_path_python' #44

Open
SleepyTheBot opened this issue Feb 14, 2022 · 6 comments
Open

no attribute 'binary_path_python' #44

SleepyTheBot opened this issue Feb 14, 2022 · 6 comments

Comments

@SleepyTheBot
Copy link

SleepyTheBot commented Feb 14, 2022

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"
JacquesLucke/blender_vscode#80

Also im on Blender 3.0.0. Bottom left corner.
image

@ovyan
Copy link

ovyan commented Feb 25, 2022

I have exactly the same problem

@GiganticThirstyHerald
Copy link

GiganticThirstyHerald commented Mar 23, 2022

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

@wprojects
Copy link

@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
Copy link

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
Copy link

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

@SleepyTheBot
Copy link
Author

SleepyTheBot commented Mar 26, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants