CustomComputingGroup / MLO

Machine Learning Optimizer
2 stars 3 forks source link

Finally I got my Mac work for mlo #20

Open icltc opened 11 years ago

icltc commented 11 years ago

LOL, as the title says, I won the battle.......it tooks me 2 weeks... finally it turn out to be a simplest way for getting over...

It's a long long battle for me to get the mac work for mlo, I think it is because the complicated structure in Mac os in terms of the preinstalled python and the user installed one. I'd like to share a few issues of that...

  1. the first is the wxpython, I find two version of wxpython in the download page: wxPython2.9-osx-docs-demos-carbon-py2.7
    wxPython2.9-osx-docs-demos-cocoa-py2.7
    I random picked the first one... it didn't work... come on... I uninstalled it... and installed again, the same wrong message... I have no idea... it is just a package....why... finally I got the answer from Milan (Thank you very much, you saved me...), he said make sure install the version of cocoa... Thanks God...
  2. the numpy is incompatible to preinstalled python in Mac, that's tricky... I still wondering why.... it turn out to a waste of my whole 2 days for settle this....
  3. when I installed a new python and got the new numpy-1.8.0, scipy-0.12.0... packages work for the python, then I run the mlo, it reports "unable to import numpy.array.multiarray" ... I check the website, there are a few but none of them successful settle this... I lost again, then I find one says it probably because the wrong version of the numpy, then I opened the terminal and typed numpy.version.version, numpy-1.6.1.....OMG...what hell is that...where it come from... I deleted my numpy again and reinstalled, still the same... I got angry about that, I searched the whole file system with name of numpy-1.6.1... I found .... it is from system installed python...O M G, why I use user installed python, it import the package from system installed python... I "rm -rf" it...it disappeared... I opened the terminal again and type numpy.version.version, turn out to be 1.6.1...."F....word", I was astonished, I search the whole computer with numpy 1.6.1 again.... nothing... so what I met... Ghost???? I abandoned it... got a 10 minutes break, watched a football game bt Manchester City and Liverpool, I saw the player falling down on the ground and got up quickly... that's a man... Why I gave up so easily. I opened the terminal again, and search numpy-1.6... I found nothing but 1.6.2, I type python and then import numpy then numpy.version( this time I want to see where this version file came from), I found it, I found it, it is again from system installed.... OMG, I deleted it quickly.... and type numpy.version.version... I cried....it prints 1.8.0, that's exactly I want, then I run the mlo, works.......

that's a long long battle, mac os kills me....but I survived...

I put an issue here and hope everybody else who want to use Mac for MLO see this issue before start....

Yours, Tianchi

mk306 commented 11 years ago

lol would be nice if you wrote a proper guide to use mac os!!! Probably few users would appreciate it :)