ankisync2 icon indicating copy to clipboard operation
ankisync2 copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: '.../collection.anki21'

Open NicolasMICAUX opened this issue 1 year ago • 3 comments

When opening an Apkg (deck exported from Anki2.1.15 (442df9d6), with ankisync2 0.3.4 and python 3.10.6), I get the following error :

  File "xxx.py", line 4, in <module>
    with Apkg('xxxx.apkg') as apkg:
  File "xxx/venv/lib/python3.10/site-packages/ankisync2/apkg.py", line 49, in __init__
    shutil.copy(
  File "/usr/lib/python3.10/shutil.py", line 417, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'xxxx/collection.anki21'
python-BaseException

Any idea why ?

NicolasMICAUX avatar Sep 25 '22 08:09 NicolasMICAUX