question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'MediaSyncer' from 'anki.sync'

See original GitHub issue
❯ apy add -t python -d Python -m Basic-22px

reverting to stock json

Traceback (most recent call last):
  File "/home/dufferzafar/.local/bin/apy", line 11, in <module>
    load_entry_point('apy==0.1', 'console_scripts', 'apy')()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2859, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2450, in load
    return self.resolve()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/dufferzafar/.local/lib/python3.8/site-packages/apy/cli.py", line 5, in <module>
    from apy.anki import Anki
  File "/home/dufferzafar/.local/lib/python3.8/site-packages/apy/anki.py", line 10, in <module>
    from anki.sync import Syncer, MediaSyncer, RemoteServer, RemoteMediaServer
ImportError: cannot import name 'MediaSyncer' from 'anki.sync' (/usr/lib/python3.8/site-packages/anki/sync.py)

Haven’t debugged this further. Perhaps anki has been updated? Not sure.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
lervagcommented, May 21, 2020

hah, good point; fixing immediately

0reactions
lervagcommented, May 21, 2020

No problem, thanks for the hints on pip. I’ve updated the readme again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

anki-sync-server/sync_app.py at master - GitHub
from anki.sync import Syncer, MediaSyncer ... So that 'server' (the 3rd argument) can't get set. Syncer. ... Performs unicode normalization for file names....
Read more >
Can't sync to AnkiWeb? : r/Anki - Reddit
The only thing I can think of is if it's a profile naming issue: Back Up (File - Export/AnkiWeb). Make a note of...
Read more >
Syncing in Anki: Sounds and Images - YouTube
Your browser can't play this video. ... please ask over on the user forums: https://forums. ankiweb.net 0:00 Uploading from computer …
Read more >
Media files may take time to sync - Frequently Asked Questions
Recent Anki and AnkiMobile versions synchronize sounds and images in the background, allowing you to continue using the app while they are transferred....
Read more >
ImportError: cannot import name 'sync' - python - Stack Overflow
Turned out that the package installation was broken. So, I reinstalled the package and everything works fine now. Uninstall telethon:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found