Bug 14617

Summary: Admin mode does not work if to run from Menu
Product: Mageia Reporter: Alex Loginov <loginov_alex>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: anaselli, ccosse, lists.jjorge, matteo.pasotti
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
URL: https://github.com/asymptopia/multiplicationstation/issues/1
Whiteboard:
Source RPM: multiplicationstation, tuxmathscrabble, tuxwordsmith CVE:
Status comment:
Attachments: Desktop files
for multiplicationstation

Description Alex Loginov 2014-11-20 17:28:11 CET
Description of problem:
[user@localhost ~]$ multiplicationstation -wx
/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16632: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
Traceback (most recent call last):
  File "/usr/games/multiplicationstation", line 46, in <module>
    x=MultiplicationStationAppWX()
  File "/usr/share/games/multiplicationstation/lib/MultiplicationStation/mstation_wx.py", line 34, in __init__
    prog=MultiplicationStation(mode,fs,True)
  File "/usr/share/games/multiplicationstation/lib/MultiplicationStation/mstation.py", line 153, in __init__
    self.admin.setup()
  File "/usr/share/games/multiplicationstation/lib/MultiplicationStation/wxadmin.py", line 53, in setup
    splitter = wx.SplitterWindow (self,wx.NewId(),style=wx.NO_3D)#|wxSP_3D
AttributeError: 'module' object has no attribute 'NO_3D'
[user@localhost ~]$ tuxmathscrabble -wx
/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16632: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
Traceback (most recent call last):
  File "/usr/games/tuxmathscrabble", line 41, in <module>
    x=TuxMathScrabbleAppWX()
  File "/usr/share/games/tuxmathscrabble/lib/TuxMathScrabble/tms_wx.py", line 35, in __init__
    prog=TuxMathScrabble(mode,level,use_default_level,True)
  File "/usr/share/games/tuxmathscrabble/lib/TuxMathScrabble/tms.py", line 178, in __init__
    self.admin.setup()
  File "/usr/share/games/tuxmathscrabble/lib/TuxMathScrabble/wxadmin.py", line 53, in setup
    splitter = wx.SplitterWindow (self,wx.NewId(),style=wx.NO_3D)#|wxSP_3D
AttributeError: 'module' object has no attribute 'NO_3D'
[user@localhost ~]$ tuxwordsmith -wx
/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16632: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
Traceback (most recent call last):
  File "/usr/games/tuxwordsmith", line 49, in <module>
    x=TuxWordSmithAppWX()
  File "/usr/share/games/tuxwordsmith/lib/TuxWordSmith/tws_wx.py", line 35, in __init__
    prog=TuxWordSmith(mode,level,use_default_level,True)
  File "/usr/share/games/tuxwordsmith/lib/TuxWordSmith/tws.py", line 189, in __init__
    self.admin.setup()
  File "/usr/share/games/tuxwordsmith/lib/TuxWordSmith/wxadmin.py", line 53, in setup
    splitter = wx.SplitterWindow (self,wx.NewId(),style=wx.NO_3D)#|wxSP_3D
AttributeError: 'module' object has no attribute 'NO_3D'


Version-Release number of selected component (if applicable):
multiplicationstation-0.6.5-5.mga5.noarch.rpm
tuxmathscrabble-0.7.4-6.mga5.noarch.rpm
tuxwordsmith-0.7.13-4.mga4.noarch.rpm


How reproducible: always


Steps to Reproduce:
1. run Admin mode from Menu or from console with option -wx



Reproducible: 

Steps to Reproduce:
Alex Loginov 2014-11-23 16:47:16 CET

CC: (none) => lists.jjorge

Alex Loginov 2014-11-23 16:47:31 CET

CC: (none) => anaselli

Comment 1 Angelo Naselli 2014-11-25 17:59:14 CET
is it just the admin mode that does not work? I will check it in the incoming week end, but i saw there is no new package upstream, but they opened a github
project for this.
https://github.com/asymptopia/multiplicationstation
Comment 2 Alex Loginov 2014-11-25 18:28:18 CET
> is it just the admin mode that does not work?
Yes, it worked 2-3 weeks ago.
Comment 3 Angelo Naselli 2014-11-30 22:33:55 CET
Alex i can confirm that, but unfortunately changing the style with a good value
makes multiplicationstation seg-faulting.

I will open a report on github and see, but i cannot fix it atm, if you are able please go on.

Status: NEW => ASSIGNED

Angelo Naselli 2014-11-30 22:36:43 CET

URL: (none) => https://github.com/asymptopia/multiplicationstation/issues/1

Comment 4 Charles Cosse 2014-12-06 00:05:16 CET
Multiplication Station 0.6.8 is now available and supports both wx2.8 and wx3.0.

Will fix TuxMathScrabble and TuxWordSmith in coming days and let you know when available.  

Thanks!

CC: (none) => ccosse

Comment 5 Charles Cosse 2014-12-06 17:36:09 CET
TuxMathScrabble-0.7.7
TuxWordSmith-0.8.0
MultiplicationStation-0.6.8

All available now via github.com/asymptpoia.
Thanks for using these, and please take a look at my project http://www.autoteach.net ... it needs participants and can pay developers of education software while making kids work for internet time.
Comment 6 Angelo Naselli 2014-12-06 19:30:07 CET
Charles thank you very much i will update mageia packages soon.
Comment 7 Angelo Naselli 2014-12-06 19:38:29 CET
Charles sorry have you tagged anything or i need to download a tarball from master?
Comment 8 Angelo Naselli 2014-12-06 20:14:28 CET
ok found http://www.asymptopia.org/download (very hidden i believe :) )
Comment 9 Angelo Naselli 2014-12-06 22:36:45 CET
multiplicationstation has been fixed in svn, waiting for a freeze push.
I won't close this bug yet before fixing other asymptopia games.
Comment 10 Angelo Naselli 2014-12-06 23:05:15 CET
Added zezigno for TuxMathScrabble and TuxWordSmith
Comment 11 Charles Cosse 2014-12-07 02:57:56 CET
Made modifications to all 3 apps as per request for .desktop files and also for path modifications when installed  under /usr/share/games.

Am calling all 3 apps "version 0.8.0" for the coming while, despite possible commits and minor changes, including anything you may still need for Mageia.  I am happy to help with anything further.  Thanks!
Comment 12 Alex Loginov 2014-12-07 10:34:31 CET
Created attachment 5685 [details]
Desktop files

Charles, hello,
Your desktop files are incorrect.
I added attachment with correct desktop files.
Comment 13 Charles Cosse 2014-12-07 13:03:56 CET
(In reply to Alex Loginov from comment #12)
> Created attachment 5685 [details]
> Desktop files
> 
> Charles, hello,
> Your desktop files are incorrect.
> I added attachment with correct desktop files.

Alex, thank you for the complete set of .desktop files.  I have added all files.  

Could you compare/add the [it] translation from the following, please?
https://github.com/asymptopia/multiplicationstation/pull/4

My editor cannot handle the fonts and unicode in those .desktop translations. What editor would you recommend for editing those?  (I am using Nedit since about 15 yrs!)
Comment 14 Angelo Naselli 2014-12-07 14:29:22 CET
Not sure, but i think any editor supporting UTF-8, but maybe translators can say that better.

Alex, were those files in mageia repository?
Angelo Naselli 2014-12-07 16:02:48 CET

CC: (none) => matteo.pasotti

Comment 15 Alex Loginov 2014-12-07 16:41:04 CET
Created attachment 5688 [details]
for multiplicationstation

New desktop files for multiplicationstation with Italian translations.
Comment 16 Alex Loginov 2014-12-07 16:47:23 CET
> Could you compare/add the [it] translation from the following, please?
Done. See attachment, fixed error in Italian (was GenericName[ru]=Calcolo a mente)

> What editor would you recommend for editing those?
I like kwrite, mcedit

> Alex, were those files in mageia repository?
Yes, from specs. So if you want to build RPM pkg you can use specs and don't use desktop files from sources or wait when Charles will fix in sources.
Comment 17 Charles Cosse 2014-12-07 16:51:34 CET
(In reply to Alex Loginov from comment #16)
> > Could you compare/add the [it] translation from the following, please?
> Done. See attachment, fixed error in Italian (was GenericName[ru]=Calcolo a
> mente)
> 
> > What editor would you recommend for editing those?
> I like kwrite, mcedit
> 
> > Alex, were those files in mageia repository?
> Yes, from specs. So if you want to build RPM pkg you can use specs and don't
> use desktop files from sources or wait when Charles will fix in sources.

Thanks guys, i just committed the updated .desktop files for multiplicationstation.
Comment 18 Alex Loginov 2014-12-07 17:06:29 CET
It seems multiplicationstationwx.desktop is not used.
We uses only multiplicationstation.desktop and multiplicationstation-admin.desktop.
Comment 19 Charles Cosse 2014-12-07 17:16:48 CET
Yes, i chose that name initially and left it there in case you guys went with that name choice.  I have deleted multiplicationstationwx.desktop now.
Comment 20 Angelo Naselli 2014-12-07 17:25:37 CET
No problems i can move or change the name if needed, 
Charles thanks for you effort :)

are all fixed on github now? I mean i cannow download a "final" tarball?
Comment 21 Charles Cosse 2014-12-07 17:46:00 CET
Yes, github is up-to-date.  It's the only place that is up-to-date.  I did not make any label or anything, just pull the current version.

>Charles thanks for you effort :)
Angelo, my pleasure.  Thanks for contacting me initially via github.  I am very happy to know about Mageia and that some of my software are included.  I used Mandrake for a couple years in 2000-2002 ... actually I developed TuxMathScrabble on Mandrake.  The Mageia website and organization structure is very nice.  

I have a couple more applications that I can modify for inclusion in Mageia, if you are interested.  In particular, the new web version of TuxMathScrabble would be nice (for me) to see as part of Mageia.  How do/would you package, install and serve a JavaScript application?

Another app I believe is worthy is my SightReadingTrainer ... I see the Music section of the Edu-SIG page has some other Java applications.  Mine can run either stand-alone by Java or Jython, or as an Applet in Firefox (not Chrome, others untested).  If you can help connect me to the right people then I can spend a little more time making any modifications for Mageia.  Thanks!
Comment 22 Angelo Naselli 2014-12-07 18:00:56 CET
Unfortunately I'm not very good at web/java applications. But you can contact
developers team by subscribing dev@ml.mageia.org mailing list and by IRC  #mageia-dev on freenode. I think you should find more at https://wiki.mageia.org/en/Contributing

About github... i think i have some more bullets to shot ;) but i don't want only to open issues, i usually try to provide possible solutions first so i have to think about it a little bit more

I'll start packaging then so we can close this bug  :)
Comment 23 Charles Cosse 2014-12-07 18:08:59 CET
Sounds good.  Just let me know ...
Comment 24 Angelo Naselli 2014-12-07 20:28:56 CET
Packages are available in svn waiting for a freeze push :)

Alex could you please test them to validate this bug as resolved? thanks
I found icon is not shown in lx-qt, but i think it's a known problem there,
can you check into other dm? thanks again
Comment 25 Alex Loginov 2014-12-08 21:58:49 CET
tuxmathscrabble does not work:

[user@localhost ~]$ LC_ALL=C tuxmathscrabble
/usr/bin/env: python2.7-32: No such file or directory
[user@localhost ~]$ LC_ALL=C tuxmathscrabble -wx
/usr/bin/env: python2.7-32: No such file or directory
Comment 26 Charles Cosse 2014-12-08 22:19:29 CET
Could it be because there is no file named "tuxmathscrabble" but only "tuxmathscrabble.py"?

Of my 4 apps, only the one discussed here, i.e. MultiplicationStation has a file of the same name without the .py extension.  

So if this is the case then i need to cp .py -> no_extension for 3 other packages:
tuxmathscrabble,
tuxwordsmith,
stepintochinese
Comment 27 Angelo Naselli 2014-12-08 22:36:37 CET
I should have tested something wrong :( 
I'll fix it up, i should have missed something also in stepintochinese
Comment 28 Charles Cosse 2014-12-08 22:42:24 CET
(In reply to Charles Cosse from comment #26)
> Could it be because there is no file named "tuxmathscrabble" but only
> "tuxmathscrabble.py"?

And if that is the case then it's not such an easy fix because the extensionless file is confused with the camel-cased directory of the same name.  Only "mstation" is distinct from "MultiplicationStation".   Otherwise, on my Mac, for example, the shell is case-insensitive and thus:

tuxmathscrabble and TuxMathScrabble are confused.
Actually, the cmd: 
cp tuxmathscrabble.py tuxmathscrabble
results in the file:
TuxMathScrabble/tuxmathscrabble.py

I can fix it quickly if that is the problem.
Comment 29 Angelo Naselli 2014-12-08 23:01:47 CET
Charles the problem is in the hashtag line
#!/usr/bin/env python2.7-32
others have
#!/usr/bin/env python
Comment 30 Angelo Naselli 2014-12-08 23:07:36 CET
patched, tested and submitted. Sorry i probably tested something different twice.

For stepintochinese i believe something is missed in the package instead... investigating
Comment 31 Charles Cosse 2014-12-08 23:22:44 CET
According to git the MANIFEST.in file was missing too!  I added it to github and also changed hashtag line in TMS
Comment 32 Angelo Naselli 2014-12-08 23:59:58 CET
Charles 
for tuxmathscrabble:
http://svnweb.mageia.org/packages/cauldron/tuxmathscrabble/current/SOURCES/tuxmathscrabble-0.8.0-bin.patch?revision=802314&view=markup
For stepintochinese i made a pull request on github

Alex, thanks for the new report, and please test all now. Again sorry.
Comment 33 Charles Cosse 2014-12-09 00:08:19 CET
okay, github synced for chinese and i had already changed the #! line to just #!/usr/bin/env python and committed it.  tuxwordsmith is okay, just checked.
Comment 34 Angelo Naselli 2014-12-12 22:40:08 CET
I think we can close this bug

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED

Comment 35 Alex Loginov 2015-01-02 15:47:13 CET
Option -wx started Admin mode directly before, but now with or without -wx is the same, no differences.
Comment 36 Angelo Naselli 2015-01-02 18:30:32 CET
What is changed?
Comment 37 Angelo Naselli 2015-01-02 19:01:52 CET
Alex works here for all of them
Comment 38 Alex Loginov 2015-01-02 20:36:25 CET
Button "Admin" for user mode is not hidden and does not work.
Comment 39 Angelo Naselli 2015-01-02 23:04:15 CET
Is it never been hidden? i don't remember that.

Maybe you could open another bug for that, here or upstream. I will be happy to
add a new package with the upstream fixing.