canadabook2-2:superlists stephen.bell$ python3 functional_tests.py
Failed to import the site module
Your PYTHONPATH points to a site-packages dir for Python 2.x but you are running Python 3.x!
PYTHONPATH is currently: "/usr/local/lib/python2.7/site-packages:"
You should `unset PYTHONPATH` to fix this.
canadabook2-2:superlists stephen.bell$
--
You received this message because you are subscribed to the Google Groups "Obey the testing goat! Test-Driven Web Development with Python book" group.
To unsubscribe from this group and stop receiving emails from it, send an email to obey-the-testing-go...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
export PYTHONPATH="/usr/local/lib/python2.7/site-packages:$PYTHONPATH"
# Setting PATH for Python 3.4# The orginal version is saved in .bash_profile.pysavePATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"export PATH
open ~/.bash_profile
Did you ever find a fix for this Steve? I would try uninstalling + reinstalling python 3...
On 19 July 2014 03:22, Stephen Bell <stephe...@gmail.com> wrote:
Hi there. I love the book so far.I'm having a small problem with Python 2 and Python 3 playing nicely on my MacBook. Here's the error message when I try to do anything with Python 3 (this is from Chapter 2) :canadabook2-2:superlists stephen.bell$ python3 functional_tests.py
Failed to import the site module
Your PYTHONPATH points to a site-packages dir for Python 2.x but you are running Python 3.x!
PYTHONPATH is currently: "/usr/local/lib/python2.7/site-packages:"
You should `unset PYTHONPATH` to fix this.
canadabook2-2:superlists stephen.bell$
I can run "unset PYTHONPATH" as suggested, but I have to run it each time I restart terminal or open a new terminal window/tab. Is there an easy way to fix this more permanently (on a mac)?
--
You received this message because you are subscribed to the Google Groups "Obey the testing goat! Test-Driven Web Development with Python book" group.
To unsubscribe from this group and stop receiving emails from it, send an email to obey-the-testing-goat-book+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Harry.