Bug 388848 - Python Plugin Manager is completely empty
Summary: Python Plugin Manager is completely empty
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Scripting (show other bugs)
Version: 4.0.0-beta.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Alvin Wong
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-12 08:34 UTC by elkmug
Modified: 2018-01-15 15:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description elkmug 2018-01-12 08:34:51 UTC
Windows 7 64bit SP1, Python 3.6.4

The default scripts and their corresponding .desktop files are in krita-x64-4.0.0.51\share\krita\pykrita, but they are not available in the Python Plugin Manager or Tools>Scripts menu.

As an experiment I tried placing a few of the scripts/.desktop files in the resources pykrita folder but this did not work either.

Scripting was functioning in Windows portable krita-4.0.0-prealpha.2c, so unless it's been disabled for some reason, I'm guessing this is a bug
Comment 1 elkmug 2018-01-12 08:41:24 UTC
Forgot to specify, this is the Windows portable version of 4.0.0-beta 1
Comment 2 Halla Rempt 2018-01-12 10:31:20 UTC
We moved to KDE's binary factory, with a set of new scripts, and something must still be wrong with the packaging scripts:

[14376] krita.scripting: Setting python paths: "C:/Users/boude/AppData/Roaming/krita\\;C:/Users/boude/Desktop/krita-x64-4.0.0.51/bin\\;C:/Users/boude/AppData/Roaming/krita/pykrita\\;C:/Users/boude/Desktop/krita-x64-4.0.0.51/share/pykrita\\;C:/Users/boude/Desktop/krita-x64-4.0.0.51/share/krita/pykrita\\;C:/Users/boude/Desktop/krita-x64-4.0.0.51/lib/krita-python-libs;C:/Users/boude/Desktop/krita-x64-4.0.0.51/python/python36.zip;C:/Users/boude/Desktop/krita-x64-4.0.0.51/python"
[14376] krita.scripting: "Traceback (most recent call last):"
[14376] krita.scripting: "  File \"C:\\Users\\boude\\Desktop\\krita-x64-4.0.0.51\\lib\\krita-python-libs\\krita\\__init__.py\", line 8, in <module>"
[14376] krita.scripting: "    from .api import *"
[14376] krita.scripting: "  File \"C:\\Users\\boude\\Desktop\\krita-x64-4.0.0.51\\lib\\krita-python-libs\\krita\\api.py\", line 28, in <module>"
[14376] krita.scripting: "    from PyKrita.krita import *"
[14376] krita.scripting: "ModuleNotFoundError: No module named 'sip'"
[14376] krita.scripting: "Could not import krita"
Comment 3 Alvin Wong 2018-01-14 08:13:05 UTC
Git commit 94e1e47641c9e6546b9d4b5eaf1ac1d4c70465f1 by Alvin Wong.
Committed on 14/01/2018 at 08:10.
Pushed by alvinwong into branch 'master'.

Win packaging: Also copy Python libs from deps install dir

Regression from: 871a70823e8ffa007d8b59e18122b5f5f173b6d4
Maniphest Tasks: T1625
Ref: D9582

M  +1    -0    packaging/windows/package-complete.cmd

https://commits.kde.org/krita/94e1e47641c9e6546b9d4b5eaf1ac1d4c70465f1
Comment 4 Alvin Wong 2018-01-15 15:14:30 UTC
Confirmed fixed on latest nightly #36 krita-nightly-x64-v4.0.0.51-97-g2ab0991e25