How to use ANKI flashcard program in Precise 5.6? (Solved)

Programs intended to teach, or to help one learn or study a specific subject - this includes educational games.
Message
Author
giannis4
Posts: 98
Joined: Fri 28 Jun 2013, 13:26

How to use ANKI flashcard program in Precise 5.6? (Solved)

#1 Post by giannis4 »

Hello.I am a new user of Puppy Linux Precise 5.6 and I want to install a flashcard program called ANKI.I ve tried through PPM,installed the package with its dependencies but the problem is that ANKI is not running.I have also tried to install ANKI through its homepage website but again with no success.
Can somebody help me pls?I cant find any solution.

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

Re: I need help with ANKI

#2 Post by 666philb »

giannis4 wrote:Hello.I am a new user of Puppy Linux Precise 5.6 and I want to install a flashcard program called ANKI.I ve tried through PPM,installed the package with its dependencies but the problem is that ANKI is not running.I have also tried to install ANKI through its homepage website but again with no success.
Can somebody help me pls?I cant find any solution.
hi giannis4, welcome to the forums...

i just tried installing anki from the precise PPM and running it in a terminal got

Code: Select all

ImportError: No module named sip
so installed python-sip (type it in the find box) from the PPM and it fired up.

let me know how you get on
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

giannis4
Posts: 98
Joined: Fri 28 Jun 2013, 13:26

Re: I need help with ANKI

#3 Post by giannis4 »

Thank you so much for helping me.It runs great.I am very grateful my friend.!!!!!

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

How to use ANKI in Carolina 1.0?

#4 Post by Dromeno »

I would like to install ANKI in Carolina. I have installed the anki-2.0.13.deb from the anki site, then sip and portaudio from Carolina's repository. Still something is missing, terminal reports:

Please build and install the PortAudio Python bindings first.
Traceback (most recent call last):
File "/usr/bin/anki", line 5, in <module>
import aqt
File "/usr/share/anki/aqt/__init__.py", line 6, in <module>
from aqt.qt import *
File "/usr/share/anki/aqt/qt.py", line 16, in <module>
from PyQt4.QtCore import *
ImportError: No module named PyQt4.QtCore

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#5 Post by 666philb »

hi dromeno,

that error is because you're missing python-qt4.... here's some other python stuff it requires ...


python (>= 2.6.6-7~)
python-beautifulsoup
python-qt4 (>= 4.4)
python-simplejson (>= 1.7.3)
python-sqlalchemy (>= 0.5.3)

i also needed python-sip and QT4
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

Is it something else?

#6 Post by Dromeno »

666philb,

Are you sure that is all what is missing? I have installed

python-qt4_4.7.2-0ubuntu1_i386.deb
python-simplejson_2.0.9-1build1_i386.deb

and the Python version of Carolina is 2.7.2

but the error message of the terminal stays the same:

Please build and install the PortAudio Python bindings first.
Traceback (most recent call last):
File "/usr/bin/anki", line 5, in <module>
import aqt
File "/usr/share/anki/aqt/__init__.py", line 6, in <module>
from aqt.qt import *
File "/usr/share/anki/aqt/qt.py", line 16, in <module>
from PyQt4.QtCore import *
ImportError: No module named PyQt4.QtCore

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#7 Post by 666philb »

hi dromeno,

i downloaded carolina to have a look and all i needed was ....

anki.deb from the anki website
pyqt and dependencies from carolinas PPM
i also had the devx installed

and it fired up
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

ANKI solved in Carolina

#8 Post by Dromeno »

666philb -thanks a lot! PyQT was the missing part!

(I have alwas problems with installing Python entities. I am struggeling with another one as well: qtqr, a tool for creating/decoding QR codes. Software is here:

http://ftp.telfort.nl/pub/mirror/ubuntu ... /qr-tools/

- do you happen to know how I install the qrtools part?
i.e. qr-tools_1.2-2.debian.tar.gz

I have installed the python qrtools and qtqr but I still get:

Traceback (most recent call last):
File "/usr/bin/qtqr", line 15, in <module>
from qrtools import QR
ImportError: No module named qrtools

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#9 Post by 666philb »

hi dromeno,

i did manage to get it to start (don't know if it fully works though) here's the list :) ....

install the devx,

and the following from the PPM....

pyqt
python.dev
imagemagick
PIL (python imaging library)

then i installed the following debian squeeze i386 packages from here....http://pkgs.org/search/?keyword=zbar
Image

I didn't install the pythonzbar & pythonzbarpygtk packages from there as i've found python packages not to mix well, they are usually better to be compiled and installed from the host machine.
You could try the two python packages from there to see if they work or do what i did .....

right click on these links and choose 'save link as'
https://bitbucket.org/pypa/setuptools/r ... z_setup.py python setuptools installer
https://raw.github.com/pypa/pip/master/ ... get-pip.pypython pip installer

run the scripts in a terminal eg... python ez_setup.py

once installed we can use pip, which is a python module installer ....

Code: Select all

pip install zbar
your qr-tools package should hopefully run now ... by clicking on qtqr.py

Image
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

giannis4
Posts: 98
Joined: Fri 28 Jun 2013, 13:26

#10 Post by giannis4 »

Hello.Now I am using the new puppy slacko 5.6 but ANKI is not in the PPM.I would like to install ANKI again but I dont know what I have to do.I am looking for some help.Thank you.

ulock
Posts: 17
Joined: Sun 13 Jul 2014, 13:42

#11 Post by ulock »

Hi,

Also would like to install Anki to the Slacko 5.7. I have already spend four hours trying different ways without any positive result. Could you please have a look and recommend the way it could be done? deb file could be downloaded from the Anki official web site

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#12 Post by Semme »

So long as you've got the Salix repos ticked, it's in PPM >> UPDATE!
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

ulock
Posts: 17
Joined: Sun 13 Jul 2014, 13:42

#13 Post by ulock »

Semme wrote:So long as you've got the Salix repos ticked, it's in PPM >> UPDATE!
Hi Semme,

In the PPM I have updated the repos and ticked "slackware-14.0-salix" but still when I am searching for "Anki" the package is not found.
Is it possible to upload "Anki" pet file? or maybe you have any other suggestions.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#14 Post by Semme »

My bad.. 14.1 repo >> http://download.salixos.org/i486/14.1/s ... 6-1tjb.txz

After installed do >> which anki, followed by >> ldd /path/to/anki

She'll need the devx and a small handful of deps..

==

Possibly.. Don't install before confirming with ldd.

http://download.salixos.org/i486/14.1/s ... 6-2tjb.txz

http://download.salixos.org/i486/14.1/s ... 6-1tjb.txz
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

ulock
Posts: 17
Joined: Sun 13 Jul 2014, 13:42

#15 Post by ulock »

Semme wrote:My bad.. 14.1 repo >> http://download.salixos.org/i486/14.1/s ... 6-1tjb.txz

After installed do >> which anki, followed by >> ldd /path/to/anki

She'll need the devx and a small handful of deps..

==

Possibly.. Don't install before confirming with ldd.

http://download.salixos.org/i486/14.1/s ... 6-2tjb.txz

http://download.salixos.org/i486/14.1/s ... 6-1tjb.txz
Thank you for the links.
ldd gives next result:

Code: Select all

not a dynamic executable

When I am clicking to run Anki nothing is happening

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#16 Post by Semme »

You gotta hold on.. There's a Python error. I'll need some time..
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

ulock
Posts: 17
Joined: Sun 13 Jul 2014, 13:42

#17 Post by ulock »

Semme wrote:You gotta hold on.. There's a Python error. I'll need some time..
no problem, take your time

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#18 Post by Semme »

I'm struggling. You'll have to wait or have someone else answer.. It's NOT prime-time for Slacko 14.0.

*Considering Slacko runs like a slug on my box >> PASS. Too many gay-ass libs for this cat's blood.
Attachments
README.gz
(546 Bytes) Downloaded 819 times
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<

giannis4
Posts: 98
Joined: Fri 28 Jun 2013, 13:26

#19 Post by giannis4 »

Hi @ulock.I 've succeeded to install anki. So, first thing you need to do is open up PPM and search for sip and PyQT and install them both. PyQT is going to take some while, wait until everything is finished.
Then you need to go to Anki's homepage and download Anki Source.Save the .tgz file where you want and then extract it.

Before you continue further make sure you have installed devx for your puppy.

After that you need to open up a terminal and change to the Anki's directory. Mine was cd /mnt/home/anki-2.0.28
your's might be different.
Next thing to do is to type this command:
make install

You 'll take this error as I did myself but I ignored it:make: *** [install] Error 1

So, now the last thing you need to do is to type this command:

./runanki

exactly as it is and anki should run.
Aften you close anki and if you want to run it again you can do that by just typing on the terminal the command anki

ulock
Posts: 17
Joined: Sun 13 Jul 2014, 13:42

#20 Post by ulock »

Hi giannis4,

Thank you for your effort. I have tried to do the exact steps that you recommended but when I entered the command "./runanki" I got an error massage (see attached image). Really strange behavior because "sip" was installed. I will have more time on weekend to play with that but anyway do you have any suggestions what is wrong?
Attachments
Screenshot1_2014-08-20_211247.png
(35.16 KiB) Downloaded 950 times

Post Reply