Trouble using grokproject egg with Python2.5 on OS X Leopard and virtualenv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grok |
Fix Released
|
Low
|
Brandon Rhodes | ||
1.0 |
Fix Released
|
Low
|
Brandon Rhodes |
Bug Description
I was able to recreate the problem, once but then not again. It might be my limited understanding of virtualenv and buildout currently, as it is possible I did not remove the correct item to fully test this. I will report that on python2.4.4 it worked flawlessly, and I had never installed paste in python2.4.4. Clearly highlighting the version of python in the tutorial and possibly including information about using virtual env, could be useful. I forget if I noticed this or not in the tutorial.
I have another OS X machine that has a fresh Leopard install that I will test this on in the next couple of days, so I can be 100% sure, it isn't something about my environment. Again, here was the most recent traceback:
[ngift@
New python executable in groknoahgift/
Installing setuptools.
[ngift@
[ngift@
total 0
drwxr-xr-x 7 ngift staff 238 Jan 3 09:46 bin
drwxr-xr-x 3 ngift staff 102 Jan 3 09:46 lib
[ngift@
Searching for grokproject
Best match: grokproject 0.6
Processing grokproject-
Adding grokproject 0.6 to easy-install.pth file
Installing grokproject script to /Users/
Using /Library/
Processing dependencies for grokproject
Finished processing dependencies for grokproject
[ngift@
/Users/
[ngift@
total 0
drwxr-xr-x 8 ngift staff 272 Jan 3 09:46 bin
drwxr-xr-x 3 ngift staff 102 Jan 3 09:46 lib
[ngift@
Traceback (most recent call last):
File "bin/grokproject", line 5, in <module>
from pkg_resources import load_entry_point
File "build/
File "build/
File "build/
pkg_resources.
[ngift@
On Leopard, did you use Python 2.5 with Grok? We don't officially support that combination yet, though I don't see how that could lead to this error.
Yes, I was using Python2.5. One thing to note for Leopard users, is that it is non-trivial to install Python 2.4.4, as Python 2.5.1 is the default. I believe I was most successful by using macports, as there were problems getting python2.4 to compile properly. Python2.4 gets installed here with macports:
/opt/local/
So to summarize, I had no problems installing Grok using the supported version of Python2.4.4 via macports.
Changed in grok: | |
assignee: | nobody → brandon-rhodes |
milestone: | none → 1.0 |
Any results of more testing? It'd be good if Grok worked out of the box with Python 2.5 on Mac OS X.
Did you create the virtualenv using --no-site-packages? It's my understand this is required on the mac.