wakatsuki_kagami Wrote:Sorry for the rather idiotic question, but this thread has like 22 pages and uuugh i don't really want to go though it all; also, pardon my shit 英語 skills. Anyway, i recently tried this and - obviously - liked it very much (expecially the word frequency list), only i can't seem to actually import anything to anki. I suppose the correct procedure would be to create a new .anki file by specifying a path in rikaisama's options, then import said file with anki (provided it has the right plugin, which i installed)... except it doesn't work - by which i mean it gives me an error while importing the file -, so i was wondering if i did anything wrong. Well, i probably did, only i honestly don't find the instructions in the docs detailed enough for potheads like 不肖私 to actually interpret correctly. はい拙者が悪い生徒なんでございます。ともかくよろしくお願いします(優しくしてねw)。Are you using the Real-Time Import feature? If so, follow the instructions in the previous post.
2013-11-03, 9:49 am
2013-11-03, 10:12 am
cb4960 Wrote:Could be due to incorrect entries in the "Save format" or "Field names" text boxes in the Rikaisama options dialog. Turn on the Real-Time Import debugging/logging feature:Here is the log:
1) In Anki, Tools -> Add-ons -> Open Addon's Folder...
2) Open "Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py" in a text editor.
3) Change line 42 from "DEBUG = False" to "DEBUG = True".
4) Restart Anki and reproduce the failure.
5) A log file named "real_time_import.log" will be placed in the Add-ons folder.
6) Paste the contents of "real_time_import.log" here. This will help me to diagnose the problem. Also, it would helpful if you posted the contents of the Save format and Field names boxes from the Clipboard & Save tab of the Rikaisama options dialog.
processPendingDatagrams: START
processPendingDatagrams: filename = D:\Users\Andrew\AppData\Local\Temp\~rikai_anki_rti.txt
MessageCommand.__init__: START
MessageCommand.parseHeader: command = add
MessageCommand.parseHeader: version = 1
MessageCommand.performCommand: START
MessageCommand.doAdd: START
MessageCommand.parseFieldNames: fieldNames = [u'Word', u'Reading', u'Example', u'Meaning']
MessageCommand.parseTags: tags = "[u'']"
MessageCommand.doAdd: line = 准教授 じゅんきょうじゅ 北山准教授は「手が動かなくなった人も、こうした装置でより多くの人とコミュニケーションを取ることができる。 (n) associate professor
MessageCommand.addLineToDeck: ankiFieldInfo = {u'Meaning': u'(n) associate professor', u'Reading': u'\u3058\u3085\u3093\u304d\u3087\u3046\u3058\u3085', u'Word': u'\u51c6\u6559\u6388', u'Example': u'\u5317\u5c71\u51c6\u6559\u6388\u306f\u300c\u624b\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\u4eba\u3082\u3001\u3053\u3046\u3057\u305f\u88c5\u7f6e\u3067\u3088\u308a\u591a\u304f\u306e\u4eba\u3068\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002'}
And these are my setting:
![[Image: YZJnIOr.jpg]](http://i.imgur.com/YZJnIOr.jpg)
![[Image: k9jjPWs.jpg?1]](http://i.imgur.com/k9jjPWs.jpg?1)
I hope this would help identify the problem.
2013-11-03, 1:02 pm
Artgor Wrote:The log would seem to indicate that you are trying to add a "Note" using a "Note type" that doesn't contain one or more of the fields in Rikaisama's "Field names" box.cb4960 Wrote:Could be due to incorrect entries in the "Save format" or "Field names" text boxes in the Rikaisama options dialog. Turn on the Real-Time Import debugging/logging feature:Here is the log:
1) In Anki, Tools -> Add-ons -> Open Addon's Folder...
2) Open "Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py" in a text editor.
3) Change line 42 from "DEBUG = False" to "DEBUG = True".
4) Restart Anki and reproduce the failure.
5) A log file named "real_time_import.log" will be placed in the Add-ons folder.
6) Paste the contents of "real_time_import.log" here. This will help me to diagnose the problem. Also, it would helpful if you posted the contents of the Save format and Field names boxes from the Clipboard & Save tab of the Rikaisama options dialog.
processPendingDatagrams: START
processPendingDatagrams: filename = D:\Users\Andrew\AppData\Local\Temp\~rikai_anki_rti.txt
MessageCommand.__init__: START
MessageCommand.parseHeader: command = add
MessageCommand.parseHeader: version = 1
MessageCommand.performCommand: START
MessageCommand.doAdd: START
MessageCommand.parseFieldNames: fieldNames = [u'Word', u'Reading', u'Example', u'Meaning']
MessageCommand.parseTags: tags = "[u'']"
MessageCommand.doAdd: line = 准教授 じゅんきょうじゅ 北山准教授は「手が動かなくなった人も、こうした装置でより多くの人とコミュニケーションを取ることができる。 (n) associate professor
MessageCommand.addLineToDeck: ankiFieldInfo = {u'Meaning': u'(n) associate professor', u'Reading': u'\u3058\u3085\u3093\u304d\u3087\u3046\u3058\u3085', u'Word': u'\u51c6\u6559\u6388', u'Example': u'\u5317\u5c71\u51c6\u6559\u6388\u306f\u300c\u624b\u304c\u52d5\u304b\u306a\u304f\u306a\u3063\u305f\u4eba\u3082\u3001\u3053\u3046\u3057\u305f\u88c5\u7f6e\u3067\u3088\u308a\u591a\u304f\u306e\u4eba\u3068\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002'}
And these are my setting:
...
I hope this would help identify the problem.
To solve this, make sure that you have the right "Note Type" selected:
1) Open Anki
2) Select your deck from the deck chooser.
3) Click "Add" (it's between "Decks" and "Browse")
4) Make sure that the button to the right of "Type", located near the top-left of dialog, shows the name of the correct "Note type" (ie. the one that contains the "Word", "Reading", "Example" and "Meaning" fields).
Did that help?
Also the "Words that are Already in your Vocabulary Deck" feature currently only works with Anki 1 decks, so you should disable it. In the next version I am going to remove this feature and allow a text-based word list to be used instead.
Advertising (Register to hide)
May 16 - 30 : Pretty Big Deal: Save 31% on all Premium Subscriptions!
- Sign up here
2013-11-03, 9:40 pm
cb4960 Wrote:The log would seem to indicate that you are trying to add a "Note" using a "Note type" that doesn't contain one or more of the fields in Rikaisama's "Field names" box.It seems that there is no problem with the "Note Type"; but disabling the "Words that are Already in your Vocabulary Deck" feature really helped.
To solve this, make sure that you have the right "Note Type" selected:
1) Open Anki
2) Select your deck from the deck chooser.
3) Click "Add" (it's between "Decks" and "Browse")
4) Make sure that the button to the right of "Type", located near the top-left of dialog, shows the name of the correct "Note type" (ie. the one that contains the "Word", "Reading", "Example" and "Meaning" fields).
Did that help?
Also the "Words that are Already in your Vocabulary Deck" feature currently only works with Anki 1 decks, so you should disable it. In the next version I am going to remove this feature and allow a text-based word list to be used instead.
Thank's a lot; it's great to have this amazing tool work again!
2013-11-04, 12:13 am
I have just uploaded version 19.4 of the Rikaisama Firefox extension.
Download version 19.4 via SourceForge
What's New?
● Replaced the "Words that are Already in your Anki Vocaulary Deck" feature with the "Known Words" and "To-Do Words" features:
![[Image: vocab.png]](http://rikaisama.sourceforge.net/images/vocab.png)
The lists should contain one word per line. Lines may contain multiple tab-separated columns.
cb4960
Download version 19.4 via SourceForge
What's New?
● Replaced the "Words that are Already in your Anki Vocaulary Deck" feature with the "Known Words" and "To-Do Words" features:
![[Image: vocab.png]](http://rikaisama.sourceforge.net/images/vocab.png)
The lists should contain one word per line. Lines may contain multiple tab-separated columns.
cb4960
2013-11-04, 1:07 am
When using the file dialog to select the 'Known Words' file, there's a warning that the selected file already exists, and do you really want to overwrite it.
No such overwrite actually happens, and the feature works just fine, but the superfluous warning is a little ... off-putting.
Bug report aside, I like the new feature and it seems to be working well for me (as far as I can tell a few minutes into using it). Of course, I came to Anki late in my Japanese learning so there's -tons- of words that I -know- that aren't in my deck.
Still, while not precise in that sense, what it tells me really is much more important and will save me a ton of time now that I don't have to search in Anki for each word that I want to add but think I might already have. Pretty awesome.
(I'm not sure what to do with the other list, but ... okay. That's nice too, I suppose.)
No such overwrite actually happens, and the feature works just fine, but the superfluous warning is a little ... off-putting.
Bug report aside, I like the new feature and it seems to be working well for me (as far as I can tell a few minutes into using it). Of course, I came to Anki late in my Japanese learning so there's -tons- of words that I -know- that aren't in my deck.
Still, while not precise in that sense, what it tells me really is much more important and will save me a ton of time now that I don't have to search in Anki for each word that I want to add but think I might already have. Pretty awesome.

(I'm not sure what to do with the other list, but ... okay. That's nice too, I suppose.)
2013-11-04, 10:39 am
A few years ago, I used this great feature with anki 1 on my old computer. But for some reason the import doesn't work on my new computer with anki2. I really don't know, what I'm doing wrong...
Rikaisama and the anki addon are installed. When anki is open, I choose my deck. But when I look up a word with Rikaisama in my browser and press R... nothing. No cards are imported to my deck.
I hope the following information can help to find a solution:
Rikaisama:
![[Image: Rikaisama2_zpscbda2bcd.jpg]](http://i1134.photobucket.com/albums/m605/Anja_Berner/Rikaisama2_zpscbda2bcd.jpg)
![[Image: Rikaisama_zpsc6d7bf07.jpg]](http://i1134.photobucket.com/albums/m605/Anja_Berner/Rikaisama_zpsc6d7bf07.jpg)
Anki:
![[Image: Anki_zps6903ec3b.jpg]](http://i1134.photobucket.com/albums/m605/Anja_Berner/Anki_zps6903ec3b.jpg)
![[Image: Anki2_zps493a9114.jpg]](http://i1134.photobucket.com/albums/m605/Anja_Berner/Anki2_zps493a9114.jpg)
And this error pops up when I open anki:
Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.addons", line 39, in loadAddons
File "c:\pyi\iu.py", line 436, in importHook
File "c:\pyi\iu.py", line 521, in doimport
File "C:\Users\ELPHONY_2\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 42, in <module>
DEBUG = true
NameError: name 'true' is not defined
Rikaisama and the anki addon are installed. When anki is open, I choose my deck. But when I look up a word with Rikaisama in my browser and press R... nothing. No cards are imported to my deck.
I hope the following information can help to find a solution:
Rikaisama:
![[Image: Rikaisama2_zpscbda2bcd.jpg]](http://i1134.photobucket.com/albums/m605/Anja_Berner/Rikaisama2_zpscbda2bcd.jpg)
![[Image: Rikaisama_zpsc6d7bf07.jpg]](http://i1134.photobucket.com/albums/m605/Anja_Berner/Rikaisama_zpsc6d7bf07.jpg)
Anki:
![[Image: Anki_zps6903ec3b.jpg]](http://i1134.photobucket.com/albums/m605/Anja_Berner/Anki_zps6903ec3b.jpg)
![[Image: Anki2_zps493a9114.jpg]](http://i1134.photobucket.com/albums/m605/Anja_Berner/Anki2_zps493a9114.jpg)
And this error pops up when I open anki:
Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.addons", line 39, in loadAddons
File "c:\pyi\iu.py", line 436, in importHook
File "c:\pyi\iu.py", line 521, in doimport
File "C:\Users\ELPHONY_2\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 42, in <module>
DEBUG = true
NameError: name 'true' is not defined
2013-11-04, 10:03 pm
SomeCallMeChris Wrote:When using the file dialog to select the 'Known Words' file, there's a warning that the selected file already exists, and do you really want to overwrite it.Thanks for the report, I'll fix it soon.
No such overwrite actually happens, and the feature works just fine, but the superfluous warning is a little ... off-putting.
SomeCallMeChris Wrote:(I'm not sure what to do with the other list, but ... okay. That's nice too, I suppose.)The way I use it, the known list is an export of my Anki vocab deck and the to-do list is the same list I use for the Clipboard & Save file. If Rikaisama indicates that a word is already in my to-do list, then I won't bother hitting the S key to save it, thus saving a keystroke.
2013-11-04, 10:07 pm
AnYa13 Wrote:A few years ago, I used this great feature with anki 1 on my old computer. But for some reason the import doesn't work on my new computer with anki2. I really don't know, what I'm doing wrong...In line 42 of "C:\Users\ELPHONY_2\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", change
Rikaisama and the anki addon are installed. When anki is open, I choose my deck. But when I look up a word with Rikaisama in my browser and press R... nothing. No cards are imported to my deck.
I hope the following information can help to find a solution:
...
And this error pops up when I open anki:
Traceback (most recent call last):
File "C:\cygwin\home\dae\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.addons", line 39, in loadAddons
File "c:\pyi\iu.py", line 436, in importHook
File "c:\pyi\iu.py", line 521, in doimport
File "C:\Users\ELPHONY_2\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", line 42, in <module>
DEBUG = true
NameError: name 'true' is not defined
"DEBUG = true"
to
"DEBUG = True"
Notice the capital T in True.
2013-11-04, 10:30 pm
I have just uploaded version 19.5 of the Rikaisama Firefox extension.
Download version 19.5 via SourceForge
What's New?
● Fixed bug when selecting a known/to-do list file that shows a warning message that the selected file already exists, and do you really want to overwrite it. (Thanks SomeCallMeChris!).
cb4960
Download version 19.5 via SourceForge
What's New?
● Fixed bug when selecting a known/to-do list file that shows a warning message that the selected file already exists, and do you really want to overwrite it. (Thanks SomeCallMeChris!).
cb4960
2013-11-04, 10:54 pm
Quote:In line 42 of "C:\Users\ELPHONY_2\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", changeOkay, thanks. Now I got this in the log file:
"DEBUG = true"
to
"DEBUG = True"
Notice the capital T in True.
-----------------------------------------------------------
Main: START
But thats all...
2013-11-04, 11:00 pm
I have just uploaded version 1.1 of the Real-Time Import Anki add-on.
https://ankiweb.net/shared/info/2512410601
What's New?
● Logging is now enabled by default.
● If you are using an incorrect note type, Rikaisama will pop-up a message similar to the following:
https://ankiweb.net/shared/info/2512410601
What's New?
● Logging is now enabled by default.
● If you are using an incorrect note type, Rikaisama will pop-up a message similar to the following:
Quote:Error, current note type does not contain the following field: 'Word'
2013-11-04, 11:02 pm
AnYa13 Wrote:Other users have reported issues with their firewall/anti-virus software blocking the Real-Time Import feature. Make sure that yours is not.Quote:In line 42 of "C:\Users\ELPHONY_2\Documents\Anki\addons\Real-Time_Import_for_use_with_the_Rikaisama_Firefox_Extension.py", changeOkay, thanks. Now I got this in the log file:
"DEBUG = true"
to
"DEBUG = True"
Notice the capital T in True.
-----------------------------------------------------------
Main: START
But thats all...
2013-11-05, 11:59 am
cb4960 Wrote:Other users have reported issues with their firewall/anti-virus software blocking the Real-Time Import feature. Make sure that yours is not.I've checked everything I can think of. I added it to the exceptions of my firewall and my antivirus software and I opened the 49600 port (or can I use another port if this one doesn't work?). Nothing. I even tried to turn off both (firewall and antivirus) for a test... But nothing changed. Whatever I do: No error messages (not in the log file, not in anki, not from my firewall or antivirus software) and no imported cards.
Can it be that complicated...? Maybe I did something wrong. But I don't know, where the error is.
Any idea would be appreciated!
2013-11-05, 2:35 pm
AnYa13 Wrote:Try uninstalling and then reinstalling Rikaisama, and then restarting your computer. If that doesn't work I can write a debug version of Rikaisama that contains some kind of logging that might help solve the issue.cb4960 Wrote:Other users have reported issues with their firewall/anti-virus software blocking the Real-Time Import feature. Make sure that yours is not.I've checked everything I can think of. I added it to the exceptions of my firewall and my antivirus software and I opened the 49600 port (or can I use another port if this one doesn't work?). Nothing. I even tried to turn off both (firewall and antivirus) for a test... But nothing changed. Whatever I do: No error messages (not in the log file, not in anki, not from my firewall or antivirus software) and no imported cards.
Can it be that complicated...? Maybe I did something wrong. But I don't know, where the error is.
Any idea would be appreciated!
Edited: 2013-11-05, 2:35 pm
2013-11-05, 4:26 pm
cb4960 Wrote:Try uninstalling and then reinstalling Rikaisama, and then restarting your computer. If that doesn't work I can write a debug version of Rikaisama that contains some kind of logging that might help solve the issue.I've tried this, but without success. I have really no idea, why it doesn't work...

But I would like to give the debug version a try.
Thank you for your efforts!
2013-11-05, 10:22 pm
AnYa13 Wrote:I created a debug version for you:cb4960 Wrote:Try uninstalling and then reinstalling Rikaisama, and then restarting your computer. If that doesn't work I can write a debug version of Rikaisama that contains some kind of logging that might help solve the issue.I've tried this, but without success. I have really no idea, why it doesn't work...
But I would like to give the debug version a try.
Thank you for your efforts!
http://www.mediafire.com/download/b3xihl...debug1.xpi
Please uninstall Rikaisama before installing the debug version.
After installing:
1) Open the Firefox Error Console (Tools -> Web developer -> Error Console)
2) Enable Rikaisama, highlight 世間, and press the R key.
3) Take a screenshot of the Error console. For example, mine looks like this:
![[Image: UnzFJtS.png?1]](http://i.imgur.com/UnzFJtS.png?1)
Also, if you so desire, you can double-check to make sure that RealTimeImport_UDP_Client.exe isn't being blocked by your anti-virus. This is the program I wrote to send datagrams to the Real-Time Import plugin from Rikaisama.
2013-11-06, 10:36 am
cb4960 Wrote:I created a debug version for you:Thank you very much! Here's the screenshot:
http://www.mediafire.com/download/b3xihl...debug1.xpi
Please uninstall Rikaisama before installing the debug version.
After installing:
1) Open the Firefox Error Console (Tools -> Web developer -> Error Console)
2) Enable Rikaisama, highlight 世間, and press the R key.
3) Take a screenshot of the Error console. For example, mine looks like this:
http://i.imgur.com/UnzFJtS.png?1
Also, if you so desire, you can double-check to make sure that RealTimeImport_UDP_Client.exe isn't being blocked by your anti-virus. This is the program I wrote to send datagrams to the Real-Time Import plugin from Rikaisama.
![[Image: ErrorConsole_zpsf150a83e.jpg]](http://i1134.photobucket.com/albums/m605/Anja_Berner/ErrorConsole_zpsf150a83e.jpg)
I've checked my firewall and my antivirus again, but I can't see any evidence for blocking the plugin. There are no messages or warnings. (I use Antivira Free Antivirus; is there a way to see exactly, what it blocks?)
2013-11-06, 9:57 pm
That looks pretty normal. Perhaps your PC is missing a needed DLL file. Try this version that includes an additional DLL:
http://www.mediafire.com/download/xvg16r...debug2.xpi
If it works, I'll bundle it into the official release.
Also, does the audio feature work for you? Highlight 世界 and press the F key to find out.
http://www.mediafire.com/download/xvg16r...debug2.xpi
If it works, I'll bundle it into the official release.
Also, does the audio feature work for you? Highlight 世界 and press the F key to find out.
Edited: 2013-11-06, 9:58 pm
2013-11-06, 11:11 pm
cb4960 Wrote:That looks pretty normal. Perhaps your PC is missing a needed DLL file. Try this version that includes an additional DLL:Unfortunately this version didn't work...
http://www.mediafire.com/download/xvg16r...debug2.xpi
If it works, I'll bundle it into the official release.
Also, does the audio feature work for you? Highlight 世界 and press the F key to find out.
But the audio feature (as well as saving to a txt file) works fine. I noticed something: When I press the R key, Zone Alarm says that the plugin want to use another udp port: 49345, but in the settings (anki and rikaisama) it's 49600. But Zone Alarm doesn't seem to block it (I click on allow).
2013-11-07, 10:13 pm
Lets try a new series of tests that take Rikaisama out of the equation:
http://www.mediafire.com/download/bp9dsx...I_Test.zip
1) Open your Anki deck like normal
2) Unzip RTI_Test.zip somewhere.
3) Double click RTI_Test/Test1/test_rti.bat, RTI_Test/Test2/test_rti.bat, and RTI_Test/Test3/test_rti.bat. Do any of these add a card to your Anki deck?
--
I'm not sure why Zone Alarm would say port 49345, but I suppose WireShark could be used to see what's really happening.
http://www.mediafire.com/download/bp9dsx...I_Test.zip
1) Open your Anki deck like normal
2) Unzip RTI_Test.zip somewhere.
3) Double click RTI_Test/Test1/test_rti.bat, RTI_Test/Test2/test_rti.bat, and RTI_Test/Test3/test_rti.bat. Do any of these add a card to your Anki deck?
--
I'm not sure why Zone Alarm would say port 49345, but I suppose WireShark could be used to see what's really happening.
Edited: 2013-11-07, 10:13 pm
2013-11-08, 10:29 am
Ok, that's embarrassing: The problem was Zone Alarm. After completely deactivating Zone Alarm, the Real-Time-Import works absolutely fine. I didn't think that it's blocking the plugin, because I clicked at "allowing access". I'm so sorry for all the trouble... 
Thank you very much for all your help and your patience!

Thank you very much for all your help and your patience!
2013-11-08, 2:31 pm
AnYa13 Wrote:Ok, that's embarrassing: The problem was Zone Alarm. After completely deactivating Zone Alarm, the Real-Time-Import works absolutely fine. I didn't think that it's blocking the plugin, because I clicked at "allowing access". I'm so sorry for all the trouble...I'm glad that you got it to work!
Thank you very much for all your help and your patience!
Edited: 2013-11-08, 2:31 pm
2013-11-09, 9:29 pm
By the way, i tried rikaisama again and found out i didn't uncheck the "Disable these keys" option - which kinda makes me wonder why that option was checked in the first place, but oh well; the most simple solutions are often the most overlooked (or peharps i am in fact a complete airhead). Anyway this is probably a god-tier tool which will prove itself infinitely useful to me, so thanks a lot.
2013-11-23, 10:52 am
Sorry for offtopic but is there a rikaisama-like software that works on a pdf file? The addon is really helpful for the browser & thanks btw!
Edited: 2013-11-23, 10:52 am

