About buildinfo and ankirspy

zhangchaont's Avatar

zhangchaont

19 Feb, 2020 09:34 AM

hi,

I'm trying to do some python scripting with Anki. I cloned the source code from GitHub, when I run my code, I got the error for not finding anki.buildinfo and ankirspy. How to solve this?

thanks!

  1. Support Staff 1 Posted by Damien Elmes on 19 Feb, 2020 10:02 AM

    Damien Elmes's Avatar

    You'll need to build the code first - please see README.development

  2. 2 Posted by zhangchaont on 20 Feb, 2020 07:59 AM

    zhangchaont's Avatar

    hi, Damien.

    Thanks for your reply. I followed the instructions in README.development. Now it stopped at maturin develop --release --strip for several hours. I restarted and it's same. What's wrong?

  3. Support Staff 3 Posted by Damien Elmes on 20 Feb, 2020 09:39 AM

    Damien Elmes's Avatar

    The first time that command runs, it needs to download Rust libraries, and if your internet connection is slow that may be taking a long time - you could monitor the download using the network tab of activity monitor.

  4. 4 Posted by zhangchaont on 21 Feb, 2020 06:10 AM

    zhangchaont's Avatar

    Yes, in China the internet connection with the sever is too slow. I switched to a mirror server but I kept getting error when running the codes. After several hours waiting it finished. Now I can run the codes successfully.

    Thank you for your help.

  5. Support Staff 5 Posted by Damien Elmes on 22 Feb, 2020 07:46 AM

    Damien Elmes's Avatar

    No problem!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac