Bug 2276011

Summary: [abrt] blender: module(): gltf2_blender_gather_tree.py:7:<module>:ModuleNotFoundError: No module named 'numpy'
Product: [Fedora] Fedora Reporter: nesuniken
Component: blenderAssignee: Ben Beasley <code>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: code, design-devel, epel-packagers-sig, joao.manganelli.86, kwizart, luya_tfz, negativo17, nesuniken
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/62fdd8b6068159dc6043dd57816245d30e46050
Whiteboard: abrt_hash:97fa0a4e1680e22e1e2bca8d46707de7184691b1;VARIANT_ID=kde;
Fixed In Version: blender-4.0.2-3.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-01 02:25:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description nesuniken 2024-04-19 00:39:28 UTC
Description of problem:
Tried exporting a .blend model to a glTF file

Version-Release number of selected component:
blender-1:4.0.2-1.fc39

Additional info:
reporter:       libreport-2.17.11
kernel:         6.8.6-200.fc39.x86_64
cmdline:        /usr/bin/blender /home/Nesuniken/Documents/Blender/Balatzee/Table.blend
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-blender-e8c59fe764d94db381db718a7085796d.scope
uid:            1000
reason:         gltf2_blender_gather_tree.py:7:<module>:ModuleNotFoundError: No module named 'numpy'
executable:     /usr/bin/blender
type:           Python3
package:        blender-1:4.0.2-1.fc39
runlevel:       N 5
exception_type: ModuleNotFoundError
crash_function: module
interpreter:    blender-4.0.2-1.fc39.x86_64
comment:        Tried exporting a .blend model to a glTF file

Truncated backtrace:
#1 [/usr/share/blender/4.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_tree.py:7] <module>
#2 [/usr/share/blender/4.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py:15] <module>
#3 [/usr/share/blender/4.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_gather.py:11] <module>
#4 [/usr/share/blender/4.0/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_export.py:16] <module>
#5 [/usr/share/blender/4.0/scripts/addons/io_scene_gltf2/__init__.py:752] execute

Comment 1 nesuniken 2024-04-19 00:39:32 UTC
Created attachment 2027792 [details]
File: os_info

Comment 2 nesuniken 2024-04-19 00:39:33 UTC
Created attachment 2027793 [details]
File: environ

Comment 3 nesuniken 2024-04-19 00:39:34 UTC
Created attachment 2027794 [details]
File: mountinfo

Comment 4 nesuniken 2024-04-19 00:39:35 UTC
Created attachment 2027795 [details]
File: open_fds

Comment 5 nesuniken 2024-04-19 00:39:37 UTC
Created attachment 2027796 [details]
File: namespaces

Comment 6 nesuniken 2024-04-19 00:39:38 UTC
Created attachment 2027797 [details]
File: backtrace

Comment 7 nesuniken 2024-04-19 00:39:39 UTC
Created attachment 2027798 [details]
File: cpuinfo

Comment 8 Ben Beasley 2024-04-19 16:35:05 UTC
It seems like the third-party Python packages imported by the add-on scripts need to be manually added to the Requires for the blender package (and preferably also BuildRequires, to keep the package from building successfully and then failing to install).

Luya, do you know of anywhere that those dependencies are listed? I couldn’t find a straightforward enumeration in a quick grep of the package sources. It seems like a shame to have to dig through all of the Python code looking for non-stdlib imports…

Comment 9 Ben Beasley 2024-04-19 16:36:13 UTC
Meanwhile, you should be able to work around this with

  sudo dnf install python3-numpy

Thanks for the report.

Comment 11 Fedora Update System 2024-04-22 11:52:41 UTC
FEDORA-2024-bd77f9e670 (blender-4.0.2-3.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-bd77f9e670

Comment 12 Fedora Update System 2024-04-23 02:43:15 UTC
FEDORA-2024-bd77f9e670 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-bd77f9e670`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-bd77f9e670

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2024-05-01 02:25:59 UTC
FEDORA-2024-bd77f9e670 (blender-4.0.2-3.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.