-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
skia-python isn't detected albeit present #65
Comments
What's the specific error you are getting? Any specific reason why you aren't using the automatic dependency installation mechanism this addon provides?
If packaged correctly, Blender should come with it's own python installation which already comes with Also note: The correct python version for Blender 4.1 is 3.11.7. |
That UI in the preferences is not native, but comes from my addon (from the |
Are you sure about that? |
That was an incorrect statement.
Does this provide any insights?
|
That looks like your environment variables are still messed up, it shouldn't use that venv by default.
Not really, as you are using your systems python version. Try evaluating |
Any ideas?
that is from within blender. |
Is PYTHONPATH or BLENDER_SYSTEM_PYTHON still set? If so unset those.
That's the problem. I'm guessing |
This is consistent with the statement the GUI makes. |
Any thoughts, @30350n ? |
Well Blender 4.2 has a new extension format now, which includes prebuilt dependencies and handles their installation (similarly to what my code already did). I have started implementing this on the So as that's probably going to resolve this, I don't think it makes much sense looking into what's the exact issue here any further. |
Closing this, as it should be resolved by installing the newest v2.13 version which uses the new Blender Extension Format! |
Since it was advised in #62 that my blender was too old, I now created an environment in which I can run a new enough blender (4.1.1+dfsg-2+b1).
Unfortunately that setup is not as straight forward as I would like it to be and I ran into an issue.
Setup:
venv
andpip
because not all dependencies are available via debian packages. (skia-python) is missing.I've installed all required dependencies
The first three entries in the list above are detected as expected, but skia-python isn't and I struggle to understand why.
I run blender like so:
PYTHONPATH=$HOME/.venv/blender_deps/lib/python3.12/site-packages/ blender --python-use-system-env
the following works just fine:
PYTHONPATH=$HOME/.venv/blender_deps/lib/python3.12/site-packages/:$HOME/.config/blender/4.1/scripts/addons/pcb2blender_importer/site-packages/ python3 -c 'from skia import SVGDOM, Color4f, Stream, Surface'
skia-python
is in the samesite-packages
directory as all other dependencies. I am not sure why it isn't detected.The text was updated successfully, but these errors were encountered: