On 03/22/2015 09:13 PM, Chris Edwards wrote:
Adrian,
_From Terminal - Python interpreter path below:_
>>> import sys
>>> sys.path
['',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spyder-1.1.3-py2.7.egg',
'/Library/Python/2.7/site-packages/PyMetis-2014.1-py2.7-macosx-10.10-intel.egg',
'/Library/Python/2.7/site-packages/networkx-1.9.1-py2.7.egg',
'/Library/Python/2.7/site-packages/decorator-3.4.0-py2.7.egg',
'/Library/Python/2.7/site-packages/metis-0.1a-py2.7.egg',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages',
'/Library/Python/2.7/site-packages']
>>>
_From Spyder - Python Console path below:_
>>> sys.path
['',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell',
'/Library/Python/2.7/site-packages/networkx-1.9.1-py2.7.egg',
'/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spyder-1.1.3-py2.7.egg',
'/Users/cbhe/scripts', '/Users/cbhe/Documents/Python User Files
2015/Development Code',
'/Applications/Spyder-Py2.app/Contents/Resources',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python27.zip',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/plat-darwin',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/plat-mac',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/plat-mac/lib-scriptpackages',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/lib-tk',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/lib-old',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/lib-dynload',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/site-packages.zip',
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/site-packages']
>>>
_From Spyder - When I try to open an IPython Console I get:_
Can you open IPython from the OS X command line?
An error ocurred while starting the kernel
I don’t understand why this error should suddenly appear. I uninstalled
Spyder and then reinstalled it from the .dmg download but still got the
same error.
From the above it seems clear that the two paths are different. Now,
how does one (hopefully easily) correct the Spyder system path??
There are questions to be answered before we get that point:
1) Where is:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spyder-1.1.3-py2.7.egg'
coming from?
2) In the Spyder console path is:
'/Library/Python/2.7/site-packages/networkx-1.9.1-py2.7.egg',
So are you sure you cannot import it into the Spyder Python console?
3) What is in ?:
'/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/site-packages'
4) Again, how exactly are you installing the system Python?
Chris
--
Adrian Klaver
[email protected]
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.