Re: [spyder] Spyder failed to load new modules.

6,224 views
Skip to first unread message

Doug Redden

unread,
Feb 9, 2013, 4:01:59 AM2/9/13
to spyd...@googlegroups.com

Brain,

Sounds as though the 'rope' code completion module is not finding your imported modules. This issue is being worked on. Have a look at this discussion (see link below).

http://code.google.com/p/spyderlib/issues/detail?id=1213

Doug

I have just updated the Python installation of my Mac OS 10.8.2 to Python 2.7.3, I have pip installed, and have installed a few other modules with it.  Everything works fine under IDLE and IDLEX.

I have been trying to work with Scipy and Numpy, knowing that Spyder is pretty good at this, so I have installed Sypder as well.
However, Sypder failed to recognize any custom modules I have installed with pip earlier.  I did some research, and know that I need to add the path of the module into Sypder->PYTHONPATH Manager, which I did.
For example, I have installed boto in "/Library/Python/2.7/site-packages/boto", and I have exactly this line in PYTHONPATH Manager...
But when I go to python console under Spyder, I also fail to run "import boto"....so I did one step further and manually do a sys.path.append("/Library/Python/2.7/site-packages/boto")...it still didn't see the module.

Any input will be highly appreciated.

Brain

--
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 spyderlib+...@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Visit this group at http://groups.google.com/group/spyderlib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Pierre Raybaut

unread,
Feb 9, 2013, 7:57:50 AM2/9/13
to spyd...@googlegroups.com
I don't know about your other custom modules but regarding the example
of "boto", this is the wrong directory level: you should add
"/Library/Python/2.7/site-packages" to PYTHONPATH (via the environment
variable or Spyder's PYTHONPATH manager) instead of
"/Library/Python/2.7/site-packages/boto".

HTH,
-Pierre

2013/2/9 thefatbrain <mart...@gmail.com>:

thefatbrain

unread,
Feb 9, 2013, 10:49:50 AM2/9/13
to spyd...@googlegroups.com
Thanks Pierre.
it makes sense.
And after added a new entry as you suggested into PYTHONPATH , new error pops-up when hitting the below line:

=========================
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/boto/__init__.py", line 34, in <module>
    
ImportError: No module named config
=========================

What is the path that still has something missing?

Pierre Raybaut於 2013年2月9日星期六UTC+8下午8時57分50秒寫道:

Carlos Córdoba

unread,
Feb 9, 2013, 1:44:13 PM2/9/13
to spyd...@googlegroups.com
Since it seems you're using a different interpreter than the one that comes with Spyder, you need to change it instead of just adding things to PYTHONPATH.

To do that, you have to go:

Tools > Preferences > Console > Advanced Settings > Python Executable

and select the path of your interpreter.

Cheers,
Carlos

El 09/02/13 10:49, thefatbrain escribió:

thefatbrain

unread,
Feb 9, 2013, 8:27:59 PM2/9/13
to spyd...@googlegroups.com
HI Carlos,
Yes I did.  I changed it to the slighty newer python installed on Mac OS rather than the one under Spyder.app.
I did that because I thought its the interpreter that created the original problem..maybe i will take your advice to swtich back and have a try again.

Thanks.
BRain

Carlos Córdoba於 2013年2月10日星期日UTC+8上午2時44分13秒寫道:

thefatbrain

unread,
Feb 9, 2013, 8:51:08 PM2/9/13
to spyd...@googlegroups.com
Hi Folks,
I did now change the interpreter back to the Spyder default "/Applications/Spyder.app/Contents/MacOS/python"...same error about missing the config  module
And earlier on I was setting it to IDLEX interpreter at "/Library/Frameworks/Python.framework/Versions/2.7/bin/python"...also the same error..
Did I do anything radically incorrect?


Brain.

Carlos Córdoba

unread,
Feb 9, 2013, 9:03:50 PM2/9/13
to spyd...@googlegroups.com
Weird. You should leave your interpreter at your IDLEX path and eliminate your additions to PYTHONPATH because they are not needed.

Could you import boto without problems in IDLEX? It would seem an error with your installation.

Cheers,
Carlos

El 09/02/13 20:51, thefatbrain escribió:

Martin Yan

unread,
Feb 9, 2013, 9:13:36 PM2/9/13
to spyd...@googlegroups.com

It works perfectly with IDLEX.  Before my addition to PYTHONPATH I couldn't even import boto.  After I have taken Pierre advice to add the right path into PYTHONPATH, the boto  error message is gone, but comes a new error about logging.config

Martin

thefatbrain

unread,
Feb 11, 2013, 3:47:45 AM2/11/13
to spyd...@googlegroups.com
Just want to update that I resolved the problem by adding line by line all the necessary path (under IDLE) into PYTHONPATH of SPYDER...

thefatbrain於 2013年2月9日星期六UTC+8下午3時37分03秒寫道:

Carlos Córdoba

unread,
Feb 11, 2013, 7:49:10 AM2/11/13
to spyd...@googlegroups.com
This is the problem I should have solved on Issue 1226. Do you have the latest Spyder version: 2.2beta2?

El 11/02/13 03:47, thefatbrain escribió:
--

Martin Yan

unread,
Feb 11, 2013, 9:46:10 AM2/11/13
to spyd...@googlegroups.com
I m on Spyder 2.2.0dev

martin

Carlos Córdoba

unread,
Feb 11, 2013, 10:56:48 AM2/11/13
to spyd...@googlegroups.com
I see, please uninstall our app and download our new DMG, which (as I mentioned) has a fix for this problem. Then you shouldn't need to add things to your PYTHONPATH to get boto working.

This is going to be a problem for our mac users, because with every release they'd have to download a new DMG. I'll see if we can do something about it.

El 11/02/13 09:46, Martin Yan escribió:

Martin Yan

unread,
Feb 11, 2013, 11:34:21 AM2/11/13
to spyd...@googlegroups.com
Carlos,
I have just installed your recommended version of Spyder.
I keep using the default python interpreter as in "/Applications/Spyder.app/Contents/MacOS/python" it seems all the problem i encountered earlier remain the same.

1) I have to manually added the path of boto package into PYTHONPATH…
2) After recognising the boto path, it also report the logging.conf error as before.

So I am now manually adding all the path back into PYTHONPATH again.

Brain 

Carlos Córdoba

unread,
Feb 11, 2013, 12:05:54 PM2/11/13
to spyd...@googlegroups.com
Thanks for downloading the new app, and for your patience with all this.

The last thing for you to do is really change the default interpreter to make it point to:

"/Library/Frameworks/Python.framework/Versions/2.7/bin/python"

El 11/02/13 11:34, Martin Yan escribió:

thefatbrain

unread,
Feb 12, 2013, 4:26:37 AM2/12/13
to spyd...@googlegroups.com
HI Carlos,

Thanks for your patience and help.
I did exactly what you suggested, and you are right.  Now I can inherit whatever modules has been installed by pip outside of the spyder environment.  But the console shows that it cannot find pylab:

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
ImportError: No module named pylab

..which I believe can be resolved by adding the pylab path into PYTHONPATH....?

Brain

Martin Yan

unread,
Feb 12, 2013, 4:49:04 AM2/12/13
to spyd...@googlegroups.com
And when I just tried to add pylab path into the PYTHONPATH, seems like I cannot drill into 'Applications/spyder.app as it has been grey out…
Any clue?


thefatbrain

unread,
Feb 16, 2013, 12:36:47 AM2/16/13
to spyd...@googlegroups.com
HI Carlos,
Wondering if you have further insight into this...I am still stick by not being able to add path into PYTHONPATH for things under xxx.app directory.

Brain

thefatbrain於 2013年2月12日星期二UTC+8下午5時49分04秒寫道:
And when I just tried to add pylab path into the PYTHONPATH, seems like I cannot drill into 'Applications/spyder.app as it has been grey out…
Any clue?

On 12 Feb, 2013, at 5:26 PM, thefatbrain <mart...@gmail.com> wrote:

HI Carlos,

Thanks for your patience and help.
I did exactly what you suggested, and you are right.  Now I can inherit whatever modules has been installed by pip outside of the spyder environment.  But the console shows that it cannot find pylab:

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
ImportError: No module named pylab

..which I believe can be resolved by adding the pylab path into PYTHONPATH....?

Brain


thefatbrain於 2013年2月9日星期六UTC+8下午3時37分03秒寫道:
I have just updated the Python installation of my Mac OS 10.8.2 to Python 2.7.3, I have pip installed, and have installed a few other modules with it.  Everything works fine under IDLE and IDLEX.

I have been trying to work with Scipy and Numpy, knowing that Spyder is pretty good at this, so I have installed Sypder as well.
However, Sypder failed to recognize any custom modules I have installed with pip earlier.  I did some research, and know that I need to add the path of the module into Sypder->PYTHONPATH Manager, which I did.
For example, I have installed boto in "/Library/Python/2.7/site-packages/boto", and I have exactly this line in PYTHONPATH Manager...
But when I go to python console under Spyder, I also fail to run "import boto"....so I did one step further and manually do a sys.path.append("/Library/Python/2.7/site-packages/boto")...it still didn't see the module.

Any input will be highly appreciated.

Brain

--
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 spyderlib+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages