Sandeep | 2 May 05:28 2014
Picon

v2.2.5 Error with running Spyder from shortcut launcher

Hi 

I am running spyder2.2.5 on Linux Mint 16 KDE installed via spyder_2.2.5+dfsg-1_all.deb. I am facing a strange error.

If I run spyder via typing in the command from the terminal. Spyder runs fine.

Python 2.7.5+ (default, Sep 19 2013, 13:48:49) 
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> runfile('/opt/gurobi562/linux64/examples/python/mip1.py', wdir=r'/opt/gurobi562/linux64/examples/python')
Optimize a model with 2 rows, 3 columns and 5 nonzeros
Found heuristic solution: objective 2
Presolve removed 2 rows and 3 columns
Presolve time: 0.00s

Explored 0 nodes (0 simplex iterations) in 0.00 seconds
Thread count was 1 (of 4 available processors)

Optimal solution found (tolerance 1.00e-04)
Best objective 3.000000000000e+00, best bound 3.000000000000e+00, gap 0.0%
x 1
y 0
z 1
Obj: 3
>>> 

However if I run via a shortcut created from the Linux custom shortcuts menu, I get a package loading error

Python 2.7.5+ (default, Sep 19 2013, 13:48:49) 
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> runfile('/opt/gurobi562/linux64/examples/python/mip1.py', wdir=r'/opt/gurobi562/linux64/examples/python')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 540, in runfile
    execfile(filename, namespace)
  File "/opt/gurobi562/linux64/examples/python/mip1.py", line 13, in <module>
    from gurobipy import *
ImportError: libgurobi56.so: cannot open shared object file: No such file or directory
>>> 

I have ensured that there is only one installation of spyder by uninstalling, checking and doing a clean reinstall, still I have the same problem

Not sure if it is an issue with spyder or with my linux installation Any ideas?

Sandeep

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Yoav Romach | 29 Apr 18:06 2014
Picon

Spyder loading with Canopy icon (Windows)

Hey,

I've installed Enthought Canopy and then Spyder.
It's a small thing, but when launching Spyder, it starts with Canopy Icon 
(PyLab to be exact), is it possible to make it use Spyder's icon?

Thanks!

Yoav Romach | 29 Apr 18:02 2014
Picon

Running spyder_win_post_install.py fails

Hello,

I'm just starting to use Spyder (and python for that matter).
I've Installed Enthought Canopy for the modules and then Spyder. (I prefer Enthought because the project I'm joining is using it).
I've got it to work actually, than decided to run spyder_win_post_install.py in order to create the start menu programs.
So I'm writing "python spyder_win_post_install.py -install" in the terminal, but I get an error "NameError: global name 'get_special_folder_path' is not defined".

I couldn't figure out how to run it :/
From what I understood that function is part of the distutils module and it should be auto imported when running a post-install script, but Maybe I'm confusing stuff...

Thanks!

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Wanderson Knupp | 1 May 17:15 2014
Picon

Invocando Spyder

Olá sou novo em Spyder! tinha instalado o python 3 em meu Windows, agora instalei o spyder-2.2.5 win-amd64.exe 
Porem não sei como invocar a plataforma do spyder. Como faço isso ? desde já agradeço.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
A L | 25 Apr 21:52 2014
Picon

Spyder doesn't see all the system fonts (Windows 7 64 bit)

Hi all.
I recently installed, for use in scientific computing, the latest WinPython distribution on my PC . It includes Spyder 2.3.0 beta 2, and I am beginning to familiarize with it, its features and interface.
One thing I noticed is that in the Preferences for the Editor, the program only allows a quite limited choice of fonts, it seems not able to see all those installed on my system. Does Spyder only allows using fixed width fonts, or is there a way to include all the TTF fonts present in the Windows directory?
Thanks, and congratulations for the good work.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Brynjar Smári Bjarnason | 25 Apr 12:03 2014

Debugging source module while older version installed

Hi.

I am developing a python module and a script that uses that module. I have a version of the module installed using
$ python setup.py --user install

so the egg is in my local site-packages and the script is in my local bin folder.

I want to keep that version installed as I need to run it occasionally but I want to be able to run the source one in Spyder and debug / change on the fly. 

So in Spyder I open the source script file which imports the module, and run it. I can then debug the script but when I step into the module I go to the egg in my local site-packages, not the source module.

I tried setting the PYTHONPATH variable in Spyder to the source of my module but when I run
$ sys.path

I get it in the middle of the list, after the path to the local site-package.

Any ideas on how to keep old version installed while developing a new one?

Thanks in advance

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Ronald Modesitt | 24 Apr 03:38 2014
Picon

Inserting ascii character codes in Spyder editor

For documentation purposes I would like to be able to add some ascii 
characters for things like the square root symbol, exponential symbol and 
so forth. Is that possible in Spyder 2.2.5?
Thanks
Ron

Joel Östblom | 21 Apr 20:25 2014
Picon

Disable Alt for horizontal scrolling and enable an ipython hotkey

Hi,

First, thanks for all the great work on spyder, it is truly an amazing IDE for python! I just installed the latest beta for 2.3 and it works great, I like the design changes to the object inspector, makes it feel more inviting :p

A couple of questions:
1. I read earlier that a shortcut key was planned to be introduced for switching to the ipython console, but I can't find this in the current beta, will it be added before the final release? I think it is a big part of the work flow to switch between the editor and ipython console and F9 is not always convenient.

2. Is there any way to disable the Alt key binding to horizontal scrolling? I have Alt + PageUp bound to scroll half a page in my system, but in spyder that becomes half a page horizontally. Would be great if there were options to control the scroll keybindings.


Again, thanks for your work on spyder.
Joel

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Hermano Cabral | 20 Apr 00:34 2014
Picon

Spyder mistaking 'if' statement within a multi-line list comprehension for a regular 'if' when inserting new lines

Hi there,

I've hit a little issue when writing a multiline statement in spyder and I was wondering if this is something undesirable (i.e., a bug) or if I'm doing something wrong.  It happened when I was editing a longer than usual list comprehension and decided to break it up in multiple lines to stay under the 78-characters limit.  I have simplified the code to this.  Suppose you have the following lines:

a = [n for n in range(100)
     if n != 0
     and n % 5 == 0]


and you want to add yet another condition after the second line, like this:

a = [n for n in range(100)
     if n != 0
     and n % 2 == 0   #(<-- new condition)
     and n % 5 == 0]

What happens is that if you hit return at the end of the second line, the editor inserts a colon as the last character and opens up a new line with an extra indentation. That is, what I get just after hitting return is

a = [n for n in range(100)
     if n != 0:  #(<-- note the colon)
          _ #(<-- blinking cursor after the extra indentation)
     and n % 5 == 0]


I have the 'automatic insertion of colons...' option set in my preferences. If it is not set, this doesn't happen.

This may look like a contrived example, but it actually happened to me in a situation where I already had 3 levels of indentation and the variables all had somewhat long names.  Nevertheless, I have noticed it only recently, after more a year of heavy spyder use.

I have tested against versions 2.3.0beta4, 2.2.5 and 2.2.1 (this last one from Kubuntu 13.10).  Trying to report an issue from withing spyder gives the following information:

Spyder Version: 2.3.0beta4
Python Version: 2.7.5+
Qt Version : 4.8.4, PySide 1.1.2 on Linux
IPython >=0.13 : 0.13.2 (OK)
pyflakes >=0.5.0: 0.7.3 (OK)
pep8 >=0.6 : 1.4.6 (OK)
pygments >=1.6 : 1.6 (OK)
sphinx >=0.6.6 : 1.1.3 (OK)
psutil >=0.3 : 0.6.1 (OK)
rope >=0.9.2 : 0.9.2 (OK)
matplotlib >=1.0: 1.2.1 (OK)
sympy >=0.7.0 : None (NOK)
pylint >=0.25 : 0.26.0 (OK)


Is this really a bug?  Should I open an issue?  Thanks for your attention.

Hermano

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Taketaro Watanabe | 16 Apr 23:20 2014
Picon

Differential equation

How can I solve differential equations?

Andreas | 11 Apr 18:08 2014
Picon

Autocompletion of pyOpenCL

Hi everyone,

I am having some problems with the autocompletion in Spyder when using pyOpenCL. It seems that many things are missing and only a small sub-set of options are shown. For example:

import pyopencl as cl
cl.get_platforms()

the get_platforms() function is not shown in the autocompletion menu.

Any ideas why and how I can address that?

Best regards
Andi

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Gmane