Wrangled Python for a few hours. Luckily I came upon this site. I was pretty peeved about the seeming hatred of Mac in the Python Community. The guy who runs this site is a saint.
http://www.python.org/download/mac/
http://www.pythonmac.org/packages/py24-fat/index.html
All I wanted to do was make networkx work so I could make simple network digrams. I finally did it after I installed these from his site (yeah - I went a bit overboard - in case I wanted to play later):
Python 2.4.4
matplotlib
aggdraw
pygame
pysqlite
pyXML
scipy
wxPython2.8
PIL
numpy
I could never find a pyGTK for the mac - it is under development. I could run about 2/3 of the tests from matplotlib. But I did see a networkx graph displayed. Time for some popcorn and to watch a football game.
Gibberish notes below. Note that I went down a long path with 2.3 and came up short - so I just went to 2.4. I hope Mac OS 10.5 has 2.4 or later on it. Hey I should reboot to the other partition and check :)
sys.path.append('/Users/csev/python/modules/lib/python/')
http://docs.python.org/inst/inst.html
python setup.py install --home=/Users/csev/python/modules
vi ~/.pydistutils.cfg
curl -O http://peak.telecommunity.com/dist/ez_setup.py
mkdir /Users/csev/Library/Python/
mkdir /Users/csev/Library/Python/2.3
mkdir /Users/csev/Library/Python/2.3/site-packages/
python ez_setup.py
Downloading http://pypi.python.org/packages/2.3/s/setuptools/setuptools-0.6c7-py2.3.egg
Processing setuptools-0.6c7-py2.3.egg
creating /Volumes/UserHome/Users/csev/Library/Python/2.3/site-packages/setuptools-0.6c7-py2.3.egg
Extracting setuptools-0.6c7-py2.3.egg to /Volumes/UserHome/Users/csev/Library/Python/2.3/site-packages
Adding setuptools 0.6c7 to easy-install.pth file
Installing easy_install script to /Users/csev/bin
Installing easy_install-2.3 script to /Users/csev/bin
Installed /Volumes/UserHome/Users/csev/Library/Python/2.3/site-packages/setuptools-0.6c7-py2.3.egg
Processing dependencies for setuptools==0.6c7
Finished processing dependencies for setuptools==0.6c7
easy_install networkx
Searching for networkx
Reading http://pypi.python.org/simple/networkx/
Reading http://networkx.lanl.gov/
Reading http://networkx.lanl.gov/download
Reading http://sourceforge.net/project/showfiles.php?group_id=122233
Reading https://networkx.lanl.gov
Reading http://networkx.lanl.gov
Best match: networkx 0.35.1
Downloading http://pypi.python.org/packages/source/n/networkx/networkx-0.35.1.zip#md5=d2be068d7506fb1914a0fbf9074a4096
Processing networkx-0.35.1.zip
Running networkx-0.35.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-v7eD4D/networkx-0.35.1/egg-dist-tmp-IXIf_m
warning: no files found matching 'doc/examples/*.dat'
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '.svn' found anywhere in distribution
File "build/bdist.darwin-8.10.3-i386/egg/networkx/tests/benchmark.py", line 23
self.class_tests = dict((gc,'') for gc in graph_classes)
^
SyntaxError: invalid syntax
zip_safe flag not set; analyzing archive contents...
networkx.tests.test: module references __file__
File "/Volumes/UserHome/Users/csev/Library/Python/2.3/site-packages/networkx-0.35.1-py2.3.egg/networkx/tests/benchmark.py", line 23
self.class_tests = dict((gc,'') for gc in graph_classes)
^
SyntaxError: invalid syntax
Adding networkx 0.35.1 to easy-install.pth file
Installed /Volumes/UserHome/Users/csev/Library/Python/2.3/site-packages/networkx-0.35.1-py2.3.egg
Processing dependencies for networkx
Finished processing dependencies for networkx
tar xfv numpy-1.0.3.1.tar
cd numpy-1.0.3.1
ls
python setup.py install --home=/Volumes/UserHome/Users/csev/Library/Python/2.3/site-packages/
easy_install pygtk
===== Start Over Switch to 2.4 ======
si-csev-mbp:~ csev$ mkdir /Users/csev/Library/Python/2.4
si-csev-mbp:~ csev$ mkdir /Users/csev/Library/Python/2.4/site-packages
si-csev-mbp:~ csev$ python ez_setup.py
Downloading http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c7-py2.4.egg
Processing setuptools-0.6c7-py2.4.egg
creating /Volumes/UserHome/Users/csev/Library/Python/2.4/site-packages/setuptools-0.6c7-py2.4.egg
Extracting setuptools-0.6c7-py2.4.egg to /Volumes/UserHome/Users/csev/Library/Python/2.4/site-packages
Adding setuptools 0.6c7 to easy-install.pth file
Installing easy_install script to /Users/csev/bin
Installing easy_install-2.4 script to /Users/csev/bin
Installed /Volumes/UserHome/Users/csev/Library/Python/2.4/site-packages/setuptools-0.6c7-py2.4.egg
Processing dependencies for setuptools==0.6c7
Finished processing dependencies for setuptools==0.6c7
si-csev-mbp:~ csev$
si-csev-mbp:~ csev$ easy_install networkx
Searching for networkx
Reading http://pypi.python.org/simple/networkx/
Reading http://networkx.lanl.gov/
Reading http://networkx.lanl.gov/download
Reading http://sourceforge.net/project/showfiles.php?group_id=122233
Reading https://networkx.lanl.gov
Reading http://networkx.lanl.gov
Best match: networkx 0.35.1
Downloading http://pypi.python.org/packages/2.4/n/networkx/networkx-0.35.1-py2.4.egg#md5=a6382079e85eda3179879cea77751def
Processing networkx-0.35.1-py2.4.egg
creating /Volumes/UserHome/Users/csev/Library/Python/2.4/site-packages/networkx-0.35.1-py2.4.egg
Extracting networkx-0.35.1-py2.4.egg to /Volumes/UserHome/Users/csev/Library/Python/2.4/site-packages
Adding networkx 0.35.1 to easy-install.pth file
Installed /Volumes/UserHome/Users/csev/Library/Python/2.4/site-packages/networkx-0.35.1-py2.4.egg
Processing dependencies for networkx
Finished processing dependencies for networkx
easy_install pyGTK --- did not work.
I have been looking into Python for the last two weeks as I may be teaching Python next semester to Freshmen and Sophmore students to do data analysis. I have been searching and learning as I go. The message below was just plain fun to read - it is in some other community - so I could read it and let it go by :)
In general Python seems to be the best and worst of open source - there are tons of extenstions - but very little overall organization. There should be more things like:
Too bad there is no Mac version of the distro. Enough about that - on to the fun snarkiness! Interestingly the person complaining (at the bottom) is complaining much about the same as me - why is there not some quick and easy to use "get me started" distro?
------ Everyhing below this line is from the mail message -------
• Previous message: [Pythonmac-SIG] Mac User Python Newbies • Next message: [Pythonmac-SIG] Mac User Python Newbies • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] > Open source developers work on whatever they want or need to work on, > so the particular problems you have will get solved when someone with > the time, skill, and motivation to do so decides to scratch that itch. > If you want to speed this process along, you have a few options: > > - Persuade a suitable developer to work on the problem areas you have > (usually with money or a job) > - Fix the problems you have yourself (hey, at least you CAN) > - Deal with it as-is > > .. beggars can't be choosers :) > > -bob [ comment in the context of distribution packages but it applies > to the discussion of IDE chaos as well]. (1) In this business, beggars do choose, and they vote with their feet. If a beginner-friendly IDE is not an interesting problem for cognoscenti, the python foundation (or some such) should step in, or the python community should consider the possibility that the demographics of the development community is in danger of ceding the next generation...Posted by csev at 10:54 AM
I was in Barcelona and listening to Vijay Kumar speak and he referenced a Ghandi quote about the distribution of power - it very much spoke to me - here is the quote that Vijay got from a friend of his:
“Real swaraj (freedom) will come not by the acquisition of authority by a few but by the acquisition of capacity by all."
I could not find this quote anywhere on the web - the quote above may be a paraphrased version of this quote:
"I hope to demonstrate that the real swaraj will come not by the acquisition of
authority by a few, but by the acquisition of the capacity by all to resist
authority, when abused."
Here is a book for the above version of the quote (Thanks John).
While searching around I found this quote which I also liked:
Power is of two kinds. One is obtained by the fear of punishment and the other by acts of love. Power based on love is a thousand times more effective and permanent then the one derived from fear of punishment.
My Sakaiger is restless again - it wants to hunt snails in Barcelona.
I am off to speak along with Rob Able and Jeff Merriman at the ribbon cutting ceremony for the Open Campus Project of the Catalan government.
http://www.lafarga.cat/campus/eng/index.html
I hope to explore use of IMS Tool Interoperability in concert with OKI OSIDs to implement their architecture.
http://www.lafarga.cat/campus/eng/campusArch.pdf
Open Campus is developing an approach to tool building that will allow new tools to be built which will run in either Sakai or Moodle. Impressive and challenging at the same time - something that I find personally very exciting.
And I also intend to get in a meal of snails while I am there!