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

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

    <bug>
          <bug_id>19979</bug_id>
          
          <creation_ts>2009-05-07 23:56:15 +0400</creation_ts>
          <short_desc>Зависимости в TurboGears</short_desc>
          <delta_ts>2010-10-07 12:09:03 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python-module-TurboGears</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="Evgeny Sinelnikov">sin</reporter>
          <assigned_to name="Ivan Zakharyaschev">imz</assigned_to>
          <cc>antohami</cc>
    
    <cc>cas</cc>
    
    <cc>cow</cc>
    
    <cc>darktemplar</cc>
    
    <cc>enp</cc>
    
    <cc>evg</cc>
    
    <cc>george</cc>
    
    <cc>grenka</cc>
    
    <cc>lav</cc>
    
    <cc>mithraen</cc>
    
    <cc>nbr</cc>
    
    <cc>obirvalger</cc>
    
    <cc>qa_viy</cc>
    
    <cc>rider</cc>
    
    <cc>sem</cc>
    
    <cc>shaba</cc>
    
    <cc>sin</cc>
    
    <cc>slev</cc>
    
    <cc>vitty</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90963</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2009-05-07 23:56:15 +0400</bug_when>
    <thetext>После установки TurboGears недосчитывается зависимостей:

$ tg-admin i18n compile
Traceback (most recent call last):
  File &quot;/usr/bin/tg-admin&quot;, line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 2562, in &lt;module&gt;
    working_set.require(__requires__)
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: TurboKid&gt;=1.0.4

Устанавливаем python-module-turbokid:

[sin@server TurboGears.egg-info]$ tg-admin i18n compile
Traceback (most recent call last):
  File &quot;/usr/bin/tg-admin&quot;, line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 2566, in &lt;module&gt;
    parse_requirements(__requires__), Environment()
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: TurboJson&gt;=1.1.4,&lt;1.2

Проверяем:
$ grep TurboJson /usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg-info/requires.txt
TurboJson &gt;= 1.1.4, &lt; 1.2
TurboJson &gt;= 1.1.4, &lt; 1.2

Устраняем:
$ grep TurboJson /usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg-info/requires.txt
TurboJson &gt;= 1.1.4
TurboJson &gt;= 1.1.4, &lt; 1.2

Получаем:
$ tg-admin i18n compile
Traceback (most recent call last):
  File &quot;/usr/bin/tg-admin&quot;, line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 2562, in &lt;module&gt;
    working_set.require(__requires__)
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: TurboCheetah&gt;=1.0

Устанавливаем python-module-turbocheetah:
$ tg-admin i18n compile
Traceback (most recent call last):
  File &quot;/usr/bin/tg-admin&quot;, line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 2562, in &lt;module&gt;
    working_set.require(__requires__)
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: PasteScript&gt;=1.6.

Устанавливаем python-module-PasteScript:
$ tg-admin i18n compile
Traceback (most recent call last):
  File &quot;/usr/bin/tg-admin&quot;, line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 2562, in &lt;module&gt;
    working_set.require(__requires__)
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: DecoratorTools&gt;=1.4

Устанавливаем python-module-decoratortools:
$ tg-admin i18n compile
Traceback (most recent call last):
  File &quot;/usr/bin/tg-admin&quot;, line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 2562, in &lt;module&gt;
    working_set.require(__requires__)
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: ConfigObj&gt;=4.3.2

Пытаемся установить python-module-configobj:
[...]
file /usr/lib/python2.5/site-packages/configobj.py from install of python-module-configobj-4.5.3-alt1 conflicts with file from package python-module-matplotlib-0.98.3-alt3
file /usr/lib/python2.5/site-packages/configobj.pyc from install of python-module-configobj-4.5.3-alt1 conflicts with file from package python-module-matplotlib-0.98.3-alt3
file /usr/lib/python2.5/site-packages/configobj.pyo from install of python-module-configobj-4.5.3-alt1 conflicts with file from package python-module-matplotlib-0.98.3-alt3
E: Ошибка во время исполнения транзакции

Проверяем
$ grep ConfigObj /usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg-info/requires.txt
ConfigObj &gt;= 4.3.2
ConfigObj &gt;= 4.3.2

Отрвываем, как в федоре, ибо не нужен:
$ grep ConfigObj /usr/lib/python2.5/site-packages/TurboGears-1.0.8-py2.5.egg-info/requires.txt
ConfigObj &gt;= 4.3.2

Получаем:
$ tg-admin i18n compile
Traceback (most recent call last):
  File &quot;/usr/bin/tg-admin&quot;, line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 2566, in &lt;module&gt;
    parse_requirements(__requires__), Environment()
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 528, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (simplejson 1.7.4 (/usr/lib/python2.5/site-packages), Requirement.parse(&apos;simplejson&gt;=1.9.1&apos;))

Устанавливаем python-module-simplejson:
$ tg-admin i18n compile
Traceback (most recent call last):
  File &quot;/usr/bin/tg-admin&quot;, line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 2566, in &lt;module&gt;
    parse_requirements(__requires__), Environment()
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 528, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (simplejson 1.7.4 (/usr/lib/python2.5/site-packages), Requirement.parse(&apos;simplejson&gt;=1.9.1&apos;))

Проверяем:
$ rpm -q python-module-simplejson
python-module-simplejson-1.7.4-alt1.1

Обновляем (это, я вам скажу, оказалась не тривиальная операция):
git://git.altlinux.org/people/sin/packages/simplejson.git

Получаем:
$ tg-admin i18n compile
Traceback (most recent call last):
  File &quot;/usr/bin/tg-admin&quot;, line 5, in &lt;module&gt;
    from pkg_resources import load_entry_point
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 2562, in &lt;module&gt;
    working_set.require(__requires__)
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File &quot;/usr/lib/python2.5/site-packages/pkg_resources.py&quot;, line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: PEAK-Rules&gt;=0.5a1.dev-r2555

У нас python-module-peak-0.5-alt1.alpha4.svn.2590
....

Всё... Пока я иссяк...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90990</commentid>
    <comment_count>1</comment_count>
    <who name="Denis Klimov">zver</who>
    <bug_when>2009-05-08 21:44:55 +0400</bug_when>
    <thetext>Этот пакет я собирал для того чтобы запустить openerp-web. У меня ваша команда отрабатывает так:
zver@msi /tmp/tg % tg-admin quickstart
[...]
zver@msi /tmp/tg % cd Test
zver@msi /tmp/tg/Test % tg-admin i18n compile

/usr/lib/python2.5/site-packages/RuleDispatch-0.5a1.dev_r2506-py2.5-linux-i686.egg/dispatch/__init__.py:98: Warning: &apos;as&apos; will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/RuleDispatch-0.5a1.dev_r2506-py2.5-linux-i686.egg/dispatch/predicates.py:239: Warning: &apos;as&apos; will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/RuleDispatch-0.5a1.dev_r2506-py2.5-linux-i686.egg/dispatch/predicates.py:263: Warning: &apos;as&apos; will become a reserved keyword in Python 2.6
/usr/lib/python2.5/site-packages/RuleDispatch-0.5a1.dev_r2506-py2.5-linux-i686.egg/dispatch/predicates.py:281: Warning: &apos;as&apos; will become a reserved keyword in Python 2.6

Правда говоря у меня на рабочей машине уже не совсем rpm-only.
Сам разработкой на TG не занимаюсь. Не могли бы вы предоставить список команда до tg-admin i18n compile, возможно вы что то делали не так как я?

В ближайшее время проверю в VE.


P.S. свежую версию python-module-simplejson отправьте в сизиф, не помешает ;) или попросите об этом Генадия.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113220</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2010-10-06 18:08:06 +0400</bug_when>
    <thetext>python-module-TurboGears-1.0.9-alt2 -&gt; sisyphus:

* Wed Oct 06 2010 Vitaly Lipatov &lt;lav@altlinux&gt; 1.0.9-alt2
- fix requires (ALT bug #19979)

* Wed Oct 06 2010 Vitaly Lipatov &lt;lav@altlinux&gt; 1.0.9-alt1
- new version (1.0.9) import in git</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113240</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2010-10-07 12:09:03 +0400</bug_when>
    <thetext>Теперь у меня получается так:
$ tg-admin i18n compile
/usr/lib/python2.6/site-packages/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/site-packages/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/usr/lib/python2.6/site-packages/sqlobject/converters.py:165: DeprecationWarning: the sets module is deprecated
  from sets import Set, ImmutableSet
/usr/lib/python2.6/site-packages/dispatch/predicates.py:379: DeprecationWarning: object.__new__() takes no parameters
  return ExprBase.__new__(klass,function,*argexprs)
This command needs to be run from inside a project directory</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>