-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with scientific_startup in other interpreters from the one Spyder is running on #1322
Comments
From breed...@gmail.com on 2013-03-18T15:14:18Z Update 1: In case it matters I used --system-site-packages when I created my virtual environment. Update 2: I also run into problems when using EPD64 and virtualenv. Using the system level version of EPD64, things work fine. However, when I create a virtual environment using the EPD64 interpreter, I get the following errors from Spyder's console: Python 2.7.3 |CUSTOM| (default, Apr 12 2012, 11:14:05) |
From ccordoba12 on 2013-03-19T15:36:53Z breedlun: I can fix your second problem (i.e. the one with EPD) but for the first one I would like to ask you: Do you have matplotlib installed in your Apple distributed Python? If not, you have to deactivate the scietific_startup script @-Pierre: Should we enclose every import statement of scientific_startup in a try/except statement? As this issue shows, it's disturbing to find those ImportError's after changing interpreters. Cc: pierre.raybaut |
From brookinc...@gmail.com on 2013-03-19T17:56:39Z Great. I am glad to hear you can fix the problem with EPD64. I was using the virtualenv with the EPD64 interpreter for a while and found it worked fine for most tasks in spite of the string of errors listed above. However, I believe I got an error when I tried to use matplotlib. At that point, I just switched back to the interpreter that is bundled with Spyder. Hopefully, if you get rid of the errors above, I will be able to use virtualenv, EPD64, and matplotlib simultaneously. To answer your question, the Apple distributed python that comes bundled with OS X 10.8 (Mountain Lion) does not appear to have matplotlib installed. I probably should have realized that was the problem. I guess I should install matplotlib in my virtual environment. |
From ccordoba12 on 2013-03-25T09:42:37Z Summary: Mac app - Problems with scientific_startup in a virtualenv (was: Virtualenv and scientific_startup.py) |
From ccordoba12 on 2013-04-06T20:31:27Z Labels: Cat-Console |
From jed.lud...@gmail.com on 2013-04-29T15:08:37Z Labels: MS-v2.2.1 |
From jed.lud...@gmail.com on 2013-04-29T15:10:06Z Labels: -MS-v2.2 |
From ccordoba12 on 2013-06-28T05:46:33Z Labels: -MS-v2.2.1 MS-v2.3 |
From breed...@gmail.com on 2013-07-24T10:06:12Z Now that enthought has switched from EPD to Canopy, I am not sure this issue is very relevant anymore. |
From ccordoba12 on 2013-08-09T20:08:54Z The problem still exists for any external interpreter on Mac (not just EPD/Canopy) and I need to address it. |
From breed...@gmail.com on 2013-08-09T21:25:46Z Ahh. Ok. Then thank you in advance for addressing it. As it stands now, Spyder is far superior to Canopy's bare bones GUI, so I would really like to use Spyder (with the scientific start-up script) in conjunction with Canopy's python distribution. |
From breed...@gmail.com on 2013-09-22T10:25:13Z I just tried building Spyder from source (python setup.py install) inside a canopy venv. I then ran spyder, went into preferences, turned off the scientific_startup script, and restarted spyder. (I would really like to use the scientific start-up script, but I thought I would see what happens without it.) I get the text below in the console when I try to import numpy. When I run the canopy venv from the command line, I can import numpy just fine. Should this work in spyder, or is this hopeless? Enthought Canopy Python 2.7.3 | 64-bit | (default, Aug 8 2013, 05:37:06)
|
From breed...@gmail.com on 2013-09-23T20:20:36Z Update: I tried the same thing with pip and things worked better, but not perfectly. I could import numpy and sys, but I ran into trouble with matplotlib.pyplot. As you can see below, it complains that there is no module named PySide. Enthought Canopy Python 2.7.3 | 64-bit | (default, Aug 8 2013, 05:37:06)
|
From ccordoba12 on 2013-10-02T15:17:18Z Labels: -MS-v2.3 MS-v2.2.5 |
From ccordoba12 on 2013-10-02T15:20:21Z Summary: Problems with scientific_startup in other interpreters from the one Spyder is running on (was: Mac app - Problems with scientific_startup in a virtualenv) |
From ccordoba12 on 2013-10-03T07:41:10Z Blockedon: -spyderlib:1365 |
From ccordoba12 on 2013-10-03T07:43:18Z This issue was updated by revision 0be53f30eec3 .
Status: Fixed |
From breed...@gmail.com on 2013-03-17T13:12:23Z
Spyder Version: 2.2.0beta4
Python Version: 2.7.3
Qt Version: 4.8.2, PyQt4 (API v2) 4.9.4 on Darwin
What steps will reproduce the problem?
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/Applications/Spyder.app/Contents/Resources/lib/python2.7/spyderlib/scientific_startup.py", line 16, in
from pylab import * #analysis:ignore
ImportError: No module named pylab
Please provide any additional information below
.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1322
The text was updated successfully, but these errors were encountered: