Bug 24078 - отсутствует twisted.trial
Summary: отсутствует twisted.trial
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: python-module-twisted-core (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Grigory Ustinov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-14 16:15 MSD by Alexey Shabalin
Modified: 2010-09-15 07:12 MSD (History)
21 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shabalin 2010-09-14 16:15:49 MSD
Не смог найти, куда упакован twisted.trial.
в plugins/twisted_trial.py есть импорт, который заканчивается ошибкой
from twisted.trial.itrial import IReporter

/usr/bin/twistd -r glib2 -y /usr/share/nanny/daemon/nanny.tap -u root -g root --logfile=/var/log/nanny.log 
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/twisted/python/usage.py", line 373, in <lambda>
    fn = lambda name, value, m=method: m(value)
  File "/usr/lib64/python2.6/site-packages/twisted/application/app.py", line 502, in opt_reactor
    installReactor(shortName)
  File "/usr/lib64/python2.6/site-packages/twisted/application/reactors.py", line 79, in installReactor
    for installer in getReactorTypes():
  File "/usr/lib64/python2.6/site-packages/twisted/plugin.py", line 199, in getPlugins
    allDropins = getCache(package)
--- <exception caught here> ---
  File "/usr/lib64/python2.6/site-packages/twisted/plugin.py", line 164, in getCache
    provider = pluginModule.load()
  File "/usr/lib64/python2.6/site-packages/twisted/python/modules.py", line 383, in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib64/python2.6/site-packages/twisted/python/reflect.py", line 464, in namedAny
    topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/lib64/python2.6/site-packages/twisted/plugins/twisted_trial.py", line 4, in <module>
    from twisted.trial.itrial import IReporter
exceptions.ImportError: No module named trial.itrial
Comment 1 Andrey Rahmatullin 2010-09-14 16:21:49 MSD
Да-да.
Comment 2 real@altlinux.org 2010-09-15 07:12:15 MSD
"Не смог найти, куда упакован twisted.trial."

В python-module-twisted-core-test.

"в plugins/twisted_trial.py есть импорт, который заканчивается ошибкой
from twisted.trial.itrial import IReporter"

А это нехорошо. Перенёс этот файл в пакет *-test, заодно и %_bindir/trial и twisted/scripts/trial.py туда же. Ждите 10.1.0-alt5 в сизифе (task #28981)