ankicommunity / ankicommunity-sync-server

A personal Anki sync server (so you can sync against your own server rather than AnkiWeb)
GNU Affero General Public License v3.0
870 stars 80 forks source link

AttributeError: module 'ankisyncd.config' has no attribute 'load' #153

Closed AutomaticUpdates closed 1 year ago

AutomaticUpdates commented 1 year ago

When trying to run python -m ankisyncd_cli adduser username the following error occurs:

Traceback (most recent call last):
  File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/opt/anki-sync-server/src/ankisyncd_cli/__main__.py", line 1, in <module>
    from ankisyncd_cli import ankisyncctl
  File "/opt/anki-sync-server/src/ankisyncd_cli/ankisyncctl.py", line 10, in <module>
    config = config.load()
AttributeError: module 'ankisyncd.config' has no attribute 'load'

I use the develop branch

VikashKothary commented 1 year ago

Sorry about this. I renamed the method and forgot to update it in the CLI. Will fix in the next few hours.

VikashKothary commented 1 year ago

I've pushed a fix. Can you try now?

AutomaticUpdates commented 1 year ago

It works now, thanks!