Fora

Error launching PlayOnMac

Autor Odpowiedzi
Jump to the page: 1 - 2
wapimdv Wednesday 3 November 2010 at 17:23
wapimdvAnonymous

only a few days !!!! .... first I focuses my efforts in running Sourcesafe, and now... welll.. it would be great not to have this starting error...
Quentin PÂRIS Wednesday 3 November 2010 at 17:36
Quentin PÂRISAnonymous

Ok ..

You can try to open /Applications/PlayOnMac.app/Contents/Resources/lib/lng.py with a text editor

Line 31, you have a blank line

Write (respect the indent) :

locale.setlocale(locale.LC_ALL,'es_ES.utf-8')

Save the file and retry
wapimdv Wednesday 3 November 2010 at 17:47
wapimdvAnonymous

Now I have at the bottom of /Applications/PlayOnMac.app/Contents/Resources/lib/lng.py

.
.
.

class iLang(object):
     def __init__(self):
          try:
               languages = os.listdir(Variables.playonlinux_env+'/lang/locale')
               locale.setlocale(locale.LC_ALL,'es_ES.utf-8')
               langid = wx.LANGUAGE_DEFAULT
               localedir = os.path.join(Variables.playonlinux_env, "lang/locale")
               domain = "pol"
               mylocale = wx.Locale(langid)
               mylocale.AddCatalogLookupPathPrefix(localedir)
               mylocale.AddCatalog(domain)
               
               mytranslation = gettext.translation(domain, localedir, [mylocale.GetCanonicalName()], fallback = True)
               mytranslation.install()
          except:
               pass

I saved the file, reboot the Mac, and re launch POM and I get the same error... :-(

Sorry.. I don't want you waste your time for this little error...
Quentin PÂRIS Wednesday 3 November 2010 at 17:49
Quentin PÂRISAnonymous

Normal that the ln -s didn't work
Undo the last thing I have told you to do (No need to reboot)

And try this :

Type in PlayOnLinux console :

cd $PLAYONLINUX/lang/po
cat es.po | sed s/es_ES.utf-8/es_AR.utf-8/ > es_AR.po
msgfmt es_AR.po
rm ../locale/es_AR
mkdir -p ../locale/es_AR/LC_MESSAGES
mv messages.mo ../locale/es_AR/LC_MESSAGES/pol.mo
wapimdv Wednesday 3 November 2010 at 18:05
wapimdvAnonymous

ok... removed line from lng.py
executed commands (copy & paste) from PlayOnLinux Console with no result errors
relaunching POM and i get still the same error...

Edytowane przez wapimdv

Quentin PÂRIS Wednesday 3 November 2010 at 18:08
Quentin PÂRISAnonymous

I don't know where the problem is.

It seems that PlayOnMac think you are in Argentina.

(btw, what's happening if you type locale in a terminal ?)
wapimdv Wednesday 3 November 2010 at 18:12
wapimdvAnonymous

pep$ locale
LANG="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_CTYPE="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_ALL=
Quentin PÂRIS Wednesday 3 November 2010 at 18:29
Quentin PÂRISAnonymous

For the moment, I have no idea. I think the bug comes from wxpython on OSX

I will try to fix it if I have more information

Sorry
wapimdv Wednesday 3 November 2010 at 18:36
wapimdvAnonymous

ok.. thank you for your help... it is a pleasure to contact with people like you !!!!! ... despite the problem has not been solved I will use POM because I think it is a great app.

Thanks a lot !!!! if you need some additional info that can help to solve this 'X-FILE' please ask me !!!!

Greetings from Barcelona (in Spain not in Argentina .. hehehe)... btw.. I love Argentina !

GNU_Raziel Thursday 4 November 2010 at 19:08
GNU_Raziel

Use this command, it should solve your problem :

defaults write -g AppleLocale "es_ES"
wapimdv Friday 5 November 2010 at 10:36
wapimdvAnonymous

It doesn't work... :-(
raulvile Tuesday 23 November 2010 at 14:15
raulvileAnonymous

Hi
I have the same error message trying to open for the first time another software that uses phyton (GRASS 6.4)

I am still trying to solve this. Same problem, I am from Spain, language is set to Spanish but it appears same error message: "cannot set locale to 'es_AR'"and application ends.

My computer is a new MacBook Pro with OS X 10.6.4
It seems to be a problem among phyton, mac and the spanish language ¿?

hope it helps to find the problem

Raul
lavadrop Wednesday 26 January 2011 at 0:25
lavadropAnonymous

Same problem here, latest POM (2.4.4), my Mac is set to Spanish with Mexico as the locale. Can't do anything besides terminating the program. I can bypass this by directly executing the binary from a terminal.
Jesteś tutaj: Index > > Error launching PlayOnMac