ImportError help needed


(Yoshimaster96) #1

Been trying to install this addon: https://github.com/Syroot/io_scene_bfres

However, I get the following error:

...
ImportError: No module named numpy
...

After copying the numpy folder from /usr/local/lib/python3.4 to /usr/share/blender/2.79/scripts/modules, I get:

...
ImportError: Importing the multiarray numpy extension module failed
...

I don’t know what to do. Please help!


(<== Lost? Click Me) #2

This addon hasn’t been updated since 2 years ago. Use Blender 2.77 which is of that time. API should be most compatible there.


(stephen_leger) #3

You have to properly setup numpy using pip3, looks like there is a missing dep pip3 would solve for you.


(Yoshimaster96) #4

Okay, downloaded Blender 2.77 standalone, and now I get this:

./blender
connect failed: No such file or directory
Read new prefs: /home/jacob3/.config/blender/2.77/config/userpref.blend
found bundled python: /home/jacob3/Desktop/Super Mario Odyssey/Files/Tools/Blender/2.77/python
addon not found: 'src'

BFRES: FRES 
Traceback (most recent call last):
  File "/home/jacob3/.config/blender/2.77/scripts/addons/io_scene_bfres/importing.py", line 64, in execute
    return importer.run()
  File "/home/jacob3/.config/blender/2.77/scripts/addons/io_scene_bfres/importing.py", line 96, in run
    bfres = bfres_file.BfresFile(raw)
  File "/home/jacob3/.config/blender/2.77/scripts/addons/io_scene_bfres/bfres_file.py", line 134, in __init__
    self.fmdl_index_group = IndexGroup(reader, lambda r: FmdlSection(r))
  File "/home/jacob3/.config/blender/2.77/scripts/addons/io_scene_bfres/bfres_common.py", line 36, in __init__
    self.length_in_bytes = reader.read_uint32()
  File "/home/jacob3/.config/blender/2.77/scripts/addons/io_scene_bfres/binary_io.py", line 65, in read_uint32
    return struct.unpack(self.endianness + "I", self.reader.read(4))[0]
struct.error: unpack requires a bytes object of length 4

location: &lt;unknown location&gt;:-1

location: &lt;unknown location&gt;:-1

(<== Lost? Click Me) #5

Switch / Odyssey .bfres is likely different to WiiU / MK8 .bfres and incompatible with this addon, refer to: https://github.com/Syroot/io_scene_bfres/issues and https://github.com/Syroot/NintenTools.Bfres/blob/master/README.md


(Id104335409) #6

Were you able to do it?
I am trying to import sbfres files from WiiU Zelda BOTW, but I can’t get this import to work. nothing happens. Can’t see the addon. I tried newer and older version of blender.