Code Monkey home page Code Monkey logo

anki's People

Contributors

jamhed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anki's Issues

anki-sync: malformed JSON string

Hi Jamhed,

I launched the anki sync script, everything seemed OK from the log, but nothing new appeared in my ankiweb account. So I created a Basic dock in Anki and relaunch the script. Now I get this error:

$ sudo docker run -it jamhed/anki bin/anki-sync.pl Basic en-fr
malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "(end of string)") at lib/AnkiWeb.pm line 40.

Now I get this error even I delete the Basic dock.
Is there any specification about the fields of the target dock in AnkiWeb ?

Thanks you for your work.

Best regards,
Thibaud.

docker: not found

Hi Jamhed,

Thanks for your work, that's really excellent !

I don't understand well how to install the script. In Ubuntu, I did this:
sudo apt install cpanminus
sudo cpanm JSON DBI DBD::SQLite LWP::UserAgent LWP::Protocol::https
I created a config.json at the root of the anki folder.
I don't understand what to do with the docker. When I launch it now by sh docker/build.sh I get docker: not found.
Have I to enter "sudo snap install docker " ?

Now, when I type:
./bin/google-phrasebook.pl > phrasebook.json
I get Can't locate Google.pm in @INC (you may need to install the Google module)
It appears that this module is in the lib folder, so I suppose that launching the docker was a prerequisit.

And, in the docker file, I see the parameter -t jamhed/anki
Have to replace it by -t /opt/anki if I placed your script in the /opt folder ?

Best,
Thibaud.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.