aklaver | 8 Feb 2013 17:42
Picon

Layout

How does one go about getting the layout shown here:
http://wiki.spyderlib.googlecode.com/hg/Screenshots/arrangement-02.png

David Verelst | 8 Feb 2013 15:34
Picon

:Uncaught exception

Hi all,

Today I noticed a strange trace back in the internal console. I have never seen it before. Spyder just keeps on working without any problems. I have no idea how to replicate this, since I wasn't doing anything at that moment. I had only one Ipython kernel running with one connected ipython console. There is no python external console open.

I have no idea if this is anything useful...but here goes:

Spyder 2.2.0beta2 on Python 2.7.3 [Linux]
Inspect Spyder internals:
  spy.app, spy.window, dir(spy)
>>>ERROR:root:Uncaught exception, closing connection.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 414, in _run_callback
    callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/IPython/zmq/kernelmanager.py", line 178, in _handle_recv
    ident,smsg = self.session.feed_identities(msg)
  File "/usr/lib/python2.7/site-packages/IPython/zmq/session.py", line 673, in feed_identities
    idx = msg_list.index(DELIM)
ValueError: '<IDS|MSG>' is not in list
ERROR:root:Uncaught exception, closing connection.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 440, in _handle_events
    self._handle_recv()
  File "/usr/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 472, in _handle_recv
    self._run_callback(callback, msg)
  File "/usr/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 414, in _run_callback
    callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/IPython/zmq/kernelmanager.py", line 178, in _handle_recv
    ident,smsg = self.session.feed_identities(msg)
  File "/usr/lib/python2.7/site-packages/IPython/zmq/session.py", line 673, in feed_identities
    idx = msg_list.index(DELIM)
ValueError: '<IDS|MSG>' is not in list
ERROR:root:Exception in I/O handler for fd <zmq.core.socket.Socket object at 0x7f8ad003f668>
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/zmq/eventloop/ioloop.py", line 346, in start
    self._handlers[fd](fd, events)
  File "/usr/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 440, in _handle_events
    self._handle_recv()
  File "/usr/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 472, in _handle_recv
    self._run_callback(callback, msg)
  File "/usr/lib/python2.7/site-packages/zmq/eventloop/zmqstream.py", line 414, in _run_callback
    callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/IPython/zmq/kernelmanager.py", line 178, in _handle_recv
    ident,smsg = self.session.feed_identities(msg)
  File "/usr/lib/python2.7/site-packages/IPython/zmq/session.py", line 673, in feed_identities
    idx = msg_list.index(DELIM)
ValueError: '<IDS|MSG>' is not in list

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Robin Wilson | 7 Feb 2013 17:27

Load a new array into ArrayEditorWidget

Hi,


I'm trying to use the ArrayEditorWidget from spyderlib in my own software. I've got it working fairly well so far, and it has been really helpful. However, I've got one problem: I can't seem to work out how to replace the array with a new one. I have a single window application which has an ArrayEditorWidget, as well as various buttons and other widgets. I want to get one of these buttons to load a new array into the ArrayEditorWidget and update the display so that it is showing the new array. How should I do this?

Replacing the data property of the ArrayEditorWidget doesn't seem to work properly, but I can't find any methods that I can call to do this. Is there a way to do this? Alternatively, if the array associated with an ArrayEditorWidget can't be changed while the Widget is open then is there a way to destroy the widget and recreate it, without having to close the application?

Best regards,

Robin Wilson
www.rtwilson.com/academic

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
cpelley.pub | 6 Feb 2013 18:23
Picon

spyder fails to start (pyside gui)

There appears to be an issue with fonts on trying to run spyder on my RedHat 6 enterprise edition system:
I created an "issue" but not sure where to raise this to ask whether this is a known issue or not.

Warning: None of the following fonts is installed: ['Monospace', 'DejaVu Sans Mono', 'Consolas', 'Monaco', 'Bitstream Vera Sans Mono', 'Andale Mono', 'Liberation Mono', 'Courier New', 'Courier', 'monospace', 'Fixed', 'Terminal'] Warning: None of the following fonts is installed: ['Monospace', 'DejaVu Sans Mono', 'Consolas', 'Monaco', 'Bitstream Vera Sans Mono', 'Andale Mono', 'Liberation Mono', 'Courier New', 'Courier', 'monospace', 'Fixed', 'Terminal'] Warning: None of the following fonts is installed: ['Monospace', 'DejaVu Sans Mono', 'Consolas', 'Monaco', 'Bitstream Vera Sans Mono', 'Andale Mono', 'Liberation Mono', 'Courier New', 'Courier', 'monospace', 'Fixed', 'Terminal'] Traceback (most recent call last): File "spyder.py", line 2001, in main mainwindow = run_spyder(app, options) File "spyder.py", line 1913, in run_spyder main.setup() File "spyder.py", line 649, in setup self.workingdirectory = WorkingDirectory(self, self.init_workdir) File "/home/h05/cpelley/.local/lib/python2.7/site-packages/spyderlib/plugins/workingdirectory.py", line 196, in __init__ wdhistory = self.load_wdhistory( workdir ) File "/home/h05/cpelley/.local/lib/python2.7/site-packages/spyderlib/plugins/workingdirectory.py", line 278, in load_wdhistory wdhistory = [name for name in wdhistory if os.path.isdir(name)] File "/usr/local/sci/lib/python2.7/genericpath.py", line 41, in isdir st = os.stat(s)
Any help will be greatly appreciated :)
Thank you.

Carwyn

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Neal Becker | 6 Feb 2013 17:36
Picon

How to debug stuck in a loop

How can I use spyder for a program stuck in a loop?

I notice I can run under debug, and then 'run' at pdb prompt.  When it's stuck, 
I can Ctrl-C in the debug window.  I see a line in my code.  But I can't 
continue at this point - it will just hit the exception (from the \C-c 
interrupt).

Christian Münker | 5 Feb 2013 11:48
Picon
Favicon

Spyder does not start due to Missing PyQt4.QtWebkit Library

Hi,

first of all a big thanx to the developers for all the bugfixes and improvements you have put into Spyder over the last months!

I would like to contribute at least a little bit by testing beta releases, however, so far I have not been successful:

Currently, I have installed both python(x,y) 2.7.3.1 and WinPython 2.7.3.2 on a 32 bit Windows7 machine, both in their default install.

Upgrading Spyder by deinstalling and installing via WinPython's package manager works, however obviously only with proper installers like spyder-2.1.13-win32. [However, Spyder no longer starts up from the Python(x,y) environment.]

Running Spyder from source using "python bootstrap.py" fails in QtWebKit.py at "from PyQt4.QtWebKit import * " with "ImportError DLL load failed". I get the same error when I install from source using "python setup.py install" (no warnings) and executing spyder.bat subsequently.

A quick check showed that I've got C:\Python27\Lib\site-packages\PyQt4\QtWebKit4.dll and QtWebKit.pyd on my system.

Any ideas that could help me?

Best regards,

Christian

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Christian Münker | 5 Feb 2013 13:39
Picon
Favicon

Error PyQt4.QtWebKit DLL not found when running Spyder from source

Hi all,

first of all a warm thank you and congratulations to the developers team for all the bugfixes and improvements to Spyder during the last months! It is becoming the perfect working environment for me to do digital signal processing!

I would like to contribute at least a little and test beta versions of spyder under python(x,y) 2.7.3.1 and WinPython 2.7.3.2 on Window7 32 bit machine. So far I haven't been successful:

Running from source via python bootstrap.py or installing Spyder via python setup.py install (no warnings or errors) and executing spyder.bat always yields the following error:


D:\Daten\zip\Design_Tools\python\spyder-2.2.0beta2\bootstrap.py in <module>()
     71 # Importing Spyder (among other things, this has the effect of setting the
     72 # QT_API environment variable if this has not yet been done just above)
---> 73 from spyderlib import spyder, get_versions
     74 versions = get_versions()
     75 print("03. Imported Spyder %s (Qt %s via %s %s)" % \

...


D:\Daten\zip\Design_Tools\python\spyder-2.2.0beta2\spyderlib\qt\QtWebKit.py in <module>()
      8
      9 if os.environ['QT_API'] == 'pyqt':
---> 10     from PyQt4.QtWebKit import *  # analysis:ignore
     11 else:
     12     from PySide.QtWebKit import *  # analysis:ignore

ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

I verified that C:\Python27\Lib\site-packages\PyQt4\QtWebKit4.dll is on my system.

Spyder 2.1.13 (WinPython) launches without problems, deinstallation and installation via the packet manager went smoothly.

Any ideas that could help me?

Best regards,

Christian

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Sergey Slizovskiy | 4 Feb 2013 19:19
Picon

How to change python interpreter path?

Hello!

  I have installed Anaconda package, so, I have now several instances of python.  From terminal it's the anaconda one that is run,
but Spider still runs my older Ubuntu 11.10 Python from the root folder.  How can I customize the interpreter to use?
Best wishes,
Sergey

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Jeff Webster | 4 Feb 2013 18:13
Picon

Spyder can't locate shared objects... LD_LIBRARY_PATH?

The dev environment is Ubuntu 12.04 (if it matters, it is running virtualized in a Mac OS X 10.8 host).  If I run a Python module from the command line (after exporting LD_LIBRARY_PATH=/opt/xapi/lib, the location of the SO in question), everything operates as expected.  However, running the same module from within Spyder fails: 


OSError: libxapi.so: cannot open shared object file: No such file or directory 

Where does Spyder pick up the appropriate environment variables?  I've tried adding to PYTHONPATH manager from within the IDE, but that doesn't help.  

Thanks for the help...
JW 

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to spyderlib-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at http://groups.google.com/group/spyderlib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Carlos Córdoba | 4 Feb 2013 18:22
Picon
Gravatar

Spyder 2.2 second public beta release

Hi all,

On the behalf of Spyder's development team, I'm pleased to announce the 
second beta of our 2.2 version.

This new beta comes with a lot of love for MacOS X users: we fixed 
several outstanding bugs on this platform and updated our DMG 
installers, which now come with Pandas, PIL, scikit-image, scikit-learn 
and sympy. Besides, thanks to Sylvain Corlay, we changed the icons of 
our new Debug toolbar and also added support to make it work with the 
IPython console.

We've been working on Spyder 2.2 for almost a year and as far as we know 
is very stable. There are still some minor bugs to squash but we 
encourage all people who like the bleeding edge to give it a try. It 
comes with several improvements, the most important ones being: better 
IPython integration, a new debugger toolbar, breakpoints widget and a 
MacOs X application.

See the incomplete changelog here:
http://code.google.com/p/spyderlib/wiki/ChangeLogBeta

And don't forget to follow Spyder updates/news on the project website 
(http://code.google.com/p/spyderlib/) and on our official blog 
(http://spyder-ide.blogspot.com/). In the next couple of weeks I'll be 
writing a series of blogs describing in more detail our new changes

Enjoy!
Carlos

Uwe Fechner | 4 Feb 2013 18:02
Picon

Regression in beta 2

Hello,

the bug that was described in the following thread:
https://groups.google.com/forum/?fromgroups=#!topic/spyderlib/9fK32oIY4fo

was fixed in beta 1, but now it is back again.

If I look into the source than the following function in the file 
explorer.py - that fixed the bug -
is missing in beta2:

  def restore_directory_state(self, fname):
674     """Restore directory expanded state"""     674 """Restore 
directory expanded state"""
675     root = osp.normpath(unicode(fname))     675     root = 
osp.normpath(unicode(fname))
676     if not osp.exists(root):     676     if not osp.exists(root):
677     # Directory has been (re)moved outside Spyder     677     # 
Directory has been (re)moved outside Spyder
678     return     678     return
679     for basename in os.listdir(root):     679     for basename in 
os.listdir(root):
680     path = osp.normpath(osp.join(root, basename))     680 path = 
osp.normpath(osp.join(root, basename))
681     if osp.isdir(path) and path in self.__expanded_state: 681     if 
osp.isdir(path) and path in self.__expanded_state:
682     self.__expanded_state.pop(self.__expanded_state.index(path))     
682 self.__expanded_state.pop(self.__expanded_state.index(path))
683     if self._to_be_loaded is None:     683     if self._to_be_loaded 
is None:
684     self._to_be_loaded = []     684     self._to_be_loaded = []
685     self._to_be_loaded.append(path)     685 
self._to_be_loaded.append(path)
686         686
687     # Prevent Qt from crashing or showing warnings like:     687     
# Prevent Qt from crashing or showing warnings like:
688     # "QSortFilterProxyModel: index from wrong model passed to     
688     # "QSortFilterProxyModel: index from wrong model passed to
689     # mapFromSource", probably due to the fact that the file 689     
# mapFromSource", probably due to the fact that the file
690     # system model is being built     690     # system model is 
being built
691     QTimer.singleShot(50, lambda path=path:     691     #
         692     # This is just a workaround (any cleaner implementation 
would
         693     # be welcomed). The delay was first set to 50ms, but with
         694     # slower machines, it appears that 200ms is a better 
choice:
         695     # 
https://groups.google.com/group/spyderlib/browse_thread/thread/f5f2b7da8218e1fa
         696     QTimer.singleShot(200, lambda path=path:
692     self.setExpanded(self.get_index(path), True))     697 
self.setExpanded(self.get_index(path), True))
693         698
694     if not self.__expanded_state:     699     if not 
self.__expanded_state:
695     self.disconnect(self.fsmodel, 
SIGNAL('directoryLoaded(QString)'),     700 
self.disconnect(self.fsmodel, SIGNAL('directoryLoaded(QString)'),
696     self.restore_directory_state)     701 self.restore_directory_state)

Can someone please check how this could happen and fix it?

Best regards:

Uwe Fechner


Gmane