Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Startup After Fresh Install of the MIA Add-on #32

Closed
harkdand opened this issue Sep 16, 2019 · 15 comments
Closed

Error on Startup After Fresh Install of the MIA Add-on #32

harkdand opened this issue Sep 16, 2019 · 15 comments

Comments

@harkdand
Copy link

@harkdand harkdand commented Sep 16, 2019

Environment:

  • OS: Arch Linux

Description:
I get this error when launching Anki:
https://puu.sh/EhZku/ed3f451bca.png

@shanrauf
Copy link
Contributor

@shanrauf shanrauf commented Sep 17, 2019

@harkdand There is limited support right now for Linux, but we're working to add support for it.

@mvf
Copy link

@mvf mvf commented Sep 17, 2019

Looks like you're missing libQt5Svg.so.5. Try installing the qt5-svg package.

@omerta14
Copy link

@omerta14 omerta14 commented Sep 17, 2019

I'm experiencing the same error on windows 10. Mvf could you please elaborate on how someone would locate and install these items. Thanks in advance.

@mvf
Copy link

@mvf mvf commented Sep 17, 2019

@omerta14 On Windows, QtSvg is shipped with Anki, so it should Just Work™. I suspect you are having a different problem. Are you sure you're running Anki 2.1.x? If so, feel free to post the error message.

@omerta14
Copy link

@omerta14 omerta14 commented Sep 17, 2019

Um yeh quite sure I am. I updated anki to the latest version today in an attempt to fix the issue. I've attached a screenshot of the error.
mia japanese add on error

@mvf
Copy link

@mvf mvf commented Sep 17, 2019

@omerta14 Okay, your problem is slightly different. The OP seems to be missing the native QtSvg library, you seem to be missing the QtSvg Python bindings.

Inside the folder with anki.exe, there should be a folder PyQt5. In there should be a file QtSvg.pyd. On my machine (Anki 2.1.15) it is 113,152 bytes. Deleting it triggers the error you posted. .pyd files are DLLs, so maybe it got removed by an overzealous antivirus.

@omerta14
Copy link

@omerta14 omerta14 commented Sep 17, 2019

Ok so, I assume by anki.exe you mean the anki application? The folder that houses the anki app ( to find it I right clicked the anki shortcut then clicked on the option " open file location " is that correct? ) doesn't seem to have a folder by the name of PyQt5 or a file named anki.exe exactly . I've will post a screenshot of the folder in question. btw thanks for taking a look I really appreciate it.

@omerta14
Copy link

@omerta14 omerta14 commented Sep 17, 2019

There are multiple files that start with PyQt5 though no folder.

anki folder

@mvf
Copy link

@mvf mvf commented Sep 17, 2019

@omerta14 Happy to help. Your screenshot explains everything.

The 32-bit "alternate" version of Anki you are running ships the native Qt5Svg.dll, but not the Python bindings (PyQt5.QtSvg.pyd). I'm not aware of an easy way to procure these. It probably involves doing something close to building/packaging Anki.

If you're on 64-bit Windows, switching to the "standard" Anki version will fix your problem. If you're stuck on 32-bit Windows for some reason, you might have to get creative (e.g. Linux VM, X11 forwarding, ...).

You could report this to Anki upstream, they can probably fix it quite easily. I don't think it's an Anki bug though, because QtSvg doesn't seem to be a dependency of Anki itself.

@omerta14
Copy link

@omerta14 omerta14 commented Sep 18, 2019

Seems as through I'm stuck on 32-bit as I simply don't have the hard drive space to install the 64-bit version of windows. I just want to say thanks for taking time out of your day to help. It was greatly appreciated. If anyone knows how fix the issue on the 32-bit version of windows I'd be willing to give it a shot.

@jamesrwaugh
Copy link

@jamesrwaugh jamesrwaugh commented Sep 22, 2019

FWIW, I fixed this on Ubuntu by installing python3-pyqt5.qtsvg. sudo apt-get install python3-pyqt5.qtsvg . It looks like an issue of if this is shipped or not on various platforms by Anki.

@omerta14
Copy link

@omerta14 omerta14 commented Sep 26, 2019

Do you know if something similar can be on Windows? The creator of anki said it'll be fixed within the next update but it'll be a few weeks off at the very least

@mvf
Copy link

@mvf mvf commented Sep 26, 2019

@omerta14 Might want to check your thread on the Anki forums. Spoiler alert: It's fixed in the latest beta. 😉

@omerta14
Copy link

@omerta14 omerta14 commented Sep 26, 2019

Thanks mvf you're an absolute legend if it wasn't for you I'd have no idea there had been a fix, or what the issue was in the first place, or where to have it resolved for that matter. I'll let you know if works.

@omerta14
Copy link

@omerta14 omerta14 commented Sep 26, 2019

It worked!!

@shanrauf shanrauf closed this Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.