Hi there
I'm a Danish Hattrick-player and I was looking around on the net to find some nice utils for my Mac. I saw your open source-project and I would like to help out if you're interested (and can tell me a little about Python)
I know some about programming (C, Java, Perl etc) but perhaps you can help me on my way :)
From Frederik Lundberg Owner of The Relegates
Hi Frederik!
Nice to see someone who wants to help. If you would like to help, the easiest thing is to just begin to hack (bonus points if it nicely documented and good looking code) something into the program and send a patch.
For learning Python, there is a tutorial here: http://www.python.org/doc/current/tut/ Otherwise, the documentation for Python could be better.
Since you are a Mac-user. We would really like something that tests out and report various things specific to Mac-users. Also a way to make nice distributions for Mac would be good.
If you are into translating, you could give it a shot to translate Mattricks into Danish (even if I as a Swede thinks it is a hopelessly incomprehensible language).
Anything else you want help with? Just write again.
/Ragnar
On Wed, 7 Jan 2004, Frederik Lundberg wrote:
Hi there
I'm a Danish Hattrick-player and I was looking around on the net to find some nice utils for my Mac. I saw your open source-project and I would like to help out if you're interested (and can tell me a little about Python)
I know some about programming (C, Java, Perl etc) but perhaps you can help me on my way :)
From Frederik Lundberg Owner of The Relegates
Mattricks mailing list Mattricks@lists.lysator.liu.se http://lists.lysator.liu.se/mailman/listinfo/mattricks
Hi,
Does anyone have latest mattricks running on Panther (MacOS 10.3.*)?
I downloaded the latest source, wxPythonOSX-2.4.2.4-panther-py2.3, PyXML-0.8.3 and installed it. Running "pythonw mattricks.py" results in a bus error. This great crashlog is pretty much what I have to show for it (at end of mail).
Is there something specific I can try? The demos that comes with pythonw all works.
-- kent
------------------------------------------------------------------------ ------------- Date/Time: 2004-01-09 13:58:10 +0100 OS Version: 10.3.2 (Build 7D24) Report Version: 2
Command: Python Path: /System/Library/Frameworks/Python.framework/Versions/2.3/Resources/ Python.app/Contents/MacOS/Python Version: 2.3 (2.3) PID: 1243 Thread: 0
Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000022
Thread 0 Crashed: 0 libwx_mac-2.4.0.dylib 0x025c9ed0 wxChoice::GetString(int) const + 0x24 1 libwx_mac-2.4.0.dylib 0x025cbf88 wxComboBox::GetValue() const + 0x70 2 wxc.so 0x010a1fd4 _wrap_wxComboBox_GetValue + 0xdc 3 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 4 org.python.Python.framework 0x95fa9df0 PyEval_GetFuncDesc + 0xb24 5 org.python.Python.framework 0x95fa6d44 PyEval_EvalCode + 0x2640 6 org.python.Python.framework 0x95fa7e30 PyEval_EvalCodeEx + 0x850 7 org.python.Python.framework 0x95fa97dc PyEval_GetFuncDesc + 0x510 8 org.python.Python.framework 0x95fa9580 PyEval_GetFuncDesc + 0x2b4 9 org.python.Python.framework 0x95fa6c64 PyEval_EvalCode + 0x2560 10 org.python.Python.framework 0x95fa9728 PyEval_GetFuncDesc + 0x45c 11 org.python.Python.framework 0x95fa9580 PyEval_GetFuncDesc + 0x2b4 12 org.python.Python.framework 0x95fa6c64 PyEval_EvalCode + 0x2560 13 org.python.Python.framework 0x95fa7e30 PyEval_EvalCodeEx + 0x850 14 org.python.Python.framework 0x95f5f354 PyFunction_SetClosure + 0xd6c 15 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 16 org.python.Python.framework 0x95f529e8 PyMethod_New + 0xbf0 17 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 18 org.python.Python.framework 0x95fa91ec PyEval_CallObjectWithKeywords + 0x100 19 org.python.Python.framework 0x95f4de40 PyInstance_New + 0x140 20 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 21 org.python.Python.framework 0x95fa9ba8 PyEval_GetFuncDesc + 0x8dc 22 org.python.Python.framework 0x95fa9598 PyEval_GetFuncDesc + 0x2cc 23 org.python.Python.framework 0x95fa6c64 PyEval_EvalCode + 0x2560 24 org.python.Python.framework 0x95fa7e30 PyEval_EvalCodeEx + 0x850 25 org.python.Python.framework 0x95f5f354 PyFunction_SetClosure + 0xd6c 26 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 27 org.python.Python.framework 0x95f529e8 PyMethod_New + 0xbf0 28 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 29 org.python.Python.framework 0x95fa91ec PyEval_CallObjectWithKeywords + 0x100 30 org.python.Python.framework 0x95f4de40 PyInstance_New + 0x140 31 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 32 org.python.Python.framework 0x95fa9ba8 PyEval_GetFuncDesc + 0x8dc 33 org.python.Python.framework 0x95fa9598 PyEval_GetFuncDesc + 0x2cc 34 org.python.Python.framework 0x95fa6c64 PyEval_EvalCode + 0x2560 35 org.python.Python.framework 0x95fa7e30 PyEval_EvalCodeEx + 0x850 36 org.python.Python.framework 0x95f5f354 PyFunction_SetClosure + 0xd6c 37 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 38 org.python.Python.framework 0x95f529e8 PyMethod_New + 0xbf0 39 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 40 org.python.Python.framework 0x95fa91ec PyEval_CallObjectWithKeywords + 0x100 41 wxc.so 0x01009974 _wxStart(_object*, _object*) + 0x1dc 42 org.python.Python.framework 0x95fa94a8 PyEval_GetFuncDesc + 0x1dc 43 org.python.Python.framework 0x95fa6c64 PyEval_EvalCode + 0x2560 44 org.python.Python.framework 0x95fa7e30 PyEval_EvalCodeEx + 0x850 45 org.python.Python.framework 0x95f5f354 PyFunction_SetClosure + 0xd6c 46 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 47 org.python.Python.framework 0x95f529e8 PyMethod_New + 0xbf0 48 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 49 org.python.Python.framework 0x95fa9ba8 PyEval_GetFuncDesc + 0x8dc 50 org.python.Python.framework 0x95fa9598 PyEval_GetFuncDesc + 0x2cc 51 org.python.Python.framework 0x95fa6c64 PyEval_EvalCode + 0x2560 52 org.python.Python.framework 0x95fa7e30 PyEval_EvalCodeEx + 0x850 53 org.python.Python.framework 0x95f5f354 PyFunction_SetClosure + 0xd6c 54 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 55 org.python.Python.framework 0x95f529e8 PyMethod_New + 0xbf0 56 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 57 org.python.Python.framework 0x95fa91ec PyEval_CallObjectWithKeywords + 0x100 58 org.python.Python.framework 0x95f4de40 PyInstance_New + 0x140 59 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 60 org.python.Python.framework 0x95fa9ba8 PyEval_GetFuncDesc + 0x8dc 61 org.python.Python.framework 0x95fa9598 PyEval_GetFuncDesc + 0x2cc 62 org.python.Python.framework 0x95fa6c64 PyEval_EvalCode + 0x2560 63 org.python.Python.framework 0x95fa7e30 PyEval_EvalCodeEx + 0x850 64 org.python.Python.framework 0x95f5f354 PyFunction_SetClosure + 0xd6c 65 org.python.Python.framework 0x95f4a8d0 PyObject_Call + 0x30 66 org.python.Python.framework 0x95fa9df0 PyEval_GetFuncDesc + 0xb24 67 org.python.Python.framework 0x95fa6d44 PyEval_EvalCode + 0x2640 68 org.python.Python.framework 0x95fa9728 PyEval_GetFuncDesc + 0x45c 69 org.python.Python.framework 0x95fa9580 PyEval_GetFuncDesc + 0x2b4 70 org.python.Python.framework 0x95fa6c64 PyEval_EvalCode + 0x2560 71 org.python.Python.framework 0x95fa7e30 PyEval_EvalCodeEx + 0x850 72 org.python.Python.framework 0x95fa4734 PyEval_EvalCode + 0x30 73 org.python.Python.framework 0x95fc85f0 PyRun_FileExFlags + 0xe4 74 org.python.Python.framework 0x95fc7668 PyRun_SimpleFileExFlags + 0x1bc 75 org.python.Python.framework 0x95fd1ec0 Py_Main + 0x7cc 76 org.python.python 0x00003c78 0x1000 + 0x2c78 77 org.python.python 0x00003aec 0x1000 + 0x2aec
PPC Thread State: srr0: 0x025c9ed0 srr1: 0x0200f030 vrsave: 0x00000000 cr: 0x42224224 xer: 0x20000004 lr: 0x025cbf88 ctr: 0x025c9eac r0: 0x00000000 r1: 0xbfffcf30 r2: 0x0000002a r3: 0xbfffcf70 r4: 0x057a3350 r5: 0xfffffffc r6: 0x0100a92c r7: 0x01966000 r8: 0x5e4e3e2c r9: 0x057a3aa0 r10: 0x025c9eb4 r11: 0xa1b1c1d3 r12: 0x025c9eac r13: 0x014e2520 r14: 0x00000000 r15: 0x014e32d0 r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000003 r20: 0x0576744c r21: 0x003054d0 r22: 0x00000000 r23: 0x00000001 r24: 0x00000000 r25: 0x00000000 r26: 0x000d0788 r27: 0xbfffd0fc r28: 0x057f7100 r29: 0x028fe290 r30: 0x057a26b0 r31: 0x025cbf20
Oh, that was a long dump. unfortunately, it doesn't really help me.
First, do you have the latest cvs source of Mattricks or the latest released version (0.4)?
Could you try running something without gui and see if that works? I.e. "python mattricks.py fetch" or "python mattricks.py table" (use --help flag for more info about the command line options).
I will try to think up some more things for you to try.
/Ragnar
On Fri, 9 Jan 2004, Kent Karlsson wrote:
Hi,
Does anyone have latest mattricks running on Panther (MacOS 10.3.*)?
I downloaded the latest source, wxPythonOSX-2.4.2.4-panther-py2.3, PyXML-0.8.3 and installed it. Running "pythonw mattricks.py" results in a bus error. This great crashlog is pretty much what I have to show for it (at end of mail).
Is there something specific I can try? The demos that comes with pythonw all works.
-- kent
I downloaded the 0.4 release tarball, should I try the cvs? The fetch and table commands works fine (after I figured out how to get a fixtures-xml).
-- kent
On 2004-01-09, at 14.21, Ragnar Ouchterlony wrote:
Oh, that was a long dump. unfortunately, it doesn't really help me.
First, do you have the latest cvs source of Mattricks or the latest released version (0.4)?
Could you try running something without gui and see if that works? I.e. "python mattricks.py fetch" or "python mattricks.py table" (use --help flag for more info about the command line options).
I will try to think up some more things for you to try.
/Ragnar
On Fri, 9 Jan 2004, Kent Karlsson wrote:
I downloaded the 0.4 release tarball, should I try the cvs? The fetch and table commands works fine (after I figured out how to get a fixtures-xml).
That is a good start, at least.
I do not think that you will be better off with the cvs-version as wxPython for Mac seems a bit rough, so there may be certain controls that is not working properly. wxPython is unfortunately totally cross platform, and certain things works differently at different places.
If you are slightly familiar with python you could open Mattricks/Main.py and change the tabs to be shown. Just put a # in front of a line just below "the_pages". If you comment out the last lite ("prediction... you should remove the , at the end of the last line. In this way you may be able to find which pages are not working correctly and maybe get some tabs running. The most likely ones are "about" and "summary". "economy" and "comparison" should also be rather simple.
/Oscar
Im a total newbie on Python, but I am a programmer, so I can at least read existing code.. =)
It is only the prediction tab that doesn't work. Another note is that the swedish åäö doesn't work in the tabs. Which encoding are you using in the .po file?
-- kent
On 2004-01-09, at 15.30, Oscar Gustafsson wrote:
That is a good start, at least.
I do not think that you will be better off with the cvs-version as wxPython for Mac seems a bit rough, so there may be certain controls that is not working properly. wxPython is unfortunately totally cross platform, and certain things works differently at different places.
If you are slightly familiar with python you could open Mattricks/Main.py and change the tabs to be shown. Just put a # in front of a line just below "the_pages". If you comment out the last lite ("prediction... you should remove the , at the end of the last line. In this way you may be able to find which pages are not working correctly and maybe get some tabs running. The most likely ones are "about" and "summary". "economy" and "comparison" should also be rather simple.
/Oscar _______________________________________________ Mattricks mailing list Mattricks@lists.lysator.liu.se http://lists.lysator.liu.se/mailman/listinfo/mattricks
On Fri, 9 Jan 2004, Kent Karlsson wrote:
Im a total newbie on Python, but I am a programmer, so I can at least read existing code.. =)
It is only the prediction tab that doesn't work.
That is good news for all the Mac users! Maybe it would be worthwhile to create a Mac-distribution without the match predication?
Another note is that the swedish åäö doesn't work in the tabs. Which encoding are you using in the .po file?
This is really for Ragnar to answer, but a qualified guess would be iso-8859-1 as I think Unicode is not supported that well in wxPython.
/Oscar
On Fri, 9 Jan 2004, Kent Karlsson wrote:
Im a total newbie on Python, but I am a programmer, so I can at least read existing code.. =)
I was too once. :) It's a fun language though.
It is only the prediction tab that doesn't work. Another note is that the swedish åäö doesn't work in the tabs. Which encoding are you using in the .po file?
I wonder what could be the problem in the prediction tab. It thought it didn't use much dangerous code. And we use ISO-8859-1 as the encoding everywhere (except with characters that don't exist in ISO-8859-1 we use UTF-8). Other people have noticed that particularily the tabs are prone to not working with åäö. I really should look into that.
/Ragnar
On 2004-01-09, at 18.09, Ragnar Ouchterlony wrote:
I wonder what could be the problem in the prediction tab. It thought it didn't use much dangerous code. And we use ISO-8859-1 as the encoding everywhere (except with characters that don't exist in ISO-8859-1 we use UTF-8). Other people have noticed that particularily the tabs are prone to not working with åäö. I really should look into that.
It sounds to me as if the crash is due to the UTF-8 chars, it is a GetString call that causes the crash after all. Ill try to remove any UFT-8 chars and see what happens.
About making a dist, I'll check if there is any nifty tool to make a .app that launches python. We probably have to make a installer for the PyXML package as well I think.
-- kent
On Fri, 9 Jan 2004, Kent Karlsson wrote:
It sounds to me as if the crash is due to the UTF-8 chars, it is a GetString call that causes the crash after all. Ill try to remove any UFT-8 chars and see what happens.
The only UTF-8 chars that exists come from XML:s or HRF:s from hattrick, so I don't think that is the answer. *I* think (and Oscar seemed to agree) that it is something strange with the Combobox (it is a GetValue() from that that seems to cause the crash, at least that is what I can read from the output you gave).
About making a dist, I'll check if there is any nifty tool to make a .app that launches python. We probably have to make a installer for the PyXML package as well I think.
That would be good, yes.
/Ragnar
mattricks@lists.lysator.liu.se