-
Notifications
You must be signed in to change notification settings - Fork 8
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
Working update #16
base: master
Are you sure you want to change the base?
Working update #16
Conversation
…uploading content to Evernote's servers
…since unable to bundle lxml 2. Integrated command line utility with Anknotes' Anki menu
…hat need to be uploaded to Evernote
…itle.generateTOCTitle
…xtra/dev folder to the repo
Conflicts: .gitignore anknotes/Anki.py anknotes/AnkiNotePrototype.py anknotes/Controller.py anknotes/EvernoteImporter.py anknotes/EvernoteNoteFetcher.py anknotes/EvernoteNotePrototype.py anknotes/EvernoteNoteTitle.py anknotes/EvernoteNotes.py anknotes/__main__.py anknotes/ankEvernote.py anknotes/bare.py anknotes/constants.py anknotes/db.py anknotes/error.py anknotes/extra/ancillary/enml2.dtd anknotes/extra/ancillary/regex-see_also.txt anknotes/extra/ancillary/regex.txt anknotes/find_deleted_notes.py anknotes/graphics.py anknotes/html.py anknotes/logging.py anknotes/menu.py anknotes/settings.py anknotes/shared.py anknotes/structs.py anknotes/toc.py
Hey still getting import errors i could fix the most of them but there On 23.09.2015 08:11, Avi Puchalapalli wrote:
|
Okay, thanks for looking into this. I'm running a code inspection with PyCharm now, and hopefully that will catch everything |
…is file is also used by the external command line utility to validate notes. Since that utility doesn't operate in the Anki environment, trying to import these modules will result in an import error. I changed the conditional to import if it's in Anki environment.
@Scriptkiddi Unfortunately PyCharm couldn't find anything that would cause an import error. Could you screenshot the errors and paste them here? |
An error occurred in an add-on. Traceback (most recent call last): |
i think i fixed this by moving the evernote client import out of your if statment |
Could you try this: http://pastebin.com/8111hStH I added an assert statement at line 19. I also changed the conditional to test if Anki module is importable instead of lxml. It's possible that lxml is importable in your Anki config |
Unfortunately having it outside of the conditional will break the script I'm using to run note validation. I couldn't get lxml imported into my Anki config, so I made a script that runs externally via command line as opposed to within the Anki environment as an addon |
I fixed the issue with templates that was probably causing a string formatting error when you first loaded Anknotes. After your first import, Anknotes will now detect the uid and shard, and after next launch, will rebuild the templates. This is required for the template to be able to generate Evernote Note links from guids |
@Scriptkiddi, Actually your Windows 10 error seems really odd to me. It looks like one of your files is out of date since:
Since the If you have symlinks or something like that set up, maybe they are pointing to an old copy of the code. Can you confirm that they are up to date by opening |
my bad i downloaded the wrong branch i will test it later today again |
An error occurred in an add-on. Traceback (most recent call last): |
Okay looks like the tags table was not created on launch. I will fix that asap |
Sorry for the delay... Bug is fixed with the latest commit. Please test the latest commit, and if you still get the database errors, send me a zip of your |
hey so i had some time to look at it a little bit longer i fixed to import errors but my time ran out on Traceback (most recent call last): since the error logs did not log anything new im not attaching them |
…args in DictString
oh also please keep all external libaries in the anknotes folder since its a really bad practice installing the own deps into folders where they dont belong |
Thanks for looking into it! Now that I have some experience with Python (I never coded in Python before this project), I am in the process of trying to remove all the crappy code that has made it into my branch in the process of trying to learn the language. So in the next few days I should have a build without most of the problems with the current branch (For example, using a nested dictionary for the settings object, while it saved time when creating new settings, seems like unnecessary overhead). Do you mean to put the dependencies in the root folder of the repo (along with |
-----BEGIN PGP SIGNED MESSAGE----- I mean putting the bs4 lib in the anknotes folder you can not move the On 16.11.2015 23:22, Avi Puchalapalli wrote:
iQEcBAEBCAAGBQJWSlddAAoJEMlXFywT0VZDNqYH/RHT0TytASDKb8OVqoz9+FZ9 |
Oh okay so move bs4 from the repository root to the same folder as This is fairly simple for bs4 since it only has a few import statements, but I can see how it can get complicated. I see that the evernote, oauth2, and thrift libraries' imports are all prefixed with I already updated the imports for bs4 manually as you recommended, but I'm just curious for future reference |
i did it manually but im pretty sure there are tools for that kind of stuff |
Hey guys, this is some interesting work. I'm a python dev and looking to potentially use this for my own study and of course contribute back fixes I may need to make. Which branch would you suggest I start with, and do you have any tips or obvious pitfalls I should avoid when trying to get this up and running on my system for the first time? |
Hey I would suggest you either start from holycrepes branch but there I dont know how far he is, I have not touched the project in a while or you take the master branch which is far behind but relaltivly stable. I would recommend skimming through the evernote api guide lines and geoi tting familiar how anki works internally (decks, notes, cards). |
@sjobeek My branch has some improvements but I'm not sure about its stability or whether I have pushed all local changes. I have an important exam coming up next week, but I'll be happy to look into this for you the week after. I updated the In the meantime, follow @Scriptkiddi's suggestions. If you can try to reproduce the bug @Scriptkiddi mentioned above, that would be very helpful |
Hello and welcome. I am bit out of sync with this project, I can't be very helpful at the moment. As a matter of practical use of the plug-in, I tried to find you the last version of the plugin I uploaded on anki/addons. But I can't find it anymore. Very probably because my account has expired... |
hey guys, I've been trying to install this - But to no avail, any suggestions? |
Are you having issues with this PR or |
Hi Holycrepe ! |
Hey Bruno, my AnkiWeb account expired Is there a specific issue with the fork? I was unable to reproduce any errors, and the fork was working as intended last time I used it, although it has been a long time. |
I got the same problem of account expiration which discouraged me a bit, because at that time I made a nice user documentation on the addon page (but without backup, shame on me). If you want to work again on this project I can retry to see what kind of specific error I got. |
Yes please, I would appreciate that. Guess we'll have to add the addon description to the repo so it's under version control! I have some exams coming up and it will be helpful to get my fork working. I'll be reinstalling anki, so maybe I'll be able to reproduce the error with a fresh environment and machine |
My thoughts exactly ahah : https://github.com/brumar/anknotes/blob/master/addonDescription.html |
Ah nice, I've committed a quick fix to that description: 1ab3fed |
Summary of changes: