Bug#873036: new upstream release (0.19.3) required for magic-wormhole

2017-08-23 Thread Antoine Beaupré
On 2017-08-24 01:06:51, meejah wrote:
> I am not a Debian developer myself, but let me know if there's anything 
> txtorcon can change to help...

I think the issue is probably only in Debian, but thanks for the
attention!

A.

-- 
Thousands of candles can be lit from a single candle
And the life of the candle will not be shortened.
Happiness never decreases by being shared.
 - Buddha



Bug#873036: new upstream release (0.19.3) required for magic-wormhole

2017-08-23 Thread meejah
I am not a Debian developer myself, but let me know if there's anything 
txtorcon can change to help...



Bug#873036: new upstream release (0.19.3) required for magic-wormhole

2017-08-23 Thread Antoine Beaupre
Source: txtorcon
Version: 0.18.0
Severity: normal

Hi!

I would like to get help to see the latest version of txtorcon
(0.19.3) arrive in the archive. It is necessary to make tor support
work properly in magic-wormhole, and I suspect in other applications.

For example, wormhole requires the bugfix from this issue, shipped
with 0.19.3:

https://github.com/meejah/txtorcon/issues/237

0.19.2 also introduces py3 support, which we use in magic-wormhole as
well.

I have tried to prepare a NMU to do just that, using a rather naive
"gbp import-orig --uscan", but that failed. Looks like upstream added
the "automat" build-depend which makes tests fail. But even after
adding that to the build-deps, tests fail with:


make test
make[2]: Entering directory '/<>'
Makefile:15: warning: overriding recipe for target 'diagrams'
Makefile:12: warning: ignoring old recipe for target 'diagrams'
PYTHONPATH=. trial --reporter=text test
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/scripts/trial.py", line 472, 
in postOptions
_BasicOptions.postOptions(self)
  File "/usr/lib/python2.7/dist-packages/twisted/scripts/trial.py", line 382, 
in postOptions
self['reporter'] = self._loadReporterByName(self['reporter'])
  File "/usr/lib/python2.7/dist-packages/twisted/scripts/trial.py", line 369, 
in _loadReporterByName
for p in plugin.getPlugins(itrial.IReporter):
  File "/usr/lib/python2.7/dist-packages/twisted/plugin.py", line 213, in 
getPlugins
allDropins = getCache(package)
---  ---
  File "/usr/lib/python2.7/dist-packages/twisted/plugin.py", line 171, in 
getCache
provider = pluginModule.load()
  File "/usr/lib/python2.7/dist-packages/twisted/python/modules.py", line 392, 
in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 300, 
in namedAny
topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 239, 
in _importAndCheckStack
return __import__(importName)
  File "/<>/twisted/plugins/txtorcon_endpoint_parser.py", line 1, 
in 
import txtorcon
  File "/<>/txtorcon/__init__.py", line 16, in 
from txtorcon.controller import connect
  File "/<>/txtorcon/controller.py", line 35, in 
from txtorcon.endpoints import TorClientEndpoint, _create_socks_endpoint
  File "/<>/txtorcon/endpoints.py", line 14, in 
from txtorcon.socks import TorSocksEndpoint
  File "/<>/txtorcon/socks.py", line 61, in 
class _SocksMachine(object):
  File "/<>/txtorcon/socks.py", line 408, in _SocksMachine
outputs=[_send_version],
  File "/usr/lib/python2.7/dist-packages/automat/_methodical.py", line 62, in 
upon
self.machine._oneTransition(self, input, enter, outputs, collector)
  File "/usr/lib/python2.7/dist-packages/automat/_methodical.py", line 255, in 
_oneTransition
tuple(outputTokens))
  File "/usr/lib/python2.7/dist-packages/automat/_core.py", line 74, in 
addTransition
(inState, inputSymbol, outState, tuple(outputSymbols))
exceptions.TypeError: unhashable type: 'MethodicalState'

EE
===
[ERROR]
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/trial/runner.py", line 508, in 
loadPackage
module = modinfo.load()
  File "/usr/lib/python2.7/dist-packages/twisted/python/modules.py", line 392, 
in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 300, 
in namedAny
topLevelPackage = _importAndCheckStack(trialname)
  File "/usr/lib/python2.7/dist-packages/twisted/python/reflect.py", line 247, 
in _importAndCheckStack
reraise(excValue, excTraceback)
  File "/<>/test/test_addrmap.py", line 7, in 
from txtorcon.addrmap import AddrMap
  File "/<>/txtorcon/__init__.py", line 16, in 
from txtorcon.controller import connect
  File "/<>/txtorcon/controller.py", line 35, in 
from txtorcon.endpoints import TorClientEndpoint, _create_socks_endpoint
  File "/<>/txtorcon/endpoints.py", line 14, in 
from txtorcon.socks import TorSocksEndpoint
  File "/<>/txtorcon/socks.py", line 24, in 
from txtorcon import util
exceptions.ImportError: cannot import name util

[...]

I'm obviously hesitant in just disabling tests, so I'm turning to you
for help!

Let me know if you need more information.

Thanks!

A.
-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)