Solved Electrum connection error

py36 version of finance/electrum won't connect, and when I run it from the command line, I get this error:

Code:
E/i | interface.[****this Internet address changes****:50004] | Exception in wrapper_func: AttributeError("module 'aiorpcx' has no attribute 'Connector'",)
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/electrum/util.py", line 908, in wrapper
    return await func(*args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/electrum/interface.py", line 306, in wrapper_func
    return await func(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/electrum/interface.py", line 321, in run
    ssl_context = await self._get_ssl_context()
  File "/usr/local/lib/python3.6/site-packages/electrum/interface.py", line 289, in _get_ssl_context
    await self._try_saving_ssl_cert_for_first_time(ca_sslc)
  File "/usr/local/lib/python3.6/site-packages/electrum/interface.py", line 246, in _try_saving_ssl_cert_for_first_time
    ca_signed = await self.is_server_ca_signed(ca_ssl_context)
  File "/usr/local/lib/python3.6/site-packages/electrum/interface.py", line 236, in is_server_ca_signed
    await self.open_session(ca_ssl_context, exit_early=True)
  File "/usr/local/lib/python3.6/site-packages/electrum/interface.py", line 412, in open_session
    async with aiorpcx.Connector(NotificationSession,
AttributeError: module 'aiorpcx' has no attribute 'Connector'

I've installed everything from packages, then I upgraded it and python related ports with ports. I rebuilt py36-aiorpc from ports too. I got the same error, no matter how I used ports and packages.

In the Makefile, this may be a clue:
Code:
# Supports 3.4+ but aiorpcX is 3.6+
USES=           python:3.6+
USE_PYTHON=     autoplist concurrent distutils

Mentioned to maintainer.
 
The required version of dependency aiorpcX was downgraded, so updating the ports tree and rebuilding should fix it.
 
Back
Top