-
Notifications
You must be signed in to change notification settings - Fork 81
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
ModuleNotFoundError: No module named 'ankisyncd' #128
Comments
manual should update too |
@Nriver Apologies for the issue. I've pushed a quick fix for this issue. @isudfv I'm in the process of tidying up the code, and will update the documentation as part of the process. But feel free to reach out if there is any questions in the mean time. Many thanks for raising this to my attention. |
has this issue resolved? I get same errors... |
Hi @hackmalife, I have re-opened this issue. However, I will need your help to be able to reproduce this issue because it works for me. Can you confirm you're on the latest commit on the develop branch and then comment how you're getting this error? |
Thanks, @VikashKothary. I installed via AUR, so I believe it's the most recent commit. After I pip install requirements.txt, the rest of it and error messages are exactly same as the original comment, #128 (comment) |
anyways, I got around this issues by inserting parents path of ankisyncd_cli to system path for now |
I have no idea what's up, just got the same error as the issue name. $ /anki-sync-server/src/ankisyncd_cli# mv ankisyncctl.py migrate_user_tables.py ../
$ /anki-sync-server/src/ankisyncd_cli# cd ..
$ /anki-sync-server/src# python -m ankisyncd then work fine on both 2.1.46(pc-linux) and 2.15.6(android) another error ( the error probably cause by something in 2.1.49 client ) File "/home/w/anki-sync-server/src/ankisyncd/sync_app.py", line 210, in uploadChanges
processed_count = self._adopt_media_changes_from_zip(z)
File "/home/w/anki-sync-server/src/ankisyncd/sync_app.py", line 282, in _adopt_media_changes_from_zip
assert self.col.media.lastUsn() == oldUsn + processed_count # TODO: move to some unit test
AssertionError
[2022-04-05 05:41:45,310]:INFO:ankisyncd.http:127.0.0.1 "POST /msync/uploadChanges HTTP/1.0" 500 59 solved by comment the "sync_app.py: line 282 && line 274" after this one another error occurred, then I gave up and turned to the 2.1.46 client File "/home/wwo/anki-sync-server/src/ankisyncd/sync_app.py", line 125, in start
self.apply_graves(graves,self.maxUsn)
File "/home/wwo/anki-sync-server/src/ankisyncd/sync.py", line 230, in apply_graves
self.col.decks.remove(graves['decks'])
AttributeError: 'DeckManager' object has no attribute 'remove' |
i experienced this too and just moved the ./ankisyncd_cli/ankisyncctl.py into ./ and reran it |
@VikashKothary Minimal reproducible example as a Docker image:
Build and run with Removing the Edit: The previous error was due to an oversight on my part. The error message now reflects this issue's topic. |
@ghoski Much appreciated. I'll try and have a look this weekend if I have the time. But my first guess would be that you're not installing the package. But when you move it one-level higher, Python treats the package name as a relative import. Poetry installs the package out-of-the-box ( Once we've done that, you should be able to replace the This should be a short-term bug anyway because the plan is to deploy the CLI to PyPI which means you can use it without cloning the whole repository in the future. Which should hopefully make the maintenance of the sync server a lot simpler. Apologies again for the inconvenience. |
Hi, I was wondering if there's been any progress on this? I didn't see it in PyPI, but I may have missed it. FWIW,
(Line breaks added for legibility.) Running As a user, I would love to see a It would be nice, if you want to leave the existing workaround in place, to document it more fully in the readme. The main problem right now, from my POV, isn't that the installation is difficult, but that it's not properly documented. (I'm very glad this issue exists, I would probably still be fumbling around deciding on a way forward if it didn't.) Thanks very much for your work on this project, I hope you find this feedback helpful. |
Thank you for your feedback and kind words, it's always appreciated. I have implemented some actions based on the comments above:
Tbh, I was a bit of a rush job so it could probably needs to be improved over time, but hopefully it should fix this issue. I'd also ask that if anyone here finds any inconsistencies with the documentation, please raise a PR to improve it. Even small changes can make a huge difference to new and existing users alike. I do my best to keep it up to date but I do often miss things. Please review my changes and let me know if we can close this issue. |
This commit e47ed57 breaks the cli tool. Executing
ankisyncd_cli/ankisyncctl.py adduser <username>
will throwModuleNotFoundError: No module named 'ankisyncd'
The text was updated successfully, but these errors were encountered: