Python help?

Tilda

Moderator
Moderator
Joined
Dec 22, 2003
Messages
5,755
Hio all,

So Windows RT has been unlocked to run ARM-compiled programs.
I'm trying to run a flashcard program called Anki, i have the source from its website here: http://ankisrs.net/anki2.html as a tgz file.
I've unzipped it all, and unzipped Python 2.7

How do I make one thing work the other thing? If I open python I can get a command box up - am I supposed to type something in it? I can't run Anki directly, am I supposed to open it with something from Python?

Help anybody?
 

TdC

Trem's hunky sex love muffin
Joined
Dec 20, 2003
Messages
30,925
at a very rough guess...you're going to have to set python to be the program that opens anything with the extension .py
 

Cadelin

Resident Freddy
Joined
Feb 18, 2004
Messages
2,514
You don't need python help you need windows help. On a mac or Linux machine I can run the code no problem, but I have no idea what to do for windows.

https://github.com/dae/anki/blob/master/README

Can you find the
runanki
file and try and run it, see if that will do anything (like give a useful error message)
 

Tilda

Moderator
Moderator
Joined
Dec 22, 2003
Messages
5,755
Cadelin, I have the runanki file, but its just a file, it has no extension.
When I click it, it opens the "what do you want to open this with"?
 

Cadelin

Resident Freddy
Joined
Feb 18, 2004
Messages
2,514
Ok...

If you open runanki as a text file:
Code:
#!/usr/bin/env python
 
import sys
sys.path.insert(0, "/usr/share/anki")
import aqt
aqt.run()

If you get up your python prompt you can copy the lines:
Code:
import sys
import aqt
aqt.run()

I believe your code will fail at the import aqt step, because that tries to itself import some external modules that are not released for windows RT. I am not sure I can exactly walk you through getting it to work, if it is simple someone will shortly bring out an RT version.
 

Users who are viewing this thread

Top Bottom