Android 4.4 client problem (nothing displayed)

111 views
Skip to first unread message

Gnome

unread,
May 4, 2014, 7:40:05 AM5/4/14
to mnemosyne-...@googlegroups.com
I have a problem getting the android python client to work properly. The client worked fine on my old phone, but after a water accident I have upgraded to one with android 4.4

Firstly the database files needed to be on the internal storage and not on the SD card because of permission changes in the os.
Now everything is working without any error messages, and it syncs. But when the review page opens, all I get is an entirely blank page. There is even no html when I view the source. I have tried changing the card set to make sure that a standard front to back card is active with no Javascript in it.

Peter Bienstman

unread,
May 5, 2014, 12:45:27 AM5/5/14
to mnemosyne-...@googlegroups.com
Hi,

It seems like your database is empty or not in the correct location.

Does the initial sync take enough time not to be bogus? If you uses a
file explorer, are the files where you expect them to be and have
reasonable sizes? Have you tried with a different browser?

BTW, I have two Android 4.4 devices without removable storage, and the
path to use still is /sdcard. If you're putting them on true core
internal memory, you might have enough space, so also try with dummy
database with a few cards.

Good luck!

Peter

Citeren Gnome <jippi...@hotmail.com>:
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/7f985642-861d-465e-a646-1d2fe736058e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



Gnome

unread,
May 5, 2014, 10:49:50 AM5/5/14
to mnemosyne-...@googlegroups.com


kl. 06:45:27 UTC+2 mandag 5. mai 2014 skrev Peter Bienstman følgende:
Hi,

It seems like your database is empty or not in the correct location.

Does the initial sync take enough time not to be bogus? If you uses a  
file explorer, are the files where you expect them to be and have  
reasonable sizes?

I should mention that I copied the database and the files from my old phone sdcard.
After the first sync the number of cards on review on the PC decreased, so I assume it synched correctly. Also the default.db is the same size (12 169 216 bytes).
 
Have you tried with a different browser?
I get the same result in firefox. 

BTW, I have two Android 4.4 devices without removable storage, and the  
path to use still is /sdcard. If you're putting them on true core  
internal memory, you might have enough space

The database is on the internal storage. I tried to store it on an plugged in sdcard at first, but I would get an permission denied error during launch. After looking around on google, apparently there is a change in the android OS 4.4, so that apps on the local storage cannot write to the SD card. So all users trying to install the mnemosyne python client on android 4.4 and later will have to have the database on the internal storage.

 
so also try with dummy  
database with a few cards.

I will try to remove the entire database then do a new sync. If that doesn't work, I will try with a smaller database.
 
Good luck!

Peter

Citeren Gnome <jippi...@hotmail.com>:

> I have a problem getting the android python client to work properly.  
> The client worked fine on my old phone, but after a water accident I  
> have upgraded to one with android 4.4
>
> Firstly the database files needed to be on the internal storage and  
> not on the SD card because of permission changes in the os.
> Now everything is working without any error messages, and it syncs.  
> But when the review page opens, all I get is an entirely blank page.  
> There is even no html when I view the source. I have tried changing  
> the card set to make sure that a standard front to back card is  
> active with no Javascript in it.
>
> --
> You received this message because you are subscribed to the Google  
> Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it,  
> send an email to mnemosyne-proj-users+unsub...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-users@googlegroups.com.

Gnome

unread,
May 5, 2014, 3:41:33 PM5/5/14
to mnemosyne-...@googlegroups.com
I tested deleting and resyncing the database again, same outcome.

I then created a new database file in mnemosyne PC and added some cards. I deleted the Mnemosyne database directory on android and started to synch.
However, after the sync was finished, Mnemosyne PC had swiched back to default.db and that database was synched, and the same outcome.

Peter Bienstman

unread,
May 6, 2014, 7:29:13 AM5/6/14
to mnemosyne-...@googlegroups.com
Hi,

Since I cannot reproduce this (as I said, none of my 4.4 devices (Nexus 7, Moto G) have issues with permissions), could you please replace web_server.py in Mnemosyne/web_server with the attached version?

It will print out extra output, like name and path of the database loaded, the webrequests coming in, and the html that will be served. You will need to move back to the python console after launching requests from your webbrowser in order to see this debug info, though.

Good luck!

Peter
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/1f6b4133-2dfa-
> 41d8-affb-c54df0c6997d%40googlegroups.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-users/1f6b4133-
> 2dfa-41d8-affb-
> c54df0c6997d%40googlegroups.com?utm_medium=email&utm_source=foot
> er> .
web_server.py

Gnome

unread,
May 6, 2014, 5:03:36 PM5/6/14
to mnemosyne-...@googlegroups.com
Since the database is no longer on the external SD card the permissions should no longer be an issue.

Here is the output


/favicon.icoTypeError("initialise() got an unexpected keyword argument 'config_dir'",)
Traceback (most recent call last):
File "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
1302, in communicate
req.respond()
File "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
831, in respond
self.server.gateway(self).respond()
File "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
2135, in respond
response = self.req.server.wsgi_app(self.env, self.start_response)
File "/storage/emulated/0/sl4a/scripts/mnemosyne/web_server/web_server.py", li
140, in wsgi_app
self.load_mnemosyne()
File "/storage/emulated/0/sl4a/scripts/mnemosyne/web_server/web_server.py", li
105, in load_mnemosyne
filename=self.filename, automatic_upgrades=False)
TypeError: initialise() got an unexpected keyword argument 'config_dir'
/
TypeError("initialise() got an unexpected keyword argument 'config_dir'",)
Traceback (most recent call last):
File "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
1302, in communicate

File "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
831, in respond
self.server.gateway(self).respond()
File "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
2135, in respond
response = self.req.server.wsgi_app(self.env, self.start_response)
File "/storage/emulated/0/sl4a/scripts/mnemosyne/web_server/web_server.py", li
140, in wsgi_app
self.load_mnemosyne()
File "/storage/emulated/0/sl4a/scripts/mnemosyne/web_server/web_server.py", li
105, in load_mnemosyne
filename=self.filename, automatic_upgrades=False)
TypeError: initialise() got an unexpected keyword argument 'config_dir'
/favicon.ico
TypeError("initialise() got an unexpected keyword argument 'config_dir'",)
Traceback (most recent call last):
File "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
1302, in communicate
req.respond()
File "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
831, in respond
self.server.gateway(self).respond()
File "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
2135, in respond
response = self.req.server.wsgi_app(self.env, self.start_response)

Peter Bienstman

unread,
May 8, 2014, 11:02:05 AM5/8/14
to mnemosyne-...@googlegroups.com
Seems I messed up some versions.

Try this:

http://users.ugent.be/~pbienst/pub/Mnemosyne%20Android%202.3.zip

Cheers,

Peter

> -----Original Message-----
> From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-
> proj-...@googlegroups.com] On Behalf Of Gnome
> Sent: 06 May 2014 23:04
> To: mnemosyne-...@googlegroups.com
> Subject: RE: [mnemosyne-proj-users] Android 4.4 client problem (nothing
> displayed)
>
> y", li 105, in load_mnemosyne
> filename=self.filename, automatic_upgrades=False)
> TypeError: initialise() got an unexpected keyword argument 'config_dir'
> /favicon.ico
> TypeError("initialise() got an unexpected keyword argument 'config_dir'",)
> Traceback (most recent call last):
> File
> "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
> 1302, in communicate
> req.respond()
> File
> "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
> 831, in respond
> self.server.gateway(self).respond()
> File
> "/storage/emulated/0/sl4a/scripts/cherrypy/wsgiserver/wsgiserver2.py", li
> 2135, in respond
> response = self.req.server.wsgi_app(self.env, self.start_response)
>
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/50eee458-
> 98c3-4ece-a12c-77e45be9226b%40googlegroups.com.

Gnome

unread,
May 16, 2014, 6:48:54 PM5/16/14
to mnemosyne-...@googlegroups.com
That one works, however I no longer see the exit button?

Gnome

unread,
May 16, 2014, 6:53:06 PM5/16/14
to mnemosyne-...@googlegroups.com
It appeared again after a resync for some reason.
Thanks!

Gnome

unread,
May 17, 2014, 1:57:03 AM5/17/14
to mnemosyne-...@googlegroups.com
This morning it disappeared again.

Peter Bienstman

unread,
May 17, 2014, 1:17:20 PM5/17/14
to mnemosyne-...@googlegroups.com
Strange, I've never seen anything like this, so it will difficult to
track this down.

Let me know if you detect a pattern...

Peter

Citeren Gnome <jippi...@hotmail.com>:

> This morning it disappeared again.
>
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/bc0f8740-706e-4fe4-8a5b-0f00c7248d2e%40googlegroups.com.

Gnome

unread,
May 27, 2014, 11:00:51 AM5/27/14
to mnemosyne-...@googlegroups.com
Now the exit button is gone again, and it's been that way for a couple of days.
Is there an alternative way to sync? Perhaps copying the database to the PC?


kl. 19:17:20 UTC+2 lørdag 17. mai 2014 skrev Peter Bienstman følgende:
Strange, I've never seen anything like this, so it will difficult to  
track this down.

Let me know if you detect a pattern...

Peter

Citeren Gnome <jippi...@hotmail.com>:

> This morning it disappeared again.
>
> --
> You received this message because you are subscribed to the Google  
> Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it,  
> send an email to mnemosyne-proj-users+unsub...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-users@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages