Nicklas Stockton | 22 Dec 23:25 2015
Picon

Spyder hangs on launch - Throws "Warning: cannot register existing type 'GtkWidget'"

I installed Spyder on my 64-bit Ubuntu box from the repositories (apt-get). When attempting to launch, I get splash screen and loading messages (in the splash) until eventually it hangs. No window ever appears.

In an attempt to figure out the issue, I pulled down the git repo and launched Spyder from bootstrap.py to the same result. Running it with --debug gives the following output:

me <at> xubuntu:~/spyder$ python bootstrap.py --debug
Executing Spyder from source checkout
Revision 0bb07e0, Branch: master
01. Patched sys.path with /home/me/spyder
02. PySide is detected, selecting
0x. Switching debug mode on
03. Imported Spyder 3.0.0dev
   
[Python 2.7.6 64bits, Qt 4.8.6, PySide 1.2.1 on Linux]
04. Executing spyder.main()
Bootstrap completed in 00:00:00.4500
Start of MainWindow constructor
End of MainWindow constructor
*** Start of MainWindow setup ***
 
..core actions
 
..toolbars
 
..tools
 
..sift?
 
..plugin: internal console
   
..internal console: initializing
 
..plugin: working directory
Loading help...
X
Error: BadCursor (invalid Cursor parameter) 6
 
Major opcode: 2 (X_ChangeWindowAttributes)
 
Resource id:  0x3
X
Error: BadCursor (invalid Cursor parameter) 6
 
Major opcode: 95 (X_FreeCursor)
 
Resource id:  0x3
Loading outline explorer...
Loading editor...
Requires Rope >=0.9.4
Requires Jedi >=0.8.1;<0.9.0
Instropection Plugin Loaded: fallback
Plugins loaded: ['fallback']
X
Error: BadCursor (invalid Cursor parameter) 6
 
Major opcode: 2 (X_ChangeWindowAttributes)
 
Resource id:  0x3
X
Error: BadCursor (invalid Cursor parameter) 6
 
Major opcode: 2 (X_ChangeWindowAttributes)
 
Resource id:  0x3
X
Error: BadCursor (invalid Cursor parameter) 6
 
Major opcode: 95 (X_FreeCursor)
 
Resource id:  0x3
X
Error: BadCursor (invalid Cursor parameter) 6
 
Major opcode: 2 (X_ChangeWindowAttributes)
 
Resource id:  0x3
X
Error: BadCursor (invalid Cursor parameter) 6
 
Major opcode: 95 (X_FreeCursor)
 
Resource id:  0x3
/usr/local/lib/python2.7/dist-packages/pandas/rpy/__init__.py:11:
 
FutureWarning: The pandas.rpy module is deprecated and will be removed
in a future version. We refer to external packages like rpy2.
See here for a guide on how to port your code to rpy2: http://pandas.pydata.org/pandas-docs/stable/r_interface.html
 
FutureWarning)
 
..widgets
Loading file explorer...
/usr/local/lib/python2.7/dist-packages/matplotlib/cbook.py:137:
 
MatplotlibDeprecationWarning: The matplotlib.delaunay module was
deprecated
in version 1.4. Use matplotlib.tri.Triangulation instead.
  warnings
.warn(message, mplDeprecation, stacklevel=1)
/usr/lib/python2.7/dist-packages/gi/module.py:178: Warning: cannot register existing type 'GtkWidget'
  g_type
= info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:178: Warning: cannot add class private field to invalid type '<invalid>'
  g_type
= info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:178:
 
Warning: cannot add private field to invalid (non-instantiatable) type
'<invalid>'
  g_type
= info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:178:
 
Warning: g_type_add_interface_static: assertion
'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
  g_type
= info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:178: Warning: cannot register existing type 'GtkBuildable'
  g_type
= info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:178:
 
Warning: g_type_interface_add_prerequisite: assertion
'G_TYPE_IS_INTERFACE (interface_type)' failed
  g_type
= info.get_g_type()
/usr/lib/python2.7/dist-packages/gi/module.py:178: Warning: g_once_init_leave: assertion 'result != 0' failed
  g_type
= info.get_g_type()

The X Errors are not the problem as that is just a minor annoyance as documented here.

Some searching around turned up this similar result which leads me to think that the issue might have something to do with conflicting Gtk library versions loaded at the same time. I intend on digging through the code to see if I can't find out at what point conflicting libraries are being loaded and try to force one consistent version (assuming that is the issue). I figured I would post my issues/progress here in case anyone has encountered or will encounter the same issue.

I should note that launching spyder -l from the terminal succeeds; I get a Spyder python terminal as expected.

--
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 https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Nicola Campostrini | 22 Dec 23:32 2015
Picon

SPYDER ON LINUX MINT

Hi everyone
I just installed spyder on my pc using linux mint 17.3 but I cannot use it very well.
I mean, some shortcuts don't work for example F9 to run the selection line or for example for the object inspector I have to copy&paste the function and then I can read the details.

Anyone with same problems?
How can I fix them?

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 https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Sean Smith | 17 Dec 23:15 2015
Picon

Spyder 2.3.8 / OSX dmg - package issue

In the new mac executable for spyder 2.3.8, I'm getting the following behavior.

>>> from mpl_toolkits.mplot3d import Axes3D
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mpl_toolkits/mplot3d/__init__.pyc", line 4, in <module>
   
ImportError: No module named externals


This occurs for both PyQt4 and PySide (I wouldn't have expected it to be different, but just in case).
Does anyone else get this error?

--
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 https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Cheng Chen | 14 Dec 18:30 2015
Picon

Can Spyder improve its variable explorer to view class object?

Hi, 

I just start to use Spyder IDE recently. Really nice work! I just have one suggestion: whether it is possible to improve its variable explorer to support more types of variables? For example, I would like to view the value of class object, and I found it is not easy to check in debugging mode. Thanks.

Cheng

--
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 https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
Carlos Córdoba | 14 Dec 01:44 2015
Picon
Gravatar

[ANN] Spyder 3.0 second public beta release

Hi all,

On the behalf of Spyder’s development team (https://github.com/spyder-ide/spyder/graphs/contributors),
I’m pleased to announce the second beta of our next major version: Spyder 3.0.

We’ve been working on this version for more than a year now and as far as we know it’s working very well. There are still several bugs to squash but we encourage all people who like the bleeding edge to give it a try. This second beta is released four months after our first one and it includes more than 600 commits!

Spyder 3.0 comes with several interesting and exciting new features. The most important ones are:

  1. A file switcher very similar to the Sublime Text one (which can be activated with Ctrl+P).
  2. A new icon theme based on FontAwesome (not yet activated by default).
  3. A new set of default pane layouts for those coming from Rstudio or Matlab (under View > Window layouts).
  4. Syntax highlighting for all file types supported by Pygments (a pure Python highlighting library).
  5. A simpler and more intuitive way to introduce keyboard shortcuts.
  6. Support for PyQt5.

For a complete list of changes, please see here:

https://github.com/spyder-ide/spyder/wiki/Beta-version-changelog

You can easily install this beta if you use Anaconda by running:

conda install -c spyder-ide spyder

Or you can download it from our Releases page: https://github.com/spyder-ide/spyder/releases and previously installing QtAwesome with

pip install qtawesome

Enjoy!
-Carlos

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

Courtenay Watson | 12 Dec 18:15 2015
Picon

Auto create history on save

I'm working on developing better habits, but the reason I stopped using Spyder was because I really need something that will keep a file-save history automatically. Sublime2 has a plugin, Local-history, that does this well. Does spyder have such a thing? 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 https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.
'Brent Robbins' via spyder | 12 Dec 01:18 2015

Creating PDFs

Hello,

I am using Spyder 2.3.2 from Python(x,y) 2.7.9.0.  I am simply trying to make a PDF from strings and/or text.  I was able to publish a PDF using Matplotlib's "PdfPages" but only images, not text. 

Any help would be appreciated.  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.
dbk | 10 Dec 17:25 2015

Spyder won't start immediately after installing Mayavi

I've been having a lot of problems running Spyder 2.3.8 immediately after installing Mayavi.  The problem persists in Anaconda 2.4 and 2.4.1.  I just did a clean install of Anaconda and Spyder started normally.  Immediately after installing Mayavi Spyder refuses to launch.  The error message is shown below.

Any help appreciated as this has been driving me crazy.

Thanks!

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\dbk>conda install mayavi
Fetching package metadata: ....
Solving package specifications: .......................
Package plan for installation in environment C:\Users\dbk\AppData\Local\Continuu
m\Anaconda2:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    numpy-1.9.3                |           py27_0        23.5 MB  defaults
    traits-4.4.0               |           py27_0         373 KB  defaults
    vtk-5.10.1                 |           py27_0        16.3 MB  defaults
    pyface-4.4.0               |           py27_0         690 KB  defaults
    traitsui-4.4.0             |           py27_0         833 KB  defaults
    apptools-4.2.1             |           py27_0         282 KB  defaults
    envisage-4.4.0             |           py27_1         267 KB  defaults
    mayavi-4.4.0               |       np19py27_0        10.4 MB  defaults
    ------------------------------------------------------------
                                           Total:        52.6 MB

The following NEW packages will be INSTALLED:

    apptools: 4.2.1-py27_0     defaults
    envisage: 4.4.0-py27_1     defaults
    mayavi:   4.4.0-np19py27_0 defaults
    pyface:   4.4.0-py27_0     defaults
    traits:   4.4.0-py27_0     defaults
    traitsui: 4.4.0-py27_0     defaults
    vtk:      5.10.1-py27_0    defaults

The following packages will be DOWNGRADED:

    numpy:    1.10.1-py27_0 defaults --> 1.9.3-py27_0     defaults

Proceed ([y]/n)? y

Fetching packages ...
numpy-1.9.3-py 100% |###############################| Time: 0:00:08   2.92 MB/s
traits-4.4.0-p 100% |###############################| Time: 0:00:00   2.09 MB/s
vtk-5.10.1-py2 100% |###############################| Time: 0:00:09   1.88 MB/s
pyface-4.4.0-p 100% |###############################| Time: 0:00:00   4.41 MB/s
traitsui-4.4.0 100% |###############################| Time: 0:00:00   4.74 MB/s
apptools-4.2.1 100% |###############################| Time: 0:00:00   2.49 MB/s
envisage-4.4.0 100% |###############################| Time: 0:00:00   2.12 MB/s
mayavi-4.4.0-n 100% |###############################| Time: 0:00:04   2.60 MB/s
Extracting packages ...
[      COMPLETE      ]|##################################################| 100%
Unlinking packages ...
[      COMPLETE      ]|##################################################| 100%
Linking packages ...
[      COMPLETE      ]|##################################################| 100%

C:\Users\dbk>spyder
Traceback (most recent call last):
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\Scripts\spyder-script.py"
, line 2, in <module>
    start_app.main()
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderl
ib\start_app.py", line 114, in main
    from spyderlib import spyder
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderl
ib\spyder.py", line 155, in <module>
    from spyderlib.utils.environ import WinUserEnvDialog
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderl
ib\utils\environ.py", line 17, in <module>
    from spyderlib.widgets.dicteditor import DictEditor
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderl
ib\widgets\dicteditor.py", line 39, in <module>
    from spyderlib.widgets.dicteditorutils import (sort_against, get_size,
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderl
ib\widgets\dicteditorutils.py", line 61, in <module>
    required_version=PANDAS_REQVER)
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderl
ib\dependencies.py", line 70, in add
    installed_version)]
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderl
ib\dependencies.py", line 32, in __init__
    self.installed_version = programs.get_module_version(modname)
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderl
ib\utils\programs.py", line 238, in get_module_version
    mod = __import__(module_name)
  File "C:\Users\dbk\AppData\Local\Continuum\Anaconda2\lib\site-packages\pandas\
__init__.py", line 7, in <module>
    from pandas import hashtable, tslib, lib
  File "pandas\src\numpy.pxd", line 157, in init pandas.tslib (pandas\tslib.c:10
2684)
ValueError: numpy.dtype has the wrong size, try recompiling

C:\Users\dbk>

--
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.
Ankit Kanthe | 29 Nov 11:53 2015
Picon

Zakian function in python

How to use zakian inverse laplace function in python? Please help

peter.knapen | 29 Nov 13:14 2015
Picon

ttk inter not found

I have installed on Ubuntu 14.04 LS pyhon3, python3-tk and spyder3 (2.3.0),  
After inserting the lines:
import tkinter as tk
from tkinter import *
from ttk import *

I get the error: ImportError: No module named 'ttk'

Is this a spyder issue?




--
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.
Carlos Córdoba | 27 Nov 20:48 2015
Picon
Gravatar

[ANN] Spyder 2.3.8 is released!

Hi all,

On the behalf of Spyder’s development team (https://github.com/spyder-ide/spyder/graphs/contributors),
I’m pleased to announce that Spyder 2.3.8 has been released and is available for
Windows, GNU/Linux and MacOS X: https://github.com/spyder-ide/spyder/releases

This release represents one month and a half of development since version 2.3.7
and introduces several new features:

  • Python and IPython consoles
    • Fix a sitecustomize error when using Matplotlib 1.5 with Python 2 on Linux
  • Variable Explorer
    • Add support for Pandas Series when using Pandas 0.17+
    • Fix a freeze when creating empty DataFrames in Python 2
    • Fix a freeze when working with big Numpy recarray’s

We also fixed 6 bugs. For a full list of fixes see our changelog:
https://github.com/spyder-ide/spyder/blob/2.3/CHANGELOG.md

Don’t forget to follow Spyder updates/news:

Last, but not least, we welcome any contribution that helps making Spyder an
efficient scientific development/computing environment. Join us to help creating
your favorite environment!

Enjoy!
-Carlos

--
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