Giter Site home page Giter Site logo

Can't push notes on WSL2 about anki-editor HOT 2 CLOSED

code-SL avatar code-SL commented on June 16, 2024
Can't push notes on WSL2

from anki-editor.

Comments (2)

code-SL avatar code-SL commented on June 16, 2024

Found that byte recompiling the .emacs.d folder ended up resolving this issue.

Still can't get it to work due to an error message indicating the below message. Still feels like a WSL2 issue.

:ANKI_FAILURE_REASON: Error communicating with AnkiConnect using cURL: exited abnormally with code 7

from anki-editor.

code-SL avatar code-SL commented on June 16, 2024

Looks like this got complicated. WSL2 is effectively a VM, making localhost calls to win10 anki GUI not straightforward. You have to point emacs to the IP address of the windows machine defined in /etc/resolv.conf. Thus:

  1. ensure that anki-connect's server in windows is accessible to any interface in order to accept connections from WSL2, 2) open the firewall for anki.exe, 3) set anki-editor listening address to be the address defined in resolv.conf in WSL2

Steps I followed to get it to work:

  • In the config.json file associated with anki-connect, set the webBindAddress variable to 0.0.0.0 to have the webBindPort (default is 8765) bind to any interface
  • Close anki.exe and re-open: it should ask whether you want firewall to be opened for anki.exe: allow communication to occur on public networks
  • Set emacs variable anki-editor-anki-connect-listening-address to the nameserver ip in /etc/resolv.conf, i.e. M-: (setq anki-editor-anki-connect-listening-address '{nameserver IP from /etc/resolv.conf})
  • Try pushing anki notes

from anki-editor.

Related Issues (20)

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.