Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It asks for an external Python module and still doesn't activate although I install it [3.4] #2

Open
MicheleGiunto opened this issue Jan 24, 2023 · 2 comments

Comments

@MicheleGiunto
Copy link

Whenever I try to enable the addon Blender freezes for a bit. Then it shows this
Traceback (most recent call last):
File "(path-to)\Blender\3.4\scripts\modules\addon_utils.py", line 333, in enable
mod = import(module_name)
File (path-to)\Blender\3.4\scripts\addons\fast_pbr_viewport_render_init_.py", line 129, in
import imgui
ModuleNotFoundError: No module named 'imgui'

I tried opening a Windows terminal and running

pip install imgui[full]

Still no luck activating it.

@ItsCubeTime
Copy link
Owner

ItsCubeTime commented Jan 25, 2023

Hi 👋Thats strange. Not impossible that 1.6.2 had some first-time install issue that I wasnt aware of. Can you try the latest release that I just uploaded? https://github.com/ItsCubeTime/FastPBR/releases/latest

I also recorded a fresh-install video for you: https://youtu.be/wev76s-1FG0

I should add btw that running

pip install <pkgname>

in a terminal calls the pip installation on your path - not the one in your Blender installation, so if you were to install pip packages manually (something you shouldn't have to do, as my addon will install all dependencies for you) you would have to make sure its the pip installation that comes with blender that you're calling. Running something like:

import subprocess
import sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "imgui"])

in Blenders Python console could probably work though - this is in fact exactly what my addon is running under the hood (for several dependencies, but again, my addon does this for you)

@MicheleGiunto
Copy link
Author

Thank you very much dude!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants