Just to further elaborate the trouble I'm having with libraries, here's 
what I tried for pytables.

I looked up the path of the tables library on the python interpreter in the 
terminal:
>>> import tables
>>> tables
<module 'tables' from 
'/Library/Python/2.7/site-packages/tables-2.4.0-py2.7-macosx-10.8-intel.egg/tables/__init__.pyc'>

Then I added exactly this path in the path setup window in Spyder and 
restarted the program.
This is what I got at the startup:

Traceback (most recent call last):
  File 
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/scientific_startup.py",
 
line 16, in <module>
    from pylab import *  #analysis:ignore
  File "pylab.pyc", line 1, in <module>
  File 
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/pylab.py",
 
line 222, in <module>
    from matplotlib import mpl  # pulls in most modules
  File 
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/mpl.py", 
line 11, in <module>
    from matplotlib import finance
  File 
"/Applications/Spyder.app/Contents/Resources/lib/python2.7/matplotlib/finance.py",
 
line 8, in <module>
    from urllib2 import urlopen
  File "urllib2.pyc", line 94, in <module>
  File "httplib.pyc", line 69, in <module>
  File 
"/Library/Python/2.7/site-packages/tables-2.4.0-py2.7-macosx-10.8-intel.egg/tables/array.py",
 
line 15, in <module>
    from tables import hdf5Extension
ImportError: No module named tables




On Thursday, May 9, 2013 11:01:38 AM UTC-4, [email protected] wrote:
>
> Hi,
> I've just started using Spyder and I've been having issues configuring my 
> libraries. I'm on Mountain Lion osx. 
> The interpreters I invoke on terminal see and import the packages just 
> fine. But I couldn't get Spyder to see some of these packages (under the 
> site-packages directory of python). 
>
> Some packages are visible to Spyder (I'm guessing those are the ones that 
> I installed using pip?), but I couldn't figure out a failsafe way to import 
> the rest.
> I tried adding the entire site-packages folder, which caused the 
> interpreter in Spyder to crash at startup:
>
> Traceback (most recent call last):
>   File "/Library/Python/2.7/site-packages/site.py", line 74, in <module>
>     __boot()
>   File "/Library/Python/2.7/site-packages/site.py", line 2, in __boot
>     import sys, os, os.path
> ImportError: No module named os
>
>
> Then I tried adding the path to each library separately, which also did 
> not work (the usual "no module named..." error).
> The libraries I've had this problem so far are Pymatlab and pytables (i.e. 
> tables). 
>
> What is the correct way of making sure Spyder uses the same libraries as 
> the system's python interpreter? I looked at the documentation but could 
> not find the relevant chapter.
>
> Thanks,
> Ali
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to