Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attrs: ValueError: Non keyword-only attributes are not allowed after a keyword-only attribute #6322

Closed
ghost opened this issue Jul 3, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 3, 2020

Electrum was running fine but when I updated to the most recent branch, 2db0ad1, I am getting an error I don't know how to resolve. I am running ubuntu version 19.10. Thanks for the help.

/usr/lib/python3/dist-packages/google/protobuf/internal/api_implementation.py:154: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
  from google.protobuf.pyext import _message
/usr/lib/python3/dist-packages/google/protobuf/internal/containers.py:182: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
  MutableMapping = collections.MutableMapping
Traceback (most recent call last):
  File "./run_electrum", line 84, in <module>
    from electrum.logging import get_logger, configure_logging
  File "/home/jeff/Projects/electrum/electrum/__init__.py", line 16, in <module>
    from .wallet import Wallet
  File "/home/jeff/Projects/electrum/electrum/wallet.py", line 65, in <module>
    from .storage import StorageEncryptionVersion, WalletStorage
  File "/home/jeff/Projects/electrum/electrum/storage.py", line 36, in <module>
    from .wallet_db import WalletDB
  File "/home/jeff/Projects/electrum/electrum/wallet_db.py", line 36, in <module>
    from .invoices import PR_TYPE_ONCHAIN, Invoice
  File "/home/jeff/Projects/electrum/electrum/invoices.py", line 146, in <module>
    class LNInvoice(Invoice):
  File "/home/jeff/.local/lib/python3.7/site-packages/attr/_make.py", line 959, in attrs
    return wrap(maybe_cls)
  File "/home/jeff/.local/lib/python3.7/site-packages/attr/_make.py", line 906, in wrap
    is_exc,
  File "/home/jeff/.local/lib/python3.7/site-packages/attr/_make.py", line 472, in __init__
    cls, these, auto_attribs, kw_only
  File "/home/jeff/.local/lib/python3.7/site-packages/attr/_make.py", line 416, in _transform_attrs
    "Attribute in question: {a!r}".format(a=a)
ValueError: Non keyword-only attributes are not allowed after a keyword-only attribute (unless they are init=False).  Attribute in question: Attribute(name='invoice', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False)
@SomberNight
Copy link
Member

duplicate of #6258 (comment) ?

you should update attrs

just rerun pip install for electrum:

python3 -m pip install --user -e .

@SomberNight SomberNight changed the title ValueError attrs: ValueError: Non keyword-only attributes are not allowed after a keyword-only attribute Jul 3, 2020
@ghost
Copy link
Author

ghost commented Jul 3, 2020

Thanks for your help!

@ghost ghost closed this as completed Jul 3, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant