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!
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
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.
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.
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.
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
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.
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:)
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.
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
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 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?
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.