<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39052</bug_id>
          
          <creation_ts>2020-10-08 21:52:02 +0300</creation_ts>
          <short_desc>Ошибка при запуске расширений</short_desc>
          <delta_ts>2020-10-21 22:09:50 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>inkscape</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="a.serg">anhsoft</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>193125</commentid>
    <comment_count>0</comment_count>
    <who name="a.serg">anhsoft</who>
    <bug_when>2020-10-08 21:52:02 +0300</bug_when>
    <thetext>Попытка запуска &quot;Расширения -&gt; Создание из контура -&gt; Текстура по контуру&quot; заканчивается не найденным модулем numpy.

https://stackoverflow.com/questions/52046845/changing-the-python-interpreter-for-inkscape

По ссылке рецепт решения: вставить
&lt;group id=&quot;extensions&quot; python-interpreter=&quot;/usr/bin/python&quot; ... /&gt;
в файл /home/user/.config/inkscape/preferences.xml, где строка python-interpreter - это интерпретатор python для запуска python-расширений.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193130</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-10-09 14:40:10 +0300</bug_when>
    <thetext>Проблему повторить не удаётся.
Поскольку бага изначально была для p9, где
inkscape-1.0-alt1.x86_64
, отправляю в p9
inkscape-1.0.1-alt1.x86_64
где консистентность с python3 улучшена.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193265</commentid>
    <comment_count>2</comment_count>
    <who name="a.serg">anhsoft</who>
    <bug_when>2020-10-15 19:38:29 +0300</bug_when>
    <thetext>[SL9] inkscape 1.0.1
Да, бага в p9, теперь в обновлённой версии.
Рисую два контура и выделяю оба, &quot;Расширения -&gt; Создание из контура -&gt; Текстура по контуру&quot;, далее жму &quot;предварительный просмотр&quot; или &quot;Применить&quot;.

copypast:
&quot;Traceback (most recent call last):
  File &quot;pathalongpath.py&quot;, line 36, in &lt;module&gt;
    from inkex.bezier import pointdistance, beziersplitatt, tpoint
  File &quot;/usr/share/inkscape/extensions/inkex/bezier.py&quot;, line 29, in &lt;module&gt;
    import numpy
ModuleNotFoundError: No module named &apos;numpy&apos;&quot;

PS: все старые конфиги перед обновлением удалил</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193269</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-10-16 01:31:35 +0300</bug_when>
    <thetext>(Ответ для a.serg на комментарий #2)
&gt; [SL9] inkscape 1.0.1
&gt; Да, бага в p9, теперь в обновлённой версии.
&gt; Рисую два контура и выделяю оба, &quot;Расширения -&gt; Создание из контура -&gt;
&gt; Текстура по контуру&quot;, далее жму &quot;предварительный просмотр&quot; или &quot;Применить&quot;.
&gt; 
&gt; copypast:
&gt; &quot;Traceback (most recent call last):
&gt;   File &quot;pathalongpath.py&quot;, line 36, in &lt;module&gt;
&gt;     from inkex.bezier import pointdistance, beziersplitatt, tpoint
&gt;   File &quot;/usr/share/inkscape/extensions/inkex/bezier.py&quot;, line 29, in &lt;module&gt;
&gt;     import numpy
&gt; ModuleNotFoundError: No module named &apos;numpy&apos;&quot;
&gt; 
&gt; PS: все старые конфиги перед обновлением удалил
apt-get install python3-module-numpy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193273</commentid>
    <comment_count>4</comment_count>
    <who name="a.serg">anhsoft</who>
    <bug_when>2020-10-16 09:32:59 +0300</bug_when>
    <thetext>Ок!, получилось.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193286</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-10-16 12:55:48 +0300</bug_when>
    <thetext>(Ответ для a.serg на комментарий #4)
&gt; Ок!, получилось.
Мне numpy кажется слишком тяжёлой зависимостью. Но признаю́сь, по вашему первому багрепорту проглядел, что у меня numpy уже установлен. В будущем буду в hasher тестировать.

 # apt-get install python3-module-numpy
...
libgfortran5 liblapack libnumpy-py3 libopenblas libquadmath0 libxblas python3-module-numpy
...
Need to get 7469kB of archives.
After unpacking 55.1MB of additional disk space will be used.

Думаете, стоит добавить в зависимости?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193289</commentid>
    <comment_count>6</comment_count>
    <who name="a.serg">anhsoft</who>
    <bug_when>2020-10-16 13:39:41 +0300</bug_when>
    <thetext>Однозначно добавить, т.к. в спеке пакета inkscape уже встречалась зависимость на lxml после аналогичной проблемы:
https://bugzilla.altlinux.org/21626
.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193305</commentid>
    <comment_count>7</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-10-16 22:14:33 +0300</bug_when>
    <thetext>Я добавлю поиск зависимостей для всех плагинов тогда.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193307</commentid>
    <comment_count>8</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-10-17 10:20:40 +0300</bug_when>
    <thetext>inkscape-1.0.1-alt2 -&gt; sisyphus:

 Fri Oct 16 2020 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 1.0.1-alt2
 - cleanup spec, add search requires in extensions dir (ALT bug 39052)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193335</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2020-10-19 15:54:56 +0300</bug_when>
    <thetext>Тот самый случай про мягкие зависимости и Recommends:.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193338</commentid>
    <comment_count>10</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-10-19 16:33:54 +0300</bug_when>
    <thetext>(Ответ для Michael Shigorin на комментарий #9)
&gt; Тот самый случай про мягкие зависимости и Recommends:.
Предлагаю поддержать идею о вынесении extensions в отдельный подпакет. Он и будет recommends.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193372</commentid>
    <comment_count>11</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-10-21 02:58:17 +0300</bug_when>
    <thetext>Установка inkscape 1.0.1 в базовую систему p9 (по понятию hasher):
Need to get 106MB of archives.
After unpacking 495MB of additional disk space will be used.

Обновление до сборки с включенными зависимостями extensions:
 # apt-get install inkscape
...
  libgfortran5 liblapack libncurses-devel libopenblas libquadmath0 libtinfo-devel libxblas python3-dev python3-module-apipkg python3-module-attrs python3-module-iniconfig python3-module-more-itertools python3-module-numpy python3-module-packaging
  python3-module-pkg_resources python3-module-pluggy python3-module-py python3-module-pyparsing python3-module-pytest python3-module-setuptools python3-module-wcwidth rpm-build-python3 tests-for-installed-python3-pkgs
2 upgraded, 23 newly installed, 0 removed and 1 not upgraded.
Need to get 0B/28.8MB of archives.
After unpacking 63.1MB of additional disk space will be used.

Среди них конечно особенное безобразие это
libncurses-devel
libtinfo-devel
python3-dev
rpm-build-python3
tests-for-installed-python3-pkgs
python3-module-pytest
python3-module-setuptools

Это всё из-за этого:
python3(setuptools) &lt; 0 is needed by (installed) inkscape-1.0.1-alt2.x86_64

буду исправляться.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193412</commentid>
    <comment_count>12</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-10-21 22:09:50 +0300</bug_when>
    <thetext>(Ответ для Vitaly Lipatov на комментарий #11)
..
&gt; Это всё из-за этого:
&gt; python3(setuptools) &lt; 0 is needed by (installed) inkscape-1.0.1-alt2.x86_64
&gt; 
&gt; буду исправляться.
Отправил в Сизиф сборку inkscape.git=1.0.1-alt3
где убраны ошибочные зависимости на setuptools и pytest.

По моим измерениям включение всех зависимостей, требуемых для extensions, потребовало дополнительно для устанавливаемых по зависимостям пакетов 9Мб (40Мб в установленном виде), при том, что сам inkscape занимает 22 (180Мб).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>