[matplotlib-devel] BUG: Qt4Agg backend save figure io-slave error

2012-07-19 Thread Philippe MALLET
Dear all,

When I use the Qt4Agg backend and I want to save the figure by clicking the 
save button, I get this Error message:

kfilemodule(5951): couldn't create slave: "Unable to create io-slave:
klauncher said: Protocole «  » inconnu.

It is like an empty string is given for the protocole name.

infos:
Distribution: Archlinux
Python 2.7.3
matplotlib 1.1.1
Kde 4.8.4
Linux  3.4.5-1-ARCH x86_64

Best regards,


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] GTKAgg backend Warning message

2012-07-19 Thread Philippe MALLET
Dear all,

when I use the GTKAgg backend, I get the following message when I launch 
Ipython -pylab:

** (process:27239): WARNING **: Trying to register gtype 'GMountMountFlags' as 
enum when in fact it is of type 'GFlags'

** (process:27239): WARNING **: Trying to register gtype 'GDriveStartFlags' as 
enum when in fact it is of type 'GFlags'

** (process:27239): WARNING **: Trying to register gtype 'GSocketMsgFlags' as 
enum when in fact it is of type 'GFlags'

Infos:
Distribution: Archlinux
Python 2.7.3
matplotlib 1.1.1
Linux  3.4.5-1-ARCH x86_64

Best regards,--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] GTKAgg backend Warning message

2012-07-19 Thread Benjamin Root
On Thu, Jul 19, 2012 at 4:43 AM, Philippe MALLET
wrote:

> **
>
> Dear all,
>
>
>
> when I use the GTKAgg backend, I get the following message when I launch
> Ipython -pylab:
>
>
>
> ** (process:27239): WARNING **: Trying to register gtype
> 'GMountMountFlags' as enum when in fact it is of type 'GFlags'
>
>
>
> ** (process:27239): WARNING **: Trying to register gtype
> 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'
>
>
>
> ** (process:27239): WARNING **: Trying to register gtype 'GSocketMsgFlags'
> as enum when in fact it is of type 'GFlags'
>
>
>
> Infos:
>
> Distribution: Archlinux
>
> Python 2.7.3
>
> matplotlib 1.1.1
>
> Linux  3.4.5-1-ARCH x86_64
>
> Best regards,
>
>
Phillippe,

What is the full version number of GTK on your system (i.e., #.#.#)?

Cheers!
Ben Root
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] BUG: Qt4Agg backend save figure io-slave error

2012-07-19 Thread Benjamin Root
On Thu, Jul 19, 2012 at 4:39 AM, Philippe MALLET
wrote:

> Dear all,
>
> When I use the Qt4Agg backend and I want to save the figure by clicking the
> save button, I get this Error message:
>
> kfilemodule(5951): couldn't create slave: "Unable to create io-slave:
> klauncher said: Protocole «  » inconnu.
>
> It is like an empty string is given for the protocole name.
>
> infos:
> Distribution: Archlinux
> Python 2.7.3
> matplotlib 1.1.1
> Kde 4.8.4
> Linux  3.4.5-1-ARCH x86_64
>
> Best regards,
>
>
Philippe,

Was there a more complete traceback displayed?

Ben Root
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] GTKAgg backend Warning message

2012-07-19 Thread Philippe MALLET
Le jeudi 19 juillet 2012 08:18:14 Benjamin Root a écrit :




On Thu, Jul 19, 2012 at 4:43 AM, Philippe MALLET  
wrote:

Dear all,
 
when I use the GTKAgg backend, I get the following message when I launch 
Ipython -pylab:
 
** (process:27239): WARNING **: Trying to register gtype 'GMountMountFlags' as 
enum when in fact it is of type 'GFlags' 
 
** (process:27239): WARNING **: Trying to register gtype 'GDriveStartFlags' as 
enum when in fact it is of type 'GFlags' 
 
** (process:27239): WARNING **: Trying to register gtype 'GSocketMsgFlags' as 
enum when in fact it is of type 'GFlags' 
 
Infos:
Distribution: Archlinux
Python 2.7.3
matplotlib 1.1.1
Linux  3.4.5-1-ARCH x86_64

Best regards,



Phillippe,

What is the full version number of GTK on your system (i.e., #.#.#)?

Cheers!
Ben Root



Sorry I forgot to mention it:
gtk 1.2.10
gtk2 2.24.10
gtk3 3.4.3
pygtk 2.24

Cheers!

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] BUG: Qt4Agg backend save figure io-slave error

2012-07-19 Thread Darren Dale
On Thu, Jul 19, 2012 at 5:39 AM, Philippe MALLET
 wrote:
> Dear all,
>
> When I use the Qt4Agg backend and I want to save the figure by clicking the
> save button, I get this Error message:
>
> kfilemodule(5951): couldn't create slave: "Unable to create io-slave:
> klauncher said: Protocole «  » inconnu.
>
> It is like an empty string is given for the protocole name.
>
> infos:
> Distribution: Archlinux
> Python 2.7.3
> matplotlib 1.1.1
> Kde 4.8.4
> Linux  3.4.5-1-ARCH x86_64

I don't think this is a matplotlib bug. It is probably a KDE
configuration problem specific to your system. See
http://forums.gentoo.org/viewtopic-t-601154.html.

You could try editing your backend_qt4.py, in the save_figure method,
to add QFileDialog.DontUseNativeDialog to the end of the list of
arguments passed to _getSaveFileName. But that is only a workaround.

Darren

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


[matplotlib-devel] import collections problem

2012-07-19 Thread Benjamin Root
Working on my refactor of axes.py, I needed to use defaultdict and possibly
OrderedDict from the collections standard module.  Problem is that
matplotlib already has a collections.py module in lib/matplotlib.  This
file takes precedence in the import process and gets in my way.  Does
anybody know of any way to force the import to do what I want?  This has
completely stumped me.

Thanks,
Ben Root
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] import collections problem

2012-07-19 Thread Eric Firing
On 07/19/2012 09:24 AM, Benjamin Root wrote:
> Working on my refactor of axes.py, I needed to use defaultdict and
> possibly OrderedDict from the collections standard module.  Problem is
> that matplotlib already has a collections.py module in lib/matplotlib.
> This file takes precedence in the import process and gets in my way.
> Does anybody know of any way to force the import to do what I want?
> This has completely stumped me.

Looking at http://www.python.org/dev/peps/pep-0328/ it appears that for 
2.6 and later, using

from __future__ import absolute_import

should cause "import collections" to refer to the standard library.

Eric

>
> Thanks,
> Ben Root
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> ___
> Matplotlib-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] import collections problem

2012-07-19 Thread Benjamin Root
On Thu, Jul 19, 2012 at 2:32 PM, Eric Firing  wrote:

> On 07/19/2012 09:24 AM, Benjamin Root wrote:
> > Working on my refactor of axes.py, I needed to use defaultdict and
> > possibly OrderedDict from the collections standard module.  Problem is
> > that matplotlib already has a collections.py module in lib/matplotlib.
> > This file takes precedence in the import process and gets in my way.
> > Does anybody know of any way to force the import to do what I want?
> > This has completely stumped me.
>
> Looking at http://www.python.org/dev/peps/pep-0328/ it appears that for
> 2.6 and later, using
>
> from __future__ import absolute_import
>
> should cause "import collections" to refer to the standard library.
>
> Eric
>
>
Good to know.  But aren't we supporting 2.5, or did we decide on 2.6?

Ben
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] import collections problem

2012-07-19 Thread Eric Firing
On 07/19/2012 09:37 AM, Benjamin Root wrote:
>
>
> On Thu, Jul 19, 2012 at 2:32 PM, Eric Firing  > wrote:
>
> On 07/19/2012 09:24 AM, Benjamin Root wrote:
>  > Working on my refactor of axes.py, I needed to use defaultdict and
>  > possibly OrderedDict from the collections standard module.
>   Problem is
>  > that matplotlib already has a collections.py module in
> lib/matplotlib.
>  > This file takes precedence in the import process and gets in my way.
>  > Does anybody know of any way to force the import to do what I want?
>  > This has completely stumped me.
>
> Looking at http://www.python.org/dev/peps/pep-0328/ it appears that for
> 2.6 and later, using
>
> from __future__ import absolute_import
>
> should cause "import collections" to refer to the standard library.
>
> Eric
>
>
> Good to know.  But aren't we supporting 2.5, or did we decide on 2.6?

 >=2.6 only from now on.  This is so that we can support 3.2+ in the 
same codebase.

Eric

>
> Ben
>


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel