Bug 24078 - отсутствует twisted.trial
: отсутствует twisted.trial
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/python-module-twisted-core)
: unstable
: all Linux
: P3 normal
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2010-09-14 16:15 by
Modified: 2010-09-15 07:12 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2010-09-14 16:15:49
Не смог найти, куда упакован 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 From 2010-09-14 16:21:49 -------
Да-да.
------- Comment #2 From 2010-09-15 07:12:15 -------
"Не смог найти, куда упакован 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)