LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2019, 08:20 PM   #1
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,130

Rep: Reputation: 158Reputation: 158
Blender-2.79b missing menus in Slackware64-current


I'm able to compile Blender with no issues. I closely followed the README.Slackware notes to make sure I didn't miss anything. When I start Blender, I get no menus on top or on the left side.

When I start Blender through the command line, I get the following:
Code:
found bundled python: /usr/share/blender/2.79/python
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/bpy/utils/__init__.py", line 93, in _test_import
    mod = __import__(module_name)
  File "/usr/share/blender/2.79/scripts/startup/bl_ui/__init__.py", line 212, in <module>
    bpy.utils.register_class(UI_UL_list)
AttributeError: expected UIList, UI_UL_list class to have an "bl_idname" attribute
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/bpy/utils/__init__.py", line 176, in register_module_call
    register()
  File "/usr/share/blender/2.79/scripts/startup/bl_operators/__init__.py", line 68, in register
    register_class(cls)
AttributeError: expected Menu, WM_MT_operator_presets class to have an "bl_idname" attribute
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/bpy/utils/__init__.py", line 176, in register_module_call
    register()
  File "/usr/share/blender/2.79/scripts/startup/keyingsets_builtins.py", line 677, in register
    register_class(cls)
AttributeError: expected KeyingSetInfo, BUILTIN_KSI_LocRot class to have an "bl_idname" attribute
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/bpy/utils/__init__.py", line 176, in register_module_call
    register()
  File "/usr/share/blender/2.79/scripts/startup/nodeitems_builtins.py", line 475, in register
    nodeitems_utils.register_node_categories('SHADER', shader_node_categories)
  File "/usr/share/blender/2.79/scripts/modules/nodeitems_utils.py", line 130, in register_node_categories
    bpy.utils.register_class(menu_type)
AttributeError: expected Menu, NODE_MT_category_SH_INPUT class to have an "bl_idname" attribute
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/io_scene_3ds/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/io_scene_3ds/__init__.py", line 151, in register
    bpy.types.INFO_MT_file_import.append(menu_func_import)
AttributeError: 'RNA_Types' object has no attribute 'INFO_MT_file_import'
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/io_scene_fbx/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/io_scene_fbx/__init__.py", line 644, in register
    bpy.types.INFO_MT_file_import.append(menu_func_import)
AttributeError: 'RNA_Types' object has no attribute 'INFO_MT_file_import'
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/io_anim_bvh/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/io_anim_bvh/__init__.py", line 224, in register
    bpy.types.INFO_MT_file_import.append(menu_func_import)
AttributeError: 'RNA_Types' object has no attribute 'INFO_MT_file_import'
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/io_mesh_ply/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/io_mesh_ply/__init__.py", line 193, in register
    bpy.types.INFO_MT_file_import.append(menu_func_import)
AttributeError: 'RNA_Types' object has no attribute 'INFO_MT_file_import'
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/io_scene_obj/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/io_scene_obj/__init__.py", line 333, in register
    bpy.types.INFO_MT_file_import.append(menu_func_import)
AttributeError: 'RNA_Types' object has no attribute 'INFO_MT_file_import'
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/io_scene_x3d/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/io_scene_x3d/__init__.py", line 175, in register
    bpy.types.INFO_MT_file_import.append(menu_func_import)
AttributeError: 'RNA_Types' object has no attribute 'INFO_MT_file_import'
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/io_mesh_stl/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/io_mesh_stl/__init__.py", line 262, in register
    bpy.types.INFO_MT_file_import.append(menu_import)
AttributeError: 'RNA_Types' object has no attribute 'INFO_MT_file_import'
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/io_mesh_uv_layout/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/io_mesh_uv_layout/__init__.py", line 238, in register
    bpy.types.IMAGE_MT_uvs.append(menu_func)
AttributeError: 'RNA_Types' object has no attribute 'IMAGE_MT_uvs'
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/io_curve_svg/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/io_curve_svg/__init__.py", line 72, in register
    bpy.types.INFO_MT_file_import.append(menu_func_import)
AttributeError: 'RNA_Types' object has no attribute 'INFO_MT_file_import'
Exception in module register(): '/usr/share/blender/2.79/scripts/addons/cycles/__init__.py'
Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 350, in enable
    mod.register()
  File "/usr/share/blender/2.79/scripts/addons/cycles/__init__.py", line 132, in register
    ui.register()
  File "/usr/share/blender/2.79/scripts/addons/cycles/ui.py", line 1847, in register
    bpy.types.RENDER_PT_render.append(draw_device)
AttributeError: 'RNA_Types' object has no attribute 'RENDER_PT_render'
Upon further investigating, when building the package, the following python files are empty:
Code:
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/io_export_dxf/model/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/netrender/js/netrender_balance.js
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/io_import_dxf/dxfimport/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/rigs/faces/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/rigs/experimental/super_eye.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/rigs/experimental/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/rigs/spines/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/rigs/limbs/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/rigs/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/rigs/basic/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/metarigs/Animals/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/metarigs/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/legacy/rigs/misc/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/legacy/rigs/biped/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/legacy/rigs/pitchipoy/limbs/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/legacy/rigs/pitchipoy/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/legacy/rigs/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/legacy/rigs/basic/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/rigify/legacy/metarigs/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/io_blend_utils/blender_bam-unpacked.whl/bam/utils/__init__.py
WARNING:  zero length file usr/share/blender/2.79/scripts/addons/io_blend_utils/blender_bam-unpacked.whl/bam/blend/__init__.py
WARNING:  zero length file usr/share/blender/2.79/python/lib64/python3.7/urllib/__init__.py
WARNING:  zero length file usr/share/blender/2.79/python/lib64/python3.7/pydoc_data/__init__.py
WARNING:  zero length file usr/share/blender/2.79/python/lib64/python3.7/site-packages/urllib3/packages/backports/__init__.py
WARNING:  zero length file usr/share/blender/2.79/python/lib64/python3.7/site-packages/urllib3/contrib/__init__.py
WARNING:  zero length file usr/share/blender/2.79/python/lib64/python3.7/site-packages/urllib3/contrib/_securetransport/__init__.py
WARNING:  zero length file usr/share/blender/2.79/python/lib64/python3.7/site-packages/numpy/testing/nose_tools/__init__.py
WARNING:  zero length file usr/share/blender/2.79/python/lib64/python3.7/email/mime/__init__.py

Slackware package /tmp/Blender-2.79b-x86_64-1_SBo.tgz created.
My guess is that having __init__.py empty is causing a chain reaction. I have tried using the options from the Fedora spec file to see if I got better results, but I did not. So, I'm a bit stumped. I'm open to any suggestions. Any ideas? Thanks!
 
Old 03-24-2019, 01:24 AM   #2
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 574

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
Empty __init__.py files are not a problem. They are commonly used to denote that the directories they appear in are to be treated as python packages - see https://stackoverflow.com/questions/...is-init-py-for

I can replicate your symptoms on 14.2 and suspect it's something to do with recent upgrade of python3 to 3.7.2 since I didn't see that error with previous python3 versions. Any ideas/advice welcome ...

chris
 
1 members found this post helpful.
Old 03-24-2019, 02:46 AM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I will be honest with you I just use their builds.gets installed in /opt.
back 2007 I built it and that was a one time deal on a old laptop.
looks like your skins are not geting installed or themes what ever and the artwork with it.
hang in there.
 
1 members found this post helpful.
Old 03-24-2019, 04:01 AM   #4
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 574

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
I've just pushed a fix to SBo - a patch based on a commit in blender's git repo. It should appear in the next SBo update but for anyone in a hurry, see:
https://git.slackbuilds.org/slackbui...illing/updates

chris
 
1 members found this post helpful.
Old 03-24-2019, 07:14 AM   #5
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by chris.willing View Post
Empty __init__.py files are not a problem. They are commonly used to denote that the directories they appear in are to be treated as python packages - see https://stackoverflow.com/questions/...is-init-py-for

I can replicate your symptoms on 14.2 and suspect it's something to do with recent upgrade of python3 to 3.7.2 since I didn't see that error with previous python3 versions. Any ideas/advice welcome ...

chris
Good to know. I was trying to look at everything possible to in case I was missing something.

Quote:
Originally Posted by Drakeo View Post
I will be honest with you I just use their builds.gets installed in /opt.
back 2007 I built it and that was a one time deal on a old laptop.
looks like your skins are not geting installed or themes what ever and the artwork with it.
hang in there.
I have done that in the past. I know it is possible to build since Fedora builds theirs from source I believe.

Quote:
Originally Posted by chris.willing View Post
I've just pushed a fix to SBo - a patch based on a commit in blender's git repo. It should appear in the next SBo update but for anyone in a hurry, see:
https://git.slackbuilds.org/slackbui...illing/updates

chris
I applied your patch, but now the build failed here:

Code:
[  8%] Building CXX object intern/libmv/CMakeFiles/bf_intern_libmv.dir/libmv/tracking/brute_region_tracker.cc.o
[  8%] Building CXX object intern/libmv/CMakeFiles/bf_intern_libmv.dir/libmv/tracking/hybrid_region_tracker.cc.o
[  8%] Building CXX object intern/libmv/CMakeFiles/bf_intern_libmv.dir/libmv/tracking/klt_region_tracker.cc.o
[  8%] Building CXX object intern/libmv/CMakeFiles/bf_intern_libmv.dir/libmv/tracking/pyramid_region_tracker.cc.o
[  8%] Building CXX object intern/libmv/CMakeFiles/bf_intern_libmv.dir/libmv/tracking/retrack_region_tracker.cc.o
[  8%] Building CXX object intern/libmv/CMakeFiles/bf_intern_libmv.dir/libmv/tracking/track_region.cc.o
[  8%] Building CXX object intern/libmv/CMakeFiles/bf_intern_libmv.dir/libmv/tracking/trklt_region_tracker.cc.o
[  9%] Linking CXX static library ../../lib/libbf_intern_libmv.a
[  9%] Built target bf_intern_libmv
make: *** [Makefile:163: all] Error 2
Thank you both for the quick replies. The Slackware Community is by far the best!! Thank you!
 
Old 03-24-2019, 07:17 AM   #6
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 158Reputation: 158
Actually, it failed a little bit before that. Here is the code:

Code:
[  6%] Linking CXX static library ../../lib/libbf_intern_iksolver.a
[  6%] Built target bf_intern_iksolver
Scanning dependencies of target bf_intern_itasc
[  6%] Building CXX object intern/itasc/CMakeFiles/bf_intern_itasc.dir/Armature.cpp.o
[  6%] Building CXX object intern/audaspace/CMakeFiles/bf_intern_audaspace.dir/intern/AUD_SequencerFactory.cpp.o
[  6%] Building CXX object intern/audaspace/CMakeFiles/bf_intern_audaspace.dir/intern/AUD_SequencerHandle.cpp.o
[  6%] Building CXX object intern/elbeem/CMakeFiles/bf_intern_elbeem.dir/intern/parametrizer.cpp.o
In file included from /usr/include/c++/8.3.0/map:61,
                 from /tmp/SBo/blender-2.79b/intern/itasc/kdl/tree.hpp:29,
                 from /tmp/SBo/blender-2.79b/intern/itasc/eigen_types.hpp:13,
                 from /tmp/SBo/blender-2.79b/intern/itasc/ControlledObject.hpp:12,
                 from /tmp/SBo/blender-2.79b/intern/itasc/Armature.hpp:11,
                 from /tmp/SBo/blender-2.79b/intern/itasc/Armature.cpp:11:
/usr/include/c++/8.3.0/bits/stl_map.h: In instantiation of ‘class std::map<std::__cxx11::basic_string<char>, KDL::TreeElement, std::less<std::__cxx11::basic_string<char> >, Eigen::aligned_allocator<std::pair<std::__cxx11::basic_string<char>, KDL::TreeElement> > >’:
/tmp/SBo/blender-2.79b/intern/itasc/kdl/tree.hpp:47:19:   required from here
/usr/include/c++/8.3.0/bits/stl_map.h:122:21: error: static assertion failed: std::map must have the same value_type as its allocator
       static_assert(is_same<typename _Alloc::value_type, value_type>::value,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [intern/itasc/CMakeFiles/bf_intern_itasc.dir/build.make:63: intern/itasc/CMakeFiles/bf_intern_itasc.dir/Armature.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1023: intern/itasc/CMakeFiles/bf_intern_itasc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
 
Old 03-24-2019, 07:32 AM   #7
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 574

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
This looks like a problem using the newer compiler version in -current (which I don't regularly track), since it compiles fine in stock 14.2. I suggest you raise this build problem in the "SBo scripts not building on current (read 1st post, pls)" thread - the regulars there have probably seen variations of this problem a hundred times before.

chris
 
Old 03-24-2019, 07:40 AM   #8
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by chris.willing View Post
This looks like a problem using the newer compiler version in -current (which I don't regularly track), since it compiles fine in stock 14.2. I suggest you raise this build problem in the "SBo scripts not building on current (read 1st post, pls)" thread - the regulars there have probably seen variations of this problem a hundred times before.

chris
Thanks! Will do!
 
Old 03-26-2019, 06:57 AM   #9
stormtracknole
Senior Member
 
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 158Reputation: 158
Was able to fix this by applying all the patches provided by Fedora. Go ahead and grab the source rpm and install it via rpm -ivh blender-2.79b-7.fc29.src.rpm as a regular user. Then cd $HOME/rpmbuild/SOURCES/. Copy all the blender patch files there into the directory containing your SlackBuild. Modify Blender.SlackBuild and include the Fedora patches which should look like this:
Code:
patch -p0 < $CWD/buildinfo-$VERSION.diff
patch -p1 < $CWD/use-libopenmj2-for-openjpeg.diff
patch -p1 < $CWD/PyRNA-python3.7.diff
patch -p1 < $CWD/blender-2.79-droid.patch
patch -p1 < $CWD/blender-2.79-thumbnailer.patch
patch -p1 < $CWD/blender-2.79-scripts.patch
patch -p1 < $CWD/blender-2.79-locale.patch
patch -p1 < $CWD/blender-2.79-manpages.patch
patch -p1 < $CWD/blender-2.79-unversioned-system-path.patch
patch -p1 < $CWD/blender-2.79-openvdb3-abi.patch
patch -p1 < $CWD/util_sseb.patch
patch -p1 < $CWD/tree_hpp.patch
Make sure you are using Chris Willing's repo as I'm not sure his edits will be merged to the main branch since this is for -current and not -stable. Thank you Chris for your help.
 
  


Reply

Tags
blender, current, python


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Blender 2.63 only runs if I type /opt/blender/blender in cmdline Jeebizz Slackware 6 07-23-2013 05:00 PM
Success - Blender compiled on Slackware64-current lumak Slackware 0 05-24-2009 01:04 AM
zfs gui missing from indiana 79b madivad Solaris / OpenSolaris 1 03-18-2008 01:24 PM
LXer: The Essential Blender: Guide to 3D Creation with the Open Source Suite Blender LXer Syndicated Linux News 0 11-23-2007 11:00 AM
Blender problem: can't run Blender, anyone know how? Chuong Linux - Software 11 09-01-2006 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration