Page 1 of 1

pylab warning during import

PostPosted: Jul 29th, '12, 11:48
by pradhanphy
Hi,
I am having trouble using pylab in pythom whenever i try to import it showing some
error massages...

Code: Select all
sonar|~/books| $ python
Python 2.7.3 (default, Jul 10 2012, 00:03:43)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylab

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

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

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

i don't know why this is happening ...
there is a similar bug in fedor.
https://bugzilla.redhat.com/show_bug.cgi?id=790053
Can anyone please help me .. :?
Regards.

Re: pylab warning during import

PostPosted: Jul 29th, '12, 17:09
by tom_
you
pradhanphy wrote:** (process:8091): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

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

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


these are warning, not errors.

This means that there is some minor problem,
but you should be able to do your work.

However it would be nice if you reports these warnings and the link to the Fedora discussion
in a bug report, following these guidelines