Blender 4+ and Luxcore installation issue

Hello!

First, here are some specifics…
• I’m on a Windows 11 machine
• Using Blender 4.2 LTS
• Using the latest stable BlendLuxcore addon - v2.10.0-alpha.2

I’m unable to install on my work laptop. But it will install on my home PC (Windows 10) just fine.

I don’t think it’s an issue of a firewall, as I can fully download the add-on. But I do think there are certain missing modules or components? I don’t know.

The error is:

Could not import pyluxcore.
ImportError: No module named 'pyluxcore'

I tried to have ChatGPT diagnose, but rather than going down that rabbit hole (at this time at least) and having to install all this extra stuff it’s having me do, I figured I’d start with the community! :slight_smile:

Any help would be greatly appreciated!

Check the information on that link.

You may also need Visual C++ Redistributable Packages for VS 2017 to run.

https://luxcorerender.org/download/

Thanks! Yeah, that’s one thing ChatGPT said.

Ultimately, it sounds like I’ll need to compile BlendLuxCore on my work issued laptop.

Please find the information you can install through the link attached below or ask for help

https://blenderartists.org/t/luxcore-render-v2-10-alpha2-is-out-for-all-platforms/1409371/80?page=2

LuxCoreRender Forums

Add…

BlendLuxCore v2.9beta3 works with blender4.2 with the traditional Addon installation method.

Release BlendLuxCore v2.9beta3 · LuxCoreRender/BlendLuxCore · GitHub

The higher version has changed the Addon installation method.
It also looks like you need an extra installation (luxcore engine) at runtime, but I don’t know how to do it

Hello,

We’ve had another simiilar report already, where someone ran into this error on a work PC.

Since version 2.10, the distribution of the binary core of LuxCore happens differently than before.
Before, The BlendLuxCore addon included the binaries. Hence, there were separate Downloads for Windows, Linux, and macOS.
Now, there is only one BlendLuxCore Download, which downloads the correct binaries during installation. pyluxcore is now published on PyPi to be installed via pip, and the mechanism of Blenders new extension platform is being used.

It seems that some company networks block this download.

Ah gotcha.

I guess the alternative is compile the binary on my workstation.

Local compilation won’t be necessary, the pyluxcore wheel can be downloaded also from GitHub, and its dependencies (numpy and cuda_nvrtc) need to be downloaded anyways.
Besides manaul download, they could be copied from another PC where the installation was successful.

However, I just tried this process with my PC in offline mode to emulate your issue, but I realized I have to make some modifications to the init file of BlendLuxCore, currently it will break this process one way or another.

Shouldn’t be a lot of work, and it would be good to allow offline installation anyways.
I will get back to it here.

Error seen during blender 4.2 installation.
You are connected to the Internet.

The difference from regular users is that Addon’s location is different.
Integrated management to use one path on all blender versions

Thank you thank you!

I’m assuming you’re one of the developers? Apologies, I’m not too “plugged” in to the going-ons of the developer world. I’m only an end user.

I’ll mention also that I was getting some issue when using the Blenderkit add-on while BlendLuxCore was present. The error “cpu dispatcher tracer already initialized”. But, I’m not too worried about it at the moment. Just figured I’d pass along the info.

Thanks for your help!

Hi,

you could currently try the “Latest” build of BlendLuxCore on
GitHub

And follow the Instructions for “Offline Installation” in our wiki

In this specific case, you need the following wheels:

  • pyluxcore-2.10.0a2-cp311-cp311-win_amd64.whl)
  • numpy-2.2.4-cp311-cp311-win_amd64.whl
  • nvidia_cuda_nvrtc_cu12-12.8.93-py3-none-win_amd64.whl
    You can search for them on PyPi if you can’t copy them from another PC. I can’t unfortunately post directly links here, apparently as a new user I can only post two links…

Based on a brief internal discussion, it might be that this method still doesn’t work on your machine, because the underlying error might not be the network blocking pip, but missing write permissions to the target folders (although I consider it less likely).

For that reason, I’ll continue to look into this offline-installation mechanism in the next weeks, so try but don’t get used to the procedure yet :grin:

Regarding your Blenderkit issue: I have installed it but did not immediately get any such error. Now, I am not a user of this addon, so if there any more specific steps than just installing it, please describe a little more how to reproduce this error.

I really appreciate your help with this!

Although, when I got to your 3rd step, the nvidia portion, I ran into these errors. I’m able to test and run the pip version command.

Hi,
sorry about the delay to get back to this.
I am not sure what exactly you have attempted with pip, given the portion of the screenshot.

I have added explicit download links to the wiki page for your platform, i.e. NOT using pip to obtain the wheels.

Note: These links now apply to the latest release-candidate version, which we published yesterday:

Hello! It’s really no problem at all. You’re helping a TON on your own time. I can’t possibly thank you enough. The Blender community is simply amazing:)

I will try this out! Thanks again!

Brent

Hi!

So sorry to bug again. But it looks like i’m not out of the woods just yet.

When I install, it looks like a success (and confirmed it’s installed in the bottom prompt). But then after a few seconds…

Could not import pyluxcore.

ImportError: DLL load failed while importing pyluxcore: The specified module could not be found.

To reiterate, I’m indeed using 4.2. Do I still need to download/install some dependencies?

Could you try the installation again (uninstall via the extensions menu first) and post the full console output? That might give some hints what happens.

After the installation, what is the content of the following folder?
%APPDATA%\Blender Foundation\Blender\4.2\extensions\user_default\BlendLuxCore\wheels

The three wheels you donwloaded manually should end up in there.

P.S.: Again apologies for the delay, I actually wrote this some days ago but I have trouble acessing blenderartists.org (I suspect related to peering issues of my local ISP) and the site timed out before I could send this.

Ah, I forgot about the 3 wheels.

I went ahead and downloaded those, from your earlier message. So I suppose my question now is, in what order does this all happen?

Depending at which stage I copy in those wheels, I get different errors.

For instance, do I attempt install first, which then creates the directory in appdata, copy in the wheels (which was empty, to answer your question), then attempt re-install? Doing so produces this error…

Apologies. I’m sure I’m not explaining things well enough as a non-programmer :frowning:

EDIT:

After attempting to install (and failure). I then try to un-install, which gives me this error. So then I remove the add-on manually, which then repeats the “could not import pyluxcore” error. I’m likely making things worse. Sorry!

I’m not entirely sure about the “Failed to remove existing directory” and what you describe around it. But of course I don’t have the same restrictions as your work PC so I couldn’t reliably replicate anyways…

The first step you did correct: Just trying to install the extension normally so that it creates the directory in appdata.

After that, I suspect you copied the three wheels directly into the “wheels/” folder?
This would be incorrect. Instead, you manually create a folder “install_offline/” next to it (not inside wheels/ !) and place the wheels in that.

After that, reopen Blender, and try to activate the addon-on. See the screenshot in our wiki:
https://wiki.luxcorerender.org/BlendLuxCore_Installation#Offline_Installation

It finally installed!

Thanks again for everything CodeHD! I wish I could buy you a beer or something!

After installing LuxCore Render v2.10.2, the error is output when you activate it.

Could not import pyluxcore.

ImportError: DLL load failed while importing pyluxcore: Unable to execute DLL initialization routine.

What’s the reason? :slightly_smiling_face:

In the LuxCore Render v2.10 installation video available on YouTube, it was activated with a typical Addon installation method without any special setup or installation process.

And in the wheels/ folder shown in the guide

numpy-2.3.4-cp311-cp311-win_amd64.whl
nvidia_cuda_nvrtc_cu12-12.8.93-py3-none-win_amd64.whl
pyluxcore-2.10.1-cp311-cp311-win_amd64.whl

Three files were also installed when you activated the LuxCore Render.