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

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

    <bug>
          <bug_id>29206</bug_id>
          
          <creation_ts>2013-07-20 18:00:32 +0400</creation_ts>
          <short_desc>Отсутствует зависимость на пакет tk</short_desc>
          <delta_ts>2016-05-05 14:58:56 +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-modules-tkinter</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>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denis Kirienko">dk</reporter>
          <assigned_to name="Grigory Ustinov">grenka</assigned_to>
          <cc>george</cc>
    
    <cc>glebfm</cc>
    
    <cc>grenka</cc>
    
    <cc>imz</cc>
    
    <cc>kotopesutility</cc>
    
    <cc>nbr</cc>
    
    <cc>vitty</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>141695</commentid>
    <comment_count>0</comment_count>
    <who name="Denis Kirienko">dk</who>
    <bug_when>2013-07-20 18:00:32 +0400</bug_when>
    <thetext>После установки пакета python3-tools не удается запустить idle3


$ idle3
Traceback (most recent call last):
  File &quot;/usr/bin/idle3&quot;, line 5, in &lt;module&gt;
    main()
  File &quot;/usr/lib64/python3.3/idlelib/PyShell.py&quot;, line 1483, in main
    root = Tk(className=&quot;Idle&quot;)
  File &quot;/usr/lib64/python3.3/tkinter/__init__.py&quot;, line 1789, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can&apos;t find a usable tk.tcl in the following directories: 
    /usr/share/tcl/tcl8.5/tk8.5 /usr/share/tcl/tk8.5 /usr/lib/tk8.5 /lib/tk8.5 /usr/library



This probably means that tk wasn&apos;t installed properly.


Для решения проблемы необходимо установить пакет tk.

Необходимо добавить зависимость на tk в пакет python3-modules-tkinter</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156513</commentid>
    <comment_count>1</comment_count>
    <who name="nbr">nbr</who>
    <bug_when>2016-05-05 13:09:05 +0300</bug_when>
    <thetext>Sisyphus.
apt-get install python-modules-tkinter
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  tk
The following NEW packages will be installed:
  python-modules-tkinter tk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156516</commentid>
    <comment_count>2</comment_count>
    <who name="Denis Kirienko">dk</who>
    <bug_when>2016-05-05 13:26:38 +0300</bug_when>
    <thetext>Вы перепутали модули python-modules-tkinter и python3-modules-tkinter.

У python-modules-tkinter зависимость на tk есть, а у python3-modules-tkinter - нет.

$ rpm -qR python-modules-tkinter
python-modules = 2.7.11-alt3
tk  
alternatives &gt;= 0:0.4
libtcl8.5.so &gt;= set:ngdZ1sKc9lqWKRm5ZaZmED7oZzgCFYzFzOqJK9I3BIZrnJrZKUR96X1cnW9Idjs76p13tswAgrKht510Fybufcrv9Wc41vHZqK9XyWfokkZDgwcjVGVHIBf9390q22ZkehQQrnYWvxSWKn1QWUTeU0o8uNuvgotMpicMqUoBZi61AvZ78QZFI20YQefhZiw8Gf
libtk8.5.so &gt;= set:mkyItQVFm0c1
rpmlib(PayloadIsLzma)  

$ rpm -qR python3-modules-tkinter
libtcl8.5.so &gt;= set:ngdZ1sKc9lqWKRm5ZaZmED7oZzgCFYzFzOqJK9I3BIZrnJrZKUR96X1cnW9Idjs76p13tswAgrKht510Fybufcrv9Wc41vHZqK9XWK8ZFdzyWZw2ApandvBJY9p81gjgMDsyEFTKURJ0Fn1QWUTeU0o8uNuvgotMpicMqUoBZi6141sZvAl0wDSV9On0hkv
libtk8.5.so &gt;= set:mkyItQVFm0c1
python3(_tkinter) &lt; 0
python3-test = 3.5.1-alt5
rpmlib(PayloadIsLzma)  


Поэтому переоткрываю баг.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156517</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-05-05 13:36:57 +0300</bug_when>
    <thetext>Не-не, всё справедливо для python3. Проверил: ни tk, ни tcl 

(apt-repo test пришлось указать какой-то номер задания, хотя моей целью было просто проверить простой командой установку в минимальной среде, как при install check)

$ apt-repo --hsh-apt-config=.hasher/sisyphus/apt.conf test &apos;&apos; python3-tools
Info: Will use hasher when appropriate (with --apt-config=.hasher/sisyphus/apt.conf). at /usr/bin/apt-repo line 30.
Info: Will try to read a non-system APT_CONFIG=.hasher/sisyphus/apt.conf at /usr/bin/apt-repo line 51.
Missing or wrong task number at /usr/bin/apt-repo line 193.
[imz@basalt ~]$ apt-repo --hsh-apt-config=.hasher/sisyphus/apt.conf test 164290 python3-tools
Info: Will use hasher when appropriate (with --apt-config=.hasher/sisyphus/apt.conf). at /usr/bin/apt-repo line 30.
Info: Will try to read a non-system APT_CONFIG=.hasher/sisyphus/apt.conf at /usr/bin/apt-repo line 51.

....

$ hsh-shell --mount=/proc,/dev/pts
[builder@localhost .in]$ rpm -qa | fgrep tk
libtk-8.5.9-alt3
python3-modules-tkinter-3.5.1-alt6
[builder@localhost .in]$ idle3
Traceback (most recent call last):
  File &quot;/usr/bin/idle3&quot;, line 5, in &lt;module&gt;
    main()
  File &quot;/usr/lib64/python3.5/idlelib/PyShell.py&quot;, line 1532, in main
    root = Tk(className=&quot;Idle&quot;)
  File &quot;/usr/lib64/python3.5/tkinter/__init__.py&quot;, line 1867, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can&apos;t find a usable init.tcl in the following directories: 
    /usr/share/tcl/tcl8.5 /usr/lib/tcl8.5 /lib/tcl8.5 /usr/library /library /tcl8.5.9/library /tcl8.5.9/library



This probably means that Tcl wasn&apos;t installed properly.

[builder@localhost .in]$ rpm -qf /usr/bin/idle3 /usr/lib64/python3.5/idlelib/PyShell.py /usr/lib64/python3.5/tkinter/__init__.py
python3-tools-3.5.1-alt6
python3-modules-tkinter-3.5.1-alt6
python3-modules-tkinter-3.5.1-alt6
[builder@localhost .in]$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156534</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2016-05-05 14:58:56 +0300</bug_when>
    <thetext>python3-3.5.1-alt7 -&gt; sisyphus:

* Thu May 05 2016 Ivan Zakharyaschev &lt;imz@altlinux&gt; 3.5.1-alt7
- python3-modules-tkinter: Requires: tk (ALT#29206)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>