Page 2 of 92

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 5:15 pm
by B.Y.O.B.
neo2068 wrote: Sun Dec 10, 2017 9:56 pm Hi B.Y.O.B.!
I tried to install the new WIP exporter on windows and Blender 2.79 but when I try to activate it, I get an error.

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\modules\addon_utils.py", line 331, in enable
    mod = __import__(module_name)
  File "F:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\LuxCoreRenderEngine\__init__.py", line 8, in <module>
    from . import engine, nodes, operators, properties, ui
  File "F:\Users\Michael\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\LuxCoreRenderEngine\engine\__init__.py", line 3, in <module>
    from ..bin import pyluxcore
ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden.
I copied the needed DLLs into the bin directory of the addon.
I spent a few more hours trying to fix this problem but to no avail yet.
I checked pyluxcore.pyd with dependency walker and it said it was missing PYTHON35.DLL.
Then I copied python35.dll from WindowsCompileDeps into the bin folder and now dependency walker is not complaining about that anymore, but I can't make sense of the rest of the output (and in Blender it still fails with the same message).

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 5:39 pm
by Dade
tbb.dll :?:

P.S. does it happen with the old Luxblend and the same LuxCore binaries ?

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 6:39 pm
by B.Y.O.B.
Dade wrote: Tue Dec 12, 2017 5:39 pmtbb.dll
It is in the same folder.
I have these files in the bin folder:
  • tbb.dll
  • embree.dll
  • python35.dll
  • pyluxcore.pyd
Dade wrote: Tue Dec 12, 2017 5:39 pm P.S. does it happen with the old Luxblend and the same LuxCore binaries ?
Yes, same error message.

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 6:57 pm
by Dade
But any change Blender is now using Python 3.6 ?

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 6:58 pm
by neo2068
Dade wrote: Tue Dec 12, 2017 5:39 pm tbb.dll :?:

P.S. does it happen with the old Luxblend and the same LuxCore binaries ?
Yes, old LuxBlend and same LuxCore binaries fail, too. New LuxBlend and old LuxCore binaries work. :o

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 7:00 pm
by Dade
And all of this happens only on Windows ? Everything works on Linux ? With the latest official Blender release ?

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 7:13 pm
by Dade
Dade wrote: Tue Dec 12, 2017 6:57 pm But any change Blender is now using Python 3.6 ?
Mmm, no, it uses 3.5.3:

Code: Select all

>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=5, micro=3, releaselevel='final', serial=0)

>>> 

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 7:15 pm
by Dade
B.Y.O.B. wrote: Tue Dec 12, 2017 6:39 pm I have these files in the bin folder:
  • tbb.dll
  • embree.dll
  • python35.dll
  • pyluxcore.pyd
OpenImageIO.dll, going to check if it is the one missing.

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 7:17 pm
by neo2068
Dade wrote: Tue Dec 12, 2017 7:00 pm And all of this happens only on Windows ? Everything works on Linux ? With the latest official Blender release ?
It happens on windows with Blender 2.79. I also tried 2.78c which uses 3.5.2 but no success.

Re: BlendLuxCore Development

Posted: Tue Dec 12, 2017 7:24 pm
by Dade
Dade wrote: Tue Dec 12, 2017 7:15 pm
B.Y.O.B. wrote: Tue Dec 12, 2017 6:39 pm I have these files in the bin folder:
  • tbb.dll
  • embree.dll
  • python35.dll
  • pyluxcore.pyd
OpenImageIO.dll, going to check if it is the one missing.

Yes, it works here:

Code: Select all

>>> import pyluxcore
>> pyluxcore.Init()
>>> print("LuxCore %s" % pyluxcore.Version())
LuxCore 1.7dev

>>>