Giter Site home page Giter Site logo

ankify's People

Contributors

kangruixiang 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pyrusx c3z

ankify's Issues

Failed to Run Script Ankify?

Hey,
I followed your tutorial and made my Typora notes like how you suggested. However, when I click the folder that has both the .md file and the folder with all the jpeg files, Ankify tells me that it failed to run the script. I do see a .html folder but it is empty. Any thoughts?

I'm on windows by the way!

Having difficulty running the Ankify script

Hello,

thank you for your work, I have been wanting to incorporate this into my workflow since December last year and I have adopted Obsidian as my markdown writer recently.

I wonder if you could walk me through how to run your script? I am using Windows and have downloaded the Ankify package.

I don't know how to run "npm install" and nor run "npm link".

In the next step to run the script, do I open the command prompt and type "ankify"?

Thanks in advance.
Tom

.html file not supported by Anki in Import File feature

Hello,

I am using the following version of Anki:
Version โจ23.10.1 (fac9e0ee)โฉ
Python 3.9.15 Qt 6.6.0 PyQt 6.6.0

I am not sure how you did it in the video on YouTube, but Anki does not support importing ".html" files to turn them into flashcards, at least for my version of Anki. Please help on the matter. The software is very effective, but it cannot be used if this is the case. Please add support for converting notes to .txt files instead of .html.

Thank you!

Ankify script on macOS

It is not working. This is what I have as my .env file:

# .env

ROOT_DIR="/Volumes/NO NAME/Test"
ATTACHMENT_FOLDER="/Volumes/NO NAME/Scripts/Ankify-master/images"
ANKI_PROFILE="/Users/peter/Library/Application Support/Anki2/User 1/collection.media"

BUCKET_ID=""
API_KEY_ID=""
API_KEY=""
BUCKET_NAME=""
B2_BASE=""

And this is the output from the terminal after doing Ankify:

Peters-MacBook-Air:~ peter$ ankify
   
TypeError: Cannot read property 'authorize' of undefined
    at getFiles (/Volumes/NO NAME/Scripts/Ankify-master/lib/b2.js:37:22)
    at Object.<anonymous> (/Volumes/NO NAME/Scripts/Ankify-master/lib/b2.js:106:1)
    at Module._compile (internal/modules/cjs/loader.js:1075:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1096:10)
    at Module.load (internal/modules/cjs/loader.js:940:32)
    at Function.Module._load (internal/modules/cjs/loader.js:781:14)
    at Module.require (internal/modules/cjs/loader.js:964:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/Volumes/NO NAME/Scripts/Ankify-master/index.js:11:24)
    at Module._compile (internal/modules/cjs/loader.js:1075:30)
Error: ENOENT: no such file or directory, unlink '/Volumes/NO NAME/Test/_html/Test.html'
    at Object.unlinkSync (fs.js:1162:3)
    at Object.<anonymous> (/Volumes/NO NAME/Scripts/Ankify-master/index.js:77:6)
    at Module._compile (internal/modules/cjs/loader.js:1075:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1096:10)
    at Module.load (internal/modules/cjs/loader.js:940:32)
    at Function.Module._load (internal/modules/cjs/loader.js:781:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  errno: -2,
  syscall: 'unlink',
  code: 'ENOENT',
  path: '/Volumes/NO NAME/Test/_html/Test.html'
}
internal/fs/utils.js:298
    throw err;
    ^

Error: ENOENT: no such file or directory, copyfile '/Volumes/NO NAME/Scripts/Ankify-master/images/1.png' -> '/Users/peter/Library/Application Support/Users/peter/Library/Application Support/Anki2/User 1/collection.media/1.png'
    at Object.copyFileSync (fs.js:1941:3)
    at Object.<anonymous> (/Volumes/NO NAME/Scripts/Ankify-master/index.js:89:8)
    at Module._compile (internal/modules/cjs/loader.js:1075:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1096:10)
    at Module.load (internal/modules/cjs/loader.js:940:32)
    at Function.Module._load (internal/modules/cjs/loader.js:781:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  errno: -2,
  syscall: 'copyfile',
  code: 'ENOENT',
  path: '/Volumes/NO NAME/Scripts/Ankify-master/images/1.png',
  dest: '/Users/peter/Library/Application Support/Users/peter/Library/Application Support/Anki2/User 1/collection.media/1.png'
}
Peters-MacBook-Air:~ peter$ 

Brilliant

This exactly what I need to turn some of my zettelkasten notes into Anki cards.
I am on macOS, so cannot use this ๐Ÿ˜ž

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.