Join our discord community

Please or Register to create posts and topics.

Blender rna_uiItem0: operator missing srna

Hello, I've stumbled this issue with Blender. I'm not sure is it need Blender to be installed in usr/local?

rna_uiItemO: operator missing srna 'object.prism_save'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:282
rna_uiItemO: operator missing srna 'object.prism_savecomment'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:285
rna_uiItemO: operator missing srna 'object.prism_browser'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:288
rna_uiItemO: operator missing srna 'object.prism_manager'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:291
rna_uiItemO: operator missing srna 'object.prism_settings'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:294
rna_uiItemO: operator missing srna 'object.prism_save'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:282
rna_uiItemO: operator missing srna 'object.prism_savecomment'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:285
rna_uiItemO: operator missing srna 'object.prism_browser'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:288
rna_uiItemO: operator missing srna 'object.prism_manager'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:291
rna_uiItemO: operator missing srna 'object.prism_settings'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:294
rna_uiItemO: operator missing srna 'object.prism_save'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:282
rna_uiItemO: operator missing srna 'object.prism_savecomment'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:285
rna_uiItemO: operator missing srna 'object.prism_browser'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:288
rna_uiItemO: operator missing srna 'object.prism_manager'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:291
rna_uiItemO: operator missing srna 'object.prism_settings'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:294
rna_uiItemO: operator missing srna 'object.prism_save'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:282
rna_uiItemO: operator missing srna 'object.prism_savecomment'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:285
rna_uiItemO: operator missing srna 'object.prism_browser'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:288
rna_uiItemO: operator missing srna 'object.prism_manager'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:291
rna_uiItemO: operator missing srna 'object.prism_settings'
/opt/blender/next/lts/2.83/scripts/startup/bl_ui/space_topbar.py:294

This looks like you removed the 2.83/scripts/startup/PrismInit.py file manually. It's better to use the Prism Settings dialog to rermove the Prism integration from Blender.

The issue is that the Prism menu is added to this file:

2.83/scripts/startup/bl_ui/space_topbar.py

Before Prism modified that file it created a space_topbar.py.bak file in the same folder. Use that to restore the original menu, which should remove the warnings.

Hi RichardF,

Thank for the reply, but it seems I can't get it to work in blender 2.83. I want to install prism integration not removing it. So the menu showing but not the content.

 

Uploaded files:
  • You need to login to have access to uploads.

Then either the PrismInit.py doesn't exist or it has an error during loading. Do you see any other errors in the terminal when starting Blender?

I've got the following when starting blender

found bundled python: /opt/blender/next/lts/2.83/python
Traceback (most recent call last):
File "/opt/blender/next/lts/2.83/scripts/modules/bpy/utils/__init__.py", line 109, in _test_import
mod = __import__(module_name)
File "/opt/blender/next/lts/2.83/scripts/startup/PrismInit.py", line 54, in <module>
from PySide2.QtCore import *
ModuleNotFoundError: No module named 'PySide2'

 

I think it's related with disabling pyside in prism directory, but still the blender integration not calling from system pyside.

Looks like Blender is not using the system environment variables by default.

To let Blender find your system PySide you have two options:

  1. Like suggested here you can start Blender with the --python-use-system-env argument.
  2. You can add the path to pyside into blender-2.83.3-linux64/2.83/scripts/startup/PrismInit.py by adding this line: sys.path.append("/path/to/pyside2/parent/folder")

Hmm, now another error showing ?

found bundled python: /opt/blender/next/lts/2.83/python
Traceback (most recent call last):
File "/opt/blender/next/lts/2.83/scripts/modules/bpy/utils/__init__.py", line 109, in _test_import
mod = __import__(module_name)
File "/opt/blender/next/lts/2.83/scripts/startup/PrismInit.py", line 58, in <module>
from PySide2.QtCore import *
File "/usr/lib/python3/dist-packages/PySide2/__init__.py", line 51, in <module>
_setupQtDirectories()
File "/usr/lib/python3/dist-packages/PySide2/__init__.py", line 21, in _setupQtDirectories
import shiboken2
File "/usr/lib/python3/dist-packages/shiboken2/__init__.py", line 27, in <module>
from .shiboken2 import *
ModuleNotFoundError: No module named 'shiboken2.shiboken2'

shiboken2 is a dependency of PySide2. Usually when you install PySide2 it installs shiboken2 automatically as well, but there might be something wrong with your version.

Maybe reinstalling it fixes it. Maybe you need to install a different version. It's hard to say what exactly the problem is without having a look at your environment.

I'd recommend installing Python 3.7 making sure PySide2 works in it before trying to load it into Blender.

Hi Richard,

Finally I'm getting back using pyenv and everything works fine. I use pyenv to install Python 3.7.9 and append

sys.path.append(
"/home/aditia/.pyenv/versions/3.7.9/lib/python3.7/site-packages"
)

Thank you so much

 

Uploaded files:
  • You need to login to have access to uploads.

Awesome, great to hear that!