[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3603: Port allmydata.scripts to Python 3

Tahoe-LAFS trac at tahoe-lafs.org
Sat Jan 30 17:27:37 UTC 2021


#3603: Port allmydata.scripts to Python 3
-------------------------+------------------------------
     Reporter:  jaraco   |      Owner:  jaraco
         Type:  defect   |     Status:  new
     Priority:  normal   |  Milestone:  Support Python 3
    Component:  unknown  |    Version:  n/a
   Resolution:           |   Keywords:
Launchpad Bug:           |
-------------------------+------------------------------

Comment (by jaraco):

 Run command fails with:

 {{{
 tahoe-lafs 3603.scripts $ .tox/py36/bin/python -m allmydata.scripts.runner
 run
 'tahoe run' in '/Users/jaraco/.tahoe'
 running node in '/Users/jaraco/.tahoe'
 2021-01-30T12:26:27-0500 [twisted.scripts._twistd_unix.UnixAppLogger#info]
 twistd 20.3.0 (/Users/jaraco/code/public/tahoe-lafs/.tox/py36/bin/python
 3.6.6) starting up.
 2021-01-30T12:26:27-0500 [twisted.scripts._twistd_unix.UnixAppLogger#info]
 reactor class: twisted.internet.selectreactor.SelectReactor.
 2021-01-30T12:26:29-0500 [-] Foolscap logging initialized
 2021-01-30T12:26:29-0500 [-] Note to developers: twistd.log does not
 receive very much.
 2021-01-30T12:26:29-0500 [-] Use 'flogtool tail -c
 NODEDIR/private/logport.furl' instead
 2021-01-30T12:26:29-0500 [-] and read docs/logging.rst
 2021-01-30T12:26:32-0500 [-] Main loop terminated.
 2021-01-30T12:26:32-0500 [twisted.scripts._twistd_unix.UnixAppLogger#info]
 Server Shut Down.

 Unknown error
 Traceback (most recent call last):
   File "/Users/jaraco/code/public/tahoe-lafs/.tox/py36/lib/python3.6/site-
 packages/twisted/internet/defer.py", line 151, in maybeDeferred
     result = f(*args, **kw)
   File "/Users/jaraco/code/public/tahoe-lafs/src/allmydata/client.py",
 line 239, in create_client
     _client_factory=_client_factory,
   File "/Users/jaraco/code/public/tahoe-lafs/.tox/py36/lib/python3.6/site-
 packages/twisted/internet/defer.py", line 1613, in unwindGenerator
     return _cancellableInlineCallbacks(gen)
   File "/Users/jaraco/code/public/tahoe-lafs/.tox/py36/lib/python3.6/site-
 packages/twisted/internet/defer.py", line 1529, in
 _cancellableInlineCallbacks
     _inlineCallbacks(None, g, status)
 --- <exception caught here> ---
   File "/Users/jaraco/code/public/tahoe-lafs/.tox/py36/lib/python3.6/site-
 packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
     result = g.send(result)
   File "/Users/jaraco/code/public/tahoe-lafs/src/allmydata/client.py",
 line 290, in create_client_from_config
     storage_broker,
   File "/Users/jaraco/code/public/tahoe-lafs/src/allmydata/client.py",
 line 669, in __init__
     self.init_web(webport) # strports string
   File "/Users/jaraco/code/public/tahoe-lafs/src/allmydata/client.py",
 line 1024, in init_web
     staticdir,
   File "/Users/jaraco/code/public/tahoe-lafs/src/allmydata/webish.py",
 line 208, in __init__
     self.buildServer(webport, tempdir, nodeurl_path, staticdir)
   File "/Users/jaraco/code/public/tahoe-lafs/src/allmydata/webish.py",
 line 228, in buildServer
     s = strports.service(webport, self.site)
   File "/Users/jaraco/code/public/tahoe-lafs/.tox/py36/lib/python3.6/site-
 packages/twisted/application/strports.py", line 40, in service
     endpoints.serverFromString(reactor, description), factory)
   File "/Users/jaraco/code/public/tahoe-lafs/.tox/py36/lib/python3.6/site-
 packages/twisted/internet/endpoints.py", line 1731, in serverFromString
     nameOrPlugin, args, kw = _parseServer(description, None)
   File "/Users/jaraco/code/public/tahoe-lafs/.tox/py36/lib/python3.6/site-
 packages/twisted/internet/endpoints.py", line 1649, in _parseServer
     getPlugins(IStreamServerEndpointStringParser), endpointType
   File "/Users/jaraco/code/public/tahoe-lafs/.tox/py36/lib/python3.6/site-
 packages/twisted/internet/endpoints.py", line 1665, in
 _matchPluginToPrefix
     raise ValueError("Unknown endpoint type: '%s'" % (endpointType,))
 builtins.ValueError: Unknown endpoint type: 'b'tcp'
 }}}

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3603#comment:6>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list