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

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

    <bug>
          <bug_id>39226</bug_id>
          
          <creation_ts>2020-11-08 22:40:58 +0300</creation_ts>
          <short_desc>python3-module-twisted-core: Конфликтует: python-module-twisted-core</short_desc>
          <delta_ts>2020-11-10 08:33:53 +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>python3-module-twisted-core</component>
          <version>unstable</version>
          <rep_platform>x86_64</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="Yuri N. Sedunov">aris</reporter>
          <assigned_to name="Vitaly Lipatov">lav</assigned_to>
          <cc>iv</cc>
    
    <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>193925</commentid>
    <comment_count>0</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2020-11-08 22:40:58 +0300</bug_when>
    <thetext>Следующие пакеты имеют неудовлетворенные зависимости:
  python3-module-twisted-core: Конфликтует: python-module-twisted-core
E: Ошибка. Процедура pkgProblemResolver::Resolve вызвала остановку. Это может быть вызвано сохраняемыми пакетами.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193926</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-11-08 22:42:08 +0300</bug_when>
    <thetext>(Ответ для Yuri N. Sedunov на комментарий #0)
&gt; Следующие пакеты имеют неудовлетворенные зависимости:
&gt;   python3-module-twisted-core: Конфликтует: python-module-twisted-core
&gt; E: Ошибка. Процедура pkgProblemResolver::Resolve вызвала остановку. Это
&gt; может быть вызвано сохраняемыми пакетами.

«Это может быть вызвано сохраняемыми пакетами.»
А там есть подробности? Да, конфликтуют.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193938</commentid>
    <comment_count>2</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2020-11-09 10:04:48 +0300</bug_when>
    <thetext>Подробности.

$ C ADU -o Debug::pkgProblemResolver=1
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Starting
Starting 2
Investigating python3-module-twisted-core
Package python3-module-twisted-core has broken dep on python-module-twisted-core
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
  Re-Instated python-module-twisted-core
  Added python-module-twisted-core to the remove list
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
Investigating python3-module-notebook
Package python3-module-notebook has broken dep on python-module-notebook
  Considering python-module-notebook 0 as a solution to python3-module-notebook -1
  Holding Back python3-module-notebook rather than change python-module-notebook
Investigating python3-module-twisted-core
Package python3-module-twisted-core has broken dep on python-module-twisted-core
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
  Added python-module-twisted-core to the remove list
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
Investigating python3-module-ipyparallel
Package python3-module-ipyparallel has broken dep on python3(notebook.base.handlers)
  Considering python3-module-notebook -1 as a solution to python3-module-ipyparallel -1
  Holding Back python3-module-ipyparallel rather than change python3(notebook.base.handlers)
Investigating python3-module-twisted-core
Package python3-module-twisted-core has broken dep on python-module-twisted-core
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
  Added python-module-twisted-core to the remove list
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
Investigating python3-module-ipython
Package python3-module-ipython has broken dep on python3(ipyparallel.apps.daemonize)
  Considering python3-module-ipyparallel -1 as a solution to python3-module-ipython -1
  Holding Back python3-module-ipython rather than change python3(ipyparallel.apps.daemonize)
Investigating python3-module-trio
Package python3-module-trio has broken dep on python3(IPython)
  Considering python3-module-ipython -1 as a solution to python3-module-trio -1
  Holding Back python3-module-trio rather than change python3(IPython)
Investigating python3-module-twisted-core
Package python3-module-twisted-core has broken dep on python-module-twisted-core
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
  Added python-module-twisted-core to the remove list
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
Investigating python3-module-dns
Package python3-module-dns has broken dep on python3(trio)
  Considering python3-module-trio -1 as a solution to python3-module-dns 1
  Holding Back python3-module-dns rather than change python3(trio)
Investigating python3-module-ipykernel
Package python3-module-ipykernel has broken dep on python3(IPython.core)
  Considering python3-module-ipython -1 as a solution to python3-module-ipykernel -1
  Holding Back python3-module-ipykernel rather than change python3(IPython.core)
Investigating python3-module-twisted-core
Package python3-module-twisted-core has broken dep on python-module-twisted-core
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
  Added python-module-twisted-core to the remove list
  Considering python-module-twisted-core 5 as a solution to python3-module-twisted-core 35
 Try to Re-Instate python3-module-dns
Done
Failed
The following packages have unmet dependencies:
  python3-module-twisted-core: Conflicts: python-module-twisted-core
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193958</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2020-11-09 14:03:02 +0300</bug_when>
    <thetext>У меня покороче:

apt&gt; dist-upgrade
Calculating Upgrade... MI2a: mark python3-module-html5-parser
MI2a:  target python3-module-beautifulsoup4
MI2a:   mark python3-module-beautifulsoup4
MI2a:    target python3-module-soupsieve
MI2a:     mark python3-module-soupsieve
MI2a:    delete python3-module-BeautifulSoup4
MI2a: mark python3-module-pygraphviz-tests
MI2a: mark python3-module-openssl
MI2a:  delete python3-module-OpenSSL
MI2a: mark elfutils
MI2a:  target libdebuginfod
MI2a:   mark libdebuginfod
MI2a: mark python3-module-twisted-core-tests
MI2a:  delete python3-module-twisted-core-test
MI2a: mark python3-module-twisted-core
MI2a:  delete python-module-twisted-core
MI2a:  delete python-module-twisted-core
Starting
Starting 2
Investigating python3-module-twisted-core
Package python3-module-twisted-core has broken dep on python-module-twisted-core
  Considering python-module-twisted-core 3 as a solution to python3-module-twisted-core 35
  Re-Instated python-module-twisted-core
  Added python-module-twisted-core to the remove list
  Considering python-module-twisted-core 3 as a solution to python3-module-twisted-core 35
Investigating python3-module-pygraphviz-tests
Package python3-module-pygraphviz-tests has broken dep on python3-module-pygraphviz
  Considering python3-module-pygraphviz 4 as a solution to python3-module-pygraphviz-tests 0
  Removing python3-module-pygraphviz-tests rather than change python3-module-pygraphviz
Investigating python3-module-twisted-core
Package python3-module-twisted-core has broken dep on python-module-twisted-core
  Considering python-module-twisted-core 3 as a solution to python3-module-twisted-core 35
  Added python-module-twisted-core to the remove list
  Considering python-module-twisted-core 3 as a solution to python3-module-twisted-core 35
Done
Failed
The following packages have unmet dependencies:
  python3-module-twisted-core: Conflicts: python-module-twisted-core
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


В качестве workarond-а снёс python-module-twisted-core  со всеми зависимостями

The following packages will be REMOVED:
  bzr cloud-utils python-module-automat python-module-fixtures python-module-pydoctor python-module-testscenarios python-module-testtools python-module-twisted-core python-module-twisted-logger


После этого dist-upgrade прошёл, но bzr обратно не ставится.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193963</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-11-09 14:20:25 +0300</bug_when>
    <thetext>(Ответ для Yuri N. Sedunov на комментарий #2)
&gt; Подробности.
&gt; 
...
&gt;   python3-module-twisted-core: Conflicts: python-module-twisted-core
&gt; E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused
&gt; by held packages.

Спасибо! Проблему теперь вижу и у себя, просто ко мне репозитории не так быстро приезжают.
Извините, накосячил, постараюсь разобраться asap.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193965</commentid>
    <comment_count>5</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2020-11-09 14:26:27 +0300</bug_when>
    <thetext>&gt; После этого dist-upgrade прошёл, но bzr обратно не ставится.

И это понятно.

Для начала, twisted-core для python и python3 конфликтуют. Конфликтуют потому что у них обоих есть утилиты

/usr/bin/pyhtmlizer
/usr/bin/twist
/usr/bin/twistd

и маны к ним.

Для bzr есть такая цепочка: bzr-&gt;python2.7(testtools)-&gt;python2.7(twisted) -- последний предоставляется python-module-twisted-core.

С другой стороны, python3-module-twisted-core требоется для python3-module-ipython (через торнадо), который нужен много чему в моей системе -- даже, пожалуй, неоправданно много чему.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193982</commentid>
    <comment_count>6</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-11-09 20:28:15 +0300</bug_when>
    <thetext>(Ответ для Ivan A. Melnikov на комментарий #5)
&gt; &gt; После этого dist-upgrade прошёл, но bzr обратно не ставится.
&gt; 
&gt; И это понятно.
&gt; 
&gt; Для начала, twisted-core для python и python3 конфликтуют. Конфликтуют
&gt; потому что у них обоих есть утилиты
&gt; 
&gt; /usr/bin/pyhtmlizer
&gt; /usr/bin/twist
&gt; /usr/bin/twistd
&gt; 
&gt; и маны к ним.
&gt; 
&gt; Для bzr есть такая цепочка: bzr-&gt;python2.7(testtools)-&gt;python2.7(twisted) --
&gt; последний предоставляется python-module-twisted-core.

bzr-&gt;python2.7(testtools)
Это ошибочная зависимость.

&gt; 
&gt; С другой стороны, python3-module-twisted-core требоется для
&gt; python3-module-ipython (через торнадо), который нужен много чему в моей
&gt; системе -- даже, пожалуй, неоправданно много чему.

&gt; python3-module-ipython
Я уже пытался бороться, и для python2.7 победил ipython полностью (его больше нет:)), а тут посмотрю ещё.

Возможно, хорошим решением было бы не паковать утилиты в пакет с модулями. Может быть, попробовать это на twisted?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193987</commentid>
    <comment_count>7</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2020-11-09 21:06:10 +0300</bug_when>
    <thetext>Наверное, хорошим решением будет запаковать утилиты в python-module-twisted-core c суффиксом -2.
/usr/bin/pyhtmlizer-2
/usr/bin/twist-2
/usr/bin/twistd-2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193989</commentid>
    <comment_count>8</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2020-11-09 21:11:14 +0300</bug_when>
    <thetext>Хотя, они все не работают без PyHamcrest &gt;= 1.9.0

$ twist --help
Traceback (most recent call last):
  File &quot;/usr/bin/twist&quot;, line 6, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 3251, in &lt;module&gt;
    @_call_aside
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 3235, in _call_aside
    f(*args, **kwargs)
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 583, in _build_master
    ws.require(__requires__)
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File &quot;/usr/lib/python2.7/site-packages/pkg_resources/__init__.py&quot;, line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The &apos;PyHamcrest&gt;=1.9.0&apos; distribution was not found and is required by Twisted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193997</commentid>
    <comment_count>9</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-11-09 23:20:09 +0300</bug_when>
    <thetext>(Ответ для Yuri N. Sedunov на комментарий #7)
&gt; Наверное, хорошим решением будет запаковать утилиты в
&gt; python-module-twisted-core c суффиксом -2.
&gt; /usr/bin/pyhtmlizer-2
&gt; /usr/bin/twist-2
&gt; /usr/bin/twistd-2

А я было решил упаковать в twisted-core эти утилиты (изъяв из python3-module-twisted-core).
Давайте я вообще удалю эти команды из python-module-twisted-core? Они нужны для запуска сервера с twisted, не думаю, что он нужны, тем более в переименованном виде.

В любом случае, утилиты я бы вынес из основного пакета. Как думаете?

(Ответ для Yuri N. Sedunov на комментарий #8)
&gt; Хотя, они все не работают без PyHamcrest &gt;= 1.9.0
...
&gt; pkg_resources.DistributionNotFound: The &apos;PyHamcrest&gt;=1.9.0&apos; distribution was
&gt; not found and is required by Twisted
Хм...


Я пока борюсь с левыми зависимостями:
 $ sudo -- eatmydata rpm -ev python3-module-twisted-core-tests-20.3.0-alt2.x86_64
ошибка: Неудовлетворенные зависимости:
	python3(twisted.test.proto_helpers) &lt; 0 нужен для (установлен) python3-module-twisted-core-20.3.0-alt2.x86_64
	python3(twisted.test.test_twistd) &lt; 0 нужен для (установлен) python3-module-twisted-core-20.3.0-alt2.x86_64
	python3(twisted.trial) &lt; 0 нужен для (установлен) python3-module-twisted-core-20.3.0-alt2.x86_64
	python3(twisted.trial.unittest) &lt; 0 нужен для (установлен) python3-module-twisted-core-20.3.0-alt2.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194003</commentid>
    <comment_count>10</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-11-10 01:28:28 +0300</bug_when>
    <thetext>python3-module-twisted-core-20.3.0-alt2 -&gt; sisyphus:

 Mon Nov 09 2020 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 20.3.0-alt2
 - pack tools to twisted-core-tools (ALT bug 39226)
 - fix tests packing (no more tests package requires from the packages)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194004</commentid>
    <comment_count>11</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2020-11-10 01:29:00 +0300</bug_when>
    <thetext>(Ответ для Vitaly Lipatov на комментарий #6)
...
&gt; &gt; Для bzr есть такая цепочка: bzr-&gt;python2.7(testtools)-&gt;python2.7(twisted) --
&gt; &gt; последний предоставляется python-module-twisted-core.
&gt; 
&gt; bzr-&gt;python2.7(testtools)
&gt; Это ошибочная зависимость.
Исправил
* Tue Nov 10 2020 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 2.7.0-alt6
- NMU: drop testtools requires


&gt; 
&gt; &gt; 
&gt; &gt; С другой стороны, python3-module-twisted-core требоется для
&gt; &gt; python3-module-ipython (через торнадо), который нужен много чему в моей
&gt; &gt; системе -- даже, пожалуй, неоправданно много чему.
Я посмотрел на список — примерно всё связанное ipython с ним связано :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>194006</commentid>
    <comment_count>12</comment_count>
    <who name="Ivan A. Melnikov">iv</who>
    <bug_when>2020-11-10 08:33:53 +0300</bug_when>
    <thetext>(In reply to Vitaly Lipatov from comment #11)
&gt; &gt; &gt; С другой стороны, python3-module-twisted-core требоется для
&gt; &gt; &gt; python3-module-ipython (через торнадо), который нужен много чему в моей
&gt; &gt; &gt; системе -- даже, пожалуй, неоправданно много чему.
&gt; Я посмотрел на список — примерно всё связанное ipython с ним связано :)

Да, из того, что у меня в системе осталось это пожалуй только https://bugzilla.altlinux.org/39239</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>