Hubert C | 23 Dec 06:11 2013
Picon

Spyder's Monitor Introspection Thread hangs

When I open Spyder, load one of my scripts, highlight the line "import my_module" and click 'execute selection', Spyder will freeze.

I used GDB to get the call stack of the thread that's hanging:

Thread 1 (python) at "0x7ffff7fd3740"

<module>     (Python IDE/bootstrap.py)

  main     (spyderlib/start_app.py)

    main     (spyderlib/spyder.py)

      run_spyder     (spyderlib/spyder.py)

        focusInEvent     (sourcecode/base.py)

          <lambda>     (plugins/externalconsole.py)

            plugin_focus_changed     (spyderlib/spyder.py)

              set_shellwidget_from_id     (plugins/variableexplorer.py)

                visibility_changed     (externalshell/namespacebrowser.py)

                  refresh_table     (externalshell/namespacebrowser.py)

                    communicate     (utils/bsdsocket.py)

                      read_packet     (utils/bsdsocket.py)

                        temp_fail_retry     (utils/bsdsocket.py)


I can tell that after I execute the import statement, Spyder is trying to update the variable explorer with the refresh_table() function. It sends the command "refresh()" to the monitor's introspection thread through a socket and then waits for a reply and that's where it gets stuck. It's just waiting forever for a response to come back through the socket from the monitor, but the monitor is not replying. 

I'm having a hard time figuring out if 1) the monitor crashed and the thread closed 2) the monitor doesn't reply because it's hung somewhere or 3) some other socket timing issue.

There are 4 other threads running with the following call stacks (Not sure which one, if any, is the monitor thread):

Thread 66 (NotificationThr) at "0x7fff53a31700" in recv(...)

    run (externalshell/introspection.py)

        read_packet (utils/bsdsocket.py)

            temp_fail_retry (utils/bsdsocket.py)


-----------------------------------------------------------

Thread 64 (python) at "0x7fff8154a700" in accept(...)

    __bootstrap (python2.7/threading.py)

        __bootstrap_inner (python2.7/threading.py)

            run (externalshell/introspection.py)

                accept (python2.7/socket.py)


-----------------------------------------------------------

Thread 63 (python) at "0x7fff81d4b700" in accept(...)

__bootstrap (python2.7/threading.py)

    __bootstrap_inner (python2.7/threading.py)

        run (externalshell/introspection.py)

            accept (python2.7/socket.py)


-----------------------------------------------------------

Thread 62 (python) at "0x7fff8254c700" in accept(...)

__bootstrap (python2.7/threading.py)

    __bootstrap_inner (python2.7/threading.py)

        run (python2.7/threading.py)

            start_open_files_server (spyderlib/spyder.py)

                accept (python2.7/socket.py)



This is a really tough problem to debug. Does anyone know how I could tell which thread is the monitor's introspection thread? GDB gives me a thread ID, which as far as I can tell is a number created by GDB itself. I tried printing the result of id(threading.get_current_thread()) to try to match up the thread's address with the address supplied by GDB, but none of them match, so I can't tell which thread is which. I know Spyder has an introspection thread, a notification thread, the main console thread. 

FYI, I'm running on Linux Mint. I made a bunch of changes to the source code in an effort to make it more like PyScripter, so I don't want to report this as a bug until I find the reason it's hanging.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
stonebig34 | 22 Dec 19:39 2013
Picon

Spyder Langage Settings

Hello,

There is an user request to have the langage settings accessible in the menu
(in https://groups.google.com/forum/#!topic/winpython/WgWOJbqyW_I )

Would it be easy to have ?

What is the procedure to create another langage settings beside the default EN FR ES ?


--
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.
For more options, visit https://groups.google.com/groups/opt_out.
ufechner | 22 Dec 18:17 2013
Picon

Dockable matplotlib window with the webagg backend

Hello,

matplotlib 1.3.1 offers the fully-featured webagg backend:
http://matplotlib.org/users/whats_new.html#backends

With this backend you can display interactive plots in a web-browser.

Would it be possible to add dockable windows in Spyder that run a web-browser
and display the output of a matplotlib diagram?

And if this would be possible, what would be the best way to implement this?

I would like to have the option to open any number of diagram windows and
place them anywhere in the GUI.

Questions:
- could that be done with a plugin?
- which webbrowser could be used? Is QTWebKit a good choice?
  (see: http://codescience.wordpress.com/2011/04/19/very-simple-web-browser-on-pyqt4-and-webkit/ )
- is it neccessary to wait with an implementation of this feature until webagg is supported by ipython?

Best regards:

Uwe Fechner

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
Craig Ricker | 21 Dec 03:43 2013
Picon

Minimize function

Any chance the ability to minimize functions similar to Visual Studios or 
Notepad++?

Thanks!  A wonderful product, and I hope it is continually developed.

Sayth Renshaw | 19 Dec 03:06 2013
Picon

Spider Django

is there any real reason to not use spyder for django development? 

it's just not commonly referred to as a tool to use for this. is it all based on the scientific in the name or
other reasons?

Sayth 

Julien Hillairet | 17 Dec 22:15 2013
Picon

Re-Focus after plot

Dear all,

It's maybe more a matplotlib question rather than a Spyder one.

In matlab, when one uses the plot() function, the focus is set on the figure. Thus, if the figure has already been created, it pops-up from "behind" other windows. Is it possible to get the same behaviour with Spyder ?

Best regards,

JH

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
Daniël Schreij | 17 Dec 20:56 2013
Picon

Spyder 2.2.5 on OS X 10.8 crashes with an NSInvalidArgumentException

I just installed spyder 2.2.5 on my OS X 10.8.3 machine with the setup.py script, which went flawlessy.

Now, when firing up spyder from the command line, I get the following error output:

2013-12-17 20:53:02.673 Python[2255:6d03] -[QNSApplication _setup:]: unrecognized selector sent to instance 0x1064352f0
2013-12-17 20:53:02.673 Python[2255:6d03] An uncaught exception was raised
2013-12-17 20:53:02.674 Python[2255:6d03] -[QNSApplication _setup:]: unrecognized selector sent to instance 0x1064352f0
2013-12-17 20:53:02.675 Python[2255:6d03] (
0   CoreFoundation                      0x00007fff90b18b06 __exceptionPreprocess + 198
1   libobjc.A.dylib                     0x00007fff8ed263f0 objc_exception_throw + 43
2   CoreFoundation                      0x00007fff90baf40a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
3   CoreFoundation                      0x00007fff90b0702e ___forwarding___ + 414
4   CoreFoundation                      0x00007fff90b06e18 _CF_forwarding_prep_0 + 232
5   Tk                                  0x0000000113fa35c0 TkpInit + 453
6   Tk                                  0x0000000113f1fa66 Tk_Init + 1816
7   _tkinter.so                         0x0000000113dedd2b Tcl_AppInit + 75
8   _tkinter.so                         0x0000000113deb1b4 Tkinter_Create + 916
9   Python                              0x00000001000c35fd PyEval_EvalFrameEx + 25213
10  Python                              0x00000001000c58c9 PyEval_EvalCodeEx + 2137
11  Python                              0x000000010003e510 function_call + 176
12  Python                              0x000000010000c932 PyObject_Call + 98
13  Python                              0x000000010001f04b instancemethod_call + 363
14  Python                              0x000000010000c932 PyObject_Call + 98
15  Python                              0x00000001000bc0c7 PyEval_CallObjectWithKeywords + 87
16  Python                              0x000000010002233e PyInstance_New + 126
17  Python                              0x000000010000c932 PyObject_Call + 98
18  Python                              0x00000001000c0a48 PyEval_EvalFrameEx + 14024
19  Python                              0x00000001000c58c9 PyEval_EvalCodeEx + 2137
20  Python                              0x00000001000c59e6 PyEval_EvalCode + 54
21  Python                              0x00000001000d9ec0 PyImport_ExecCodeModuleEx + 208
22  Python                              0x00000001000db0d2 load_source_module + 626
23  Python                              0x00000001000dc6c0 load_package + 400
24  Python                              0x00000001000dd0bb import_submodule + 315
25  Python                              0x00000001000dd55a load_next + 234
26  Python                              0x00000001000dd89c PyImport_ImportModuleLevel + 412
27  Python                              0x00000001000baee3 builtin___import__ + 131
28  Python                              0x00000001000c35fd PyEval_EvalFrameEx + 25213
29  Python                              0x0000000100031885 gen_send_ex + 165
30  Python                              0x00000001000bde36 PyEval_EvalFrameEx + 2742
31  Python                              0x00000001000c3fed PyEval_EvalFrameEx + 27757
32  Python                              0x00000001000c3fed PyEval_EvalFrameEx + 27757
33  Python                              0x00000001000c58c9 PyEval_EvalCodeEx + 2137
34  Python                              0x000000010003e510 function_call + 176
35  Python                              0x000000010000c932 PyObject_Call + 98
36  Python                              0x000000010001f04b instancemethod_call + 363
37  Python                              0x000000010000c932 PyObject_Call + 98
38  Python                              0x00000001000bc0c7 PyEval_CallObjectWithKeywords + 87
39  sip.so                              0x000000010246dee4 sip_api_call_method + 206
40  QtCore.so                           0x0000000101da862f _Z15sipVH_QtCore_1116PyGILState_STATEPFvP17_sipSimpleWrapperS_ES1_P7_object + 47
41  QtCore.so                           0x0000000101dda56e _ZN10sipQThread3runEv + 108
42  QtCore                              0x0000000102096f74 _ZN14QThreadPrivate5startEPv + 356
43  libsystem_c.dylib                   0x00007fff840517a2 _pthread_start + 327
44  libsystem_c.dylib                   0x00007fff8403e1e1 thread_start + 13
)
2013-12-17 20:53:02.677 Python[2255:6d03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QNSApplication _setup:]: unrecognized selector sent to instance 0x1064352f0'
*** First throw call stack:
(
0   CoreFoundation                      0x00007fff90b18b06 __exceptionPreprocess + 198
1   libobjc.A.dylib                     0x00007fff8ed263f0 objc_exception_throw + 43
2   CoreFoundation                      0x00007fff90baf40a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
3   CoreFoundation                      0x00007fff90b0702e ___forwarding___ + 414
4   CoreFoundation                      0x00007fff90b06e18 _CF_forwarding_prep_0 + 232
5   Tk                                  0x0000000113fa35c0 TkpInit + 453
6   Tk                                  0x0000000113f1fa66 Tk_Init + 1816
7   _tkinter.so                         0x0000000113dedd2b Tcl_AppInit + 75
8   _tkinter.so                         0x0000000113deb1b4 Tkinter_Create + 916
9   Python                              0x00000001000c35fd PyEval_EvalFrameEx + 25213
10  Python                              0x00000001000c58c9 PyEval_EvalCodeEx + 2137
11  Python                              0x000000010003e510 function_call + 176
12  Python                              0x000000010000c932 PyObject_Call + 98
13  Python                              0x000000010001f04b instancemethod_call + 363
14  Python                              0x000000010000c932 PyObject_Call + 98
15  Python                              0x00000001000bc0c7 PyEval_CallObjectWithKeywords + 87
16  Python                              0x000000010002233e PyInstance_New + 126
17  Python                              0x000000010000c932 PyObject_Call + 98
18  Python                              0x00000001000c0a48 PyEval_EvalFrameEx + 14024
19  Python                              0x00000001000c58c9 PyEval_EvalCodeEx + 2137
20  Python                              0x00000001000c59e6 PyEval_EvalCode + 54
21  Python                              0x00000001000d9ec0 PyImport_ExecCodeModuleEx + 208
22  Python                              0x00000001000db0d2 load_source_module + 626
23  Python                              0x00000001000dc6c0 load_package + 400
24  Python                              0x00000001000dd0bb import_submodule + 315
25  Python                              0x00000001000dd55a load_next + 234
26  Python                              0x00000001000dd89c PyImport_ImportModuleLevel + 412
27  Python                              0x00000001000baee3 builtin___import__ + 131
28  Python                              0x00000001000c35fd PyEval_EvalFrameEx + 25213
29  Python                              0x0000000100031885 gen_send_ex + 165
30  Python                              0x00000001000bde36 PyEval_EvalFrameEx + 2742
31  Python                              0x00000001000c3fed PyEval_EvalFrameEx + 27757
32  Python                              0x00000001000c3fed PyEval_EvalFrameEx + 27757
33  Python                              0x00000001000c58c9 PyEval_EvalCodeEx + 2137
34  Python                              0x000000010003e510 function_call + 176
35  Python                              0x000000010000c932 PyObject_Call + 98
36  Python                              0x000000010001f04b instancemethod_call + 363
37  Python                              0x000000010000c932 PyObject_Call + 98
38  Python                              0x00000001000bc0c7 PyEval_CallObjectWithKeywords + 87
39  sip.so                              0x000000010246dee4 sip_api_call_method + 206
40  QtCore.so                           0x0000000101da862f _Z15sipVH_QtCore_1116PyGILState_STATEPFvP17_sipSimpleWrapperS_ES1_P7_object + 47
41  QtCore.so                           0x0000000101dda56e _ZN10sipQThread3runEv + 108
42  QtCore                              0x0000000102096f74 _ZN14QThreadPrivate5startEPv + 356
43  libsystem_c.dylib                   0x00007fff840517a2 _pthread_start + 327
44  libsystem_c.dylib                   0x00007fff8403e1e1 thread_start + 13
)
libc++abi.dylib: terminate called throwing an exception
Abort trap: 6

I've read in other issue entries that this has something to do with the unnecessary loading of tkinter or OpenGL libraries, but I haven't found a helpful solution yet. Does anyone know how to solve this problem?

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-/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.
For more options, visit https://groups.google.com/groups/opt_out.
paulo.issler | 14 Dec 00:07 2013
Picon

Poor GUI performance of Spyder 2.2.5 in light client X Window

Hello,
I am running Spyder 2.2.5 on a Linux Mint 15 (Olivia) box. I am using PuTTY from a Windows 7 Enterprise box to ssh into the Linux machine.
I also have Hummingbird Exceed  v14 as the X Server for the Windows 7 box. I set this configuration as a testing environment for a future server cluster.
The Spyder GUI seems to be responding very slow under this setting compared to the response of other software GUIs such as Matlab, SAS, and RStudio -- they all run fine.
I am wondering if anyone have experienced this before, and hopefully give some guidance on how to improve the performance. Here are some additional facts:
- I noted that the processor in my Windows 7 box goes into almost 100% utilization when resizing the embedded windows and editing the code.
- The same poor performance occurs when using Xming instead of Exceed.
- The GUI performance is great when running Spyder directly in the Linux Mint box.  
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-/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.
For more options, visit https://groups.google.com/groups/opt_out.
Lewis Levin | 13 Dec 05:55 2013
Picon

spyder 2.2.5 with Anaconda requires x11 to run preferences

Spyder and python crash immediately when x11 is not installed and you choose the preferences command.

I am installing xquartz, but what a waste. 164Meg to get a lousy gui when Spyder itself already uses a very good gui that must already be installed:  QT.

Will either Anaconda (if that is the issue) or Spyder switch to building the preferences "app" on QT?

This is not a problem with the dmg installer of Spyder.  But, as nice as that is I don't want to use it.  It is really nice and installs perfectly but....      It becomes its own distinct python install and all of the necessary libraries are duplicated.  As a really clean simple thing that is great but...    ...all of the Python library that is supplied via the application package is totally inaccessible outside of Spyder itself.  That sort of seems to violate how one expects to use Python.

No worries.  It was easy to use conda to get the latest version of Spyder installed in the anaconda distro of Python.  But, then we have the preference issue.

It would be nice to be rid of x11.  Maybe an ask for 2.3?

Thanks,
Lewis

--
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.
For more options, visit https://groups.google.com/groups/opt_out.
Carlos Córdoba | 11 Dec 20:10 2013
Picon

Spyder 2.3 second public beta release

Hi all,

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

We've been working on this version for eight months now 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.

The most important improvement of this release is that it now supports 
Python 3.2/3.3 besides (of course) Python 2.6/2.7. This beta also comes 
with a new theme for our Object Inspector, some important fixes to save 
and execute files in encodings other than unicode, a new tooltip widget 
to better show signatures of functions and methods, and some 
improvements to our startup time.

This release comes two months after the last beta1 release. It was also 
in the middle of moving our repository from GoogleCode to Bitbucket, 
which has been quite fruitful so far.

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

Dominik Müller | 6 Dec 14:20 2013

Installation of Spyder Debian package under Ubuntu 12.04


Hello everybody,

I'm using Ubuntu 12.04. I downloaded the Debian package python-spyderlib_2.2.5+dfsg-1_all.deb form http://packages.debian.org/sid/all/python-spyderlib/download.
The I moved into the directory where I downloaded it into and klicked on the file.



















I klicked on 'Install Package', a console opened and apparently everything seemed to work well.
However, when I opened a console and typed 'spyder', it tolde my there wouldn't be such a package installed.

I can however launch spyder by moving into
p, li { white-space: pre-wrap; }

/usr/lib/python2.7/dist-packages/spyderlib

and typing 'python spyder.py'.


I manually remove all installed files and tried 'sudo apt-get install spyder', but then I get the following error message:
spyder : depends on: python-spyderlib (= 2.1.9-1) but 2.2.5+dfsg-1 should be installed


Can anybody tell me what is going wrong here and how I can properly install spyder?


Any help is highly appreciated,

Dominik


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

Gmane