Notices


Reply
Thread Tools
pursueky's Avatar
Posts: 191 | Thanked: 46 times | Joined on Jun 2010 @ NanJing China
#21
Originally Posted by keynya View Post
Hi,


I just checked to what package "/usr/lib/python2.5/site-packages/PyQt4/QtSvg.so" belongs to by using "dpkg -S QtSvg.so", assuming, that this is the file you are missing. It says it belongs to a package called: "python2.5-qt4-svg". So you can try to install it.

So it looks like I have to add it to the dependencies too. As said before, this is the first time I try to package anything for a Linux based system, so if anyone has suggestions on how to find out which packages are needed and how to add them properly, your help is much appreciated. If anyone has problems just mention them here and we can try to solve them.

cheers,

keynya
It doesn't run at all even I install all the dependencies
 
Posts: 19 | Thanked: 20 times | Joined on Dec 2009
#22
Hi,

@marphy, @studiosusmed: Does the terminal give any useful information why the synchronisation fails? Because on my phone synchronisation works without any problems. I can also download shared and private decks.
Customization is definitely something that has to be improved. What do you mean with categories? Do you mean, that the menu is again subdivided into "File", "Edit", "Tools", "Settings" and "Help"? Because these categories are lost automatically as soon as you start ankiqt on the N900. If you have any information on how to get them back, I could give it a try.


@pursueky: Could you start ankiqt900 from the terminal, just type "anki". And paste the error message here. This could help to find out why it fails for you.

cheers,

Roger

Last edited by keynya; 2011-03-13 at 11:51.
 

The Following User Says Thank You to keynya For This Useful Post:
Posts: 21 | Thanked: 8 times | Joined on Jul 2010 @ Netherlands
#23
Dear Keynya,

syncs works! I had something in my proxy settings on anki. So no issue for me though anymore.

If I start anki via console it asks me to install pysqlite 2.4 for better dialogues. How can I install this?

Regarding the questions with the menu. You're correct I meant this that the menu structure like File, Edit etc. is still available. Like it is done here:

However wonderful work so far!
 
Posts: 5 | Thanked: 4 times | Joined on Mar 2011
#24
First off I just got my n900 a week or so ago and don't yet have much in the way of mobile application development experience.

That said,

Have you all tried running Anki as root? I read that others were having success with that in another thread and tried it myself. The result is an interface much like the one I see running Anki on my debian desktop.

I don't like the idea of running the application as root - but I much prefer the interface that results from doing so. I have found at least one problem running under root - if I select preferences from the main menu the application crashes and "segmentation fault" is printed to the terminal. I've tried running the application as a normal user and aside from the less agreeable font size and interface the preferences window seems to perform fine.

I'd like to find a way to run the application as a normal user with the interface that is used when running the application as root. As I have stated though I'm not real familiar yet with this device or with mobile application development. My thoughts so far follow:

When I start the program as root from the terminal the following warning is printed:

"Maemo applications must be run with the run-standalone.sh script!
QGtkStyle was unable to detect the current GTK+ theme."

The first line seems to be fairly standard when running an application as root. Based on what I've read using the run-standalone.sh script supplies environmental information to the application being run. I imagine the script is used by default when calling an application as a non-root user.

I'm curious if the second line may hint at the reason behind the differing interfaces. Could the absence of environmental information that is usually provided by the run-standalone.sh script be causing the application to not find the ui theme? If so, perhaps this is what is causing the application to select a default theme which I find much more agreeable.

Can anyone here that has more experience with all this tell me if that might be reasonable? I've been scanning some of the source code looking for a way to specify theme information but haven't found anything yet. I'll keep looking.

Any feedback would be much appreciated.
 
Posts: 19 | Thanked: 20 times | Joined on Dec 2009
#25
Hi Muttin,

When I start ankiqt900 as root it looks the same as when I start it using the desktop icon and I don't see any error. But nevertheless, the Information about the QGtkStyle error sounds very interesting. I will have a look at it, although I have no idea where to start. So if you find anything, please tell me.


@studiosusmed: I have the pysqlite 2.4-error ever since I first started ankiqt last summer. So it looks like everything works even without this library. As far as I know there is no package for pysqlite for the N900. I also do not know what the advantage would be if we have these libraries installed.

cheers,

keynya
 
Posts: 21 | Thanked: 8 times | Joined on Jul 2010 @ Netherlands
#26
What is pretty interesting is that when I'm installing / uninstalling something in the application manager the library python2.5-qt4-svg will be removed. I installed it additionally via the console, due to a previous error.

Somebody an idea why this is the case??
 
Posts: 19 | Thanked: 20 times | Joined on Dec 2009
#27
What have you uninstalled?
 
Posts: 5 | Thanked: 4 times | Joined on Mar 2011
#28
Oops - I should have mentioned that I didn't use the package you created to install anki. I downloaded anki-1.2.7.tgz from the mirror on the Anki site, extracted it to a file in my home directory and then navigated to that file and ran the program from the command line with "./anki" - it then threw some python exceptions about packages it was missing. Each time an exception was thrown I tracked down and installed the missing package. (I think there were 3 or 4 I needed to install)

A screenshot of the interface version I am seeing running Anki as root can be seen below:


I haven't yet found a way to make Anki use this interface when run as a normal user. I did however test running Anki as root through the run-standalone.sh via "./usr/bin/run-standalone.sh anki" which resulted in the disagreeable interface that I normally see when running Anki as a normal user. This to me confirms that the different interface when running as root does indeed result from the lack of environmental information usually supplied by the run-standalone.sh script. I don't yet know if the segmentation fault problem on the preference menu is a result of running the application as root or if it is the result of some incompatibility with the interface or maybe a result of missing some other environmental info usually set up run-standalone.sh. I'd like to find a way to run Anki as a normal user without using the run-standalone.sh just to see if the error is still present. Even more I'd like to find a way to modify the Anki source to use the better interface on the device. I've done a little experimentation so far - but no luck yet.

I'd love to hear any ideas / feedback. If I find anything new I'll post an update here.
 
pursueky's Avatar
Posts: 191 | Thanked: 46 times | Joined on Jun 2010 @ NanJing China
#29
No module named simplejson


And it reboots after type this

Why???????

Last edited by pursueky; 2011-03-15 at 02:49.
 
Posts: 5 | Thanked: 4 times | Joined on Mar 2011
#30
Info on the simplejson module can be found here: http://maemo.org/packages/package_in...2.0.9-1maemo1/

Note that it is located in the extras-devel repository - which basically means use it at your own risk... and don't use it if you you aren't comfortable re-flashing your device.

That said - I haven't had any problems with it yet myself.
 

The Following User Says Thank You to Muttin For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:54.