Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Blender to .fbx problem came back with 5.5f3

Discussion in 'Linux' started by Giezu, Dec 3, 2016.

  1. Giezu

    Giezu

    Joined:
    Feb 20, 2016
    Posts:
    6
    Hi!

    Today I've installed Unity 5.5f3 and wanted to add new models from Blender to my current project.
    Unity said that I need Blender 2.x - 2.y, 2.z or newer (2.78 here).
    It's bug known from earlier releases, but was fixed. Is there any workaround for now?
    I need working UI so wanted to migrate to newest release. Now I'm stuck with 5.5b5 and broken UI.
    Works on 5.5b5 and 2.78.

    Ubuntu 16.04, installed from .deb package.
     
  2. LukaKotar

    LukaKotar

    Joined:
    Sep 25, 2011
    Posts:
    394
    The editor log file provides some useful information about what is going on:

    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0.025977 seconds (Nothing changed)
    [00:00:22] Enlighten: Bake started.
    [00:00:22] Enlighten: Finished 1 Bake Runtime job (0.12s execute, 0.00s integrate, 0.14s wallclock)
    [00:00:22] Enlighten: Bake took 0.142752 seconds.
    Read new prefs: /home/luka/.config/blender/2.78/config/userpref.blend
    Error: Cannot read file '/home/luka/path/to/project/"-b"': No such file or directory
    ... opened default scene instead; saving will write to /home/luka/path/to/project/"-b"
    Error: Cannot read file '/home/luka/path/to/project/"/home/luka/path/to/project/Assets/Models/model.blend"': No such file or directory
    ... opened default scene instead; saving will write to /home/luka/path/to/project/"/home/luka/path/to/project/Assets/Models/model.blend"
    Error: Cannot read file '/home/luka/path/to/project/"-P"': No such file or directory
    ... opened default scene instead; saving will write to /home/luka/path/to/project/"-P"
    Error: Cannot read file '/home/luka/path/to/project/"/opt/Unity/Editor/Data/Tools/Unity-BlenderToFBX.py"': No such file or directory
    [00:00:25] Enlighten: Reflection Probes started.
    [00:00:25] Enlighten: Finished 1 Ambient Probes job (0.02s execute, 0.00s integrate, 0.31s wallclock)
    [00:00:25] Enlighten: Finished 1 Reflection Probes job (0.01s execute, 0.00s integrate, 0.31s wallclock)
    addon not found: 'io_import_scene_mhx'
    ... opened default scene instead; saving will write to /home/luka/path/to/project/"/opt/Unity/Editor/Data/Tools/Unity-BlenderToFBX.py"
    Saved session recovery to '/tmp/quit.blend'
    Refresh: detecting if any assets need to be imported or removed ... Refresh: elapses 0.027309 seconds (Nothing changed)

    Blender quit
     
  3. fumangy

    fumangy

    Joined:
    Mar 28, 2013
    Posts:
    17
    I have the same error with version 5.5.0f3,5.4.3.f1, 5.4.2f2, versions 5.5.0b2, 5.5.0b5 works correctly.
    Currently I'm using 5.5.0b2 .
    Best regards.
    Ubuntu 16.04 Xenial Xerus 64-bits ,Manjaro 16.10 Fringilla 64-bits.
     
  4. trueZaklaus

    trueZaklaus

    Joined:
    Nov 17, 2016
    Posts:
    1
    I'm experiencing the same problem with 5.5.0f3 on Antergos x86_64 Linux 4.8.12-2-ARCH.

    - ZaKlaus
     
  5. Odd-Redesign

    Odd-Redesign

    Joined:
    Jul 26, 2013
    Posts:
    134
    I encountered the same issue after upgrading to 5.5.0 too.

    After running a quick update with pacman -Syu (which also upgraded blender) the issue was gone. Blender is now at version 2.78 for me.
     
  6. Giezu

    Giezu

    Joined:
    Feb 20, 2016
    Posts:
    6
    @Odd-Redesign: from which repo You have installed blender? I was installing from thomas-schiex. Official Ubuntu doesn't have 2.78 so I needed another repo. Did apt-get update && upgrade while ago, unfortunately no blender in updates.
     
  7. kiriri

    kiriri

    Joined:
    Jan 14, 2011
    Posts:
    107
    5.5.0f : Tried blender 2.76 from ubuntu software center and and 2.58 from blender website, both just open new instances of blender instead of importing.
     
    Last edited: Dec 10, 2016
  8. Odd-Redesign

    Odd-Redesign

    Joined:
    Jul 26, 2013
    Posts:
    134
    I'm on Arch, so I'll most likely have newest versions of blender in the repo as soon as they're available.

    You could try downloading blender from the official website and add the extracted folder to your PATH (I'm quoting an older post I made, it should be possible to point your operating system to the new version of blender instead of using the installed one):

    Maybe that helps.
     
  9. Giezu

    Giezu

    Joined:
    Feb 20, 2016
    Posts:
    6
    Unfortunately no luck here.
    Downloaded blender (2.78a) from website, exported PATH, installed 5.5f3 and says that can't export to .fbx. I can run blender from terminal so path is working.
     
    fumangy likes this.
  10. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    hi @Odd-Redesign I'm also having this issue on Arch Linux and my system is up to date. Any idea what was causing this for you?
     
  11. spacepluk

    spacepluk

    Joined:
    Aug 26, 2015
    Posts:
    243
    It's weird, I put a script named `blender` in the PATH to intercept the execution and try to see what's going on. And if you inspect the arguments Unity is sending, you can see that the double quotes are actually part of the values.

    I tried to remove the quotes like this, and that prevents blender from popping up and the files are actually converted to FBX and saved to the project's Temp folder. But for some reason Unity still fails to complete the import.

    I think this is an actual bug because on the same system other versions (5.5.0b5) work as expected.
     
    fumangy likes this.
  12. Odd-Redesign

    Odd-Redesign

    Joined:
    Jul 26, 2013
    Posts:
    134
    It's a strange one, since the import was working after upgrading arch / reopening unity (?) worked for me.

    The last time I searched for this bug was when I encountered it even on a windows machine, so there must have been something wrong outside of unity.

    The following links indicated something with the way the python executable is called to execute the .fbx export dynamically. I found these two threads back then indicating that:

    https://forum.unity3d.com/threads/blender-2-71-blend-to-unity-broken.254632/
    https://connect.microsoft.com/VisualStudio/feedback/details/785119/

    I don't know if it's still the same one. Basically the way it is supposed to be called changed, causing these weird discrepancies between different blender versions. I don't know if we can do anything on our machines to find a workaround.. Different python version? Idk. I would need a machine where the bug happens to do testing but atm I cannot afford the time to set that up.
     
  13. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    The extra-quotes issue should be fixed in the latest 5.5 and 5.6 builds.
     
  14. LukaKotar

    LukaKotar

    Joined:
    Sep 25, 2011
    Posts:
    394
    I tried both 5.6b1 and 5.5p1, but I'm still having this issue with both. The "-b" and "-P" arguments are still surrounded by quotes. The editor log shows the same output.
     
  15. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Argh, you're right - it's a different issue (multiple issues, actually :-| ) - this will be fixed in an upcoming build.
     
    Giezu, spacepluk and LukaKotar like this.
  16. fumangy

    fumangy

    Joined:
    Mar 28, 2013
    Posts:
    17