Spyder2: Python runtimewarning

86 views
Skip to first unread message

kristi

unread,
Oct 20, 2010, 4:56:26 PM10/20/10
to spyder
Whenever Python runs inside of Spyder, I get a RuntimeWarning

C:\Python26\lib\site-packages\scipy\io\matlab\mio5.py:90:
RuntimeWarning: __builtin__.file size changed, may indicate binary
incompatibility
from mio5_utils import VarReader5

If I run python from a cmd.exe prompt, I don't get this error.

Python 2.6.6
Spyder 2.0.0beta3
Windows XP

David Verelst

unread,
Oct 21, 2010, 9:50:25 AM10/21/10
to spyd...@googlegroups.com
Have you tried with Spyder 2.0.0beta5?

> --
> You received this message because you are subscribed to the Google Groups "spyder" group.
> To post to this group, send email to spyd...@googlegroups.com.
> To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
>
>

josef...@gmail.com

unread,
Oct 21, 2010, 10:15:26 AM10/21/10
to spyd...@googlegroups.com
On Thu, Oct 21, 2010 at 9:50 AM, David Verelst <david....@gmail.com> wrote:
> Have you tried with Spyder 2.0.0beta5?
>
> On 20 October 2010 22:56, kristi <kristi....@gmail.com> wrote:
>> Whenever Python runs inside of Spyder, I get a RuntimeWarning
>>
>> C:\Python26\lib\site-packages\scipy\io\matlab\mio5.py:90:
>> RuntimeWarning: __builtin__.file size changed, may indicate binary
>> incompatibility
>>  from mio5_utils import VarReader5

I think this is unrelated to spyder, this is a warning from cython
generated that the scipy has not been compiled against the a
specific/recent numpy. Which scipy, numpy versions are you running,
e.g. numpy.__version__ ?

The warning is innocent, there are no compatibility problems in this
case between numpy and scipy.

Josef

kristi

unread,
Oct 21, 2010, 8:13:22 PM10/21/10
to spyder
I tried 2.0.0beta5, but I still get the same error. Here is my numpy
and scipy versions

>>> import numpy, scipy
>>> numpy.__version__
'1.5.0'
>>> scipy.__version__
'0.8.0'

josef...@gmail.com

unread,
Oct 22, 2010, 10:57:43 AM10/22/10
to spyd...@googlegroups.com

I guess you will also get the warning when you import scipy.io.matlab
in a plain interpreter. Spyder imports matplotlib automatically and
indirectly scipy.io.matlab.

In either case, the warning might be annoying but there are no (known)
problems with this.

Josef

Kristi Tsukida

unread,
Oct 22, 2010, 2:43:18 PM10/22/10
to spyd...@googlegroups.com
Yes, I get the warning when importing scipy.io.matlab. Is there a way
to tell spyder to run python with the
python -W ignore::RuntimeWarning:scipy.io.matlab.mio5:90
flag to ignore this warning? I don't see anything in the settings.

/kristi

kristi

unread,
Nov 4, 2010, 3:06:59 PM11/4/10
to spyder
I just installed the 2.0beta6. Now there is no more error message,
though the three angle brackets ">>>" appear in red for me. I'm not
sure if that's normal.
/kristi

On Oct 22, 11:43 am, Kristi Tsukida <kristi.tsuk...@gmail.com> wrote:
> Yes, I get the warning when importing scipy.io.matlab.  Is there a way
> to tell spyder to run python with the
> python -W ignore::RuntimeWarning:scipy.io.matlab.mio5:90
> flag to ignore this warning?  I don't see anything in the settings.
>
> /kristi
>
>
>
>
>
>
>
> On Fri, Oct 22, 2010 at 7:57 AM,  <josef.p...@gmail.com> wrote:
> > On Thu, Oct 21, 2010 at 8:13 PM, kristi <kristi.tsuk...@gmail.com> wrote:
> >> I tried 2.0.0beta5, but I still get the same error.  Here is my numpy
> >> and scipy versions
>
> >>>>> import numpy, scipy
> >>>>> numpy.__version__
> >> '1.5.0'
> >>>>> scipy.__version__
> >> '0.8.0'
>
> > I guess you will also get the warning when you import scipy.io.matlab
> > in a plain interpreter. Spyder imports matplotlib automatically and
> > indirectly scipy.io.matlab.
>
> > In either case, the warning might be annoying but there are no (known)
> > problems with this.
>
> > Josef
>
> >> --
> >> You received this message because you are subscribed to the Google Groups "spyder" group.
> >> To post to this group, send email to spyd...@googlegroups.com.
> >> To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
> >> For more options, visit this group athttp://groups.google.com/group/spyderlib?hl=en.

David Verelst

unread,
Nov 4, 2010, 5:50:38 PM11/4/10
to spyd...@googlegroups.com
Sounds pretty normal to me. In the console the >>> are red, in the
internal console you will find they are green.
If you run your scripts or test some commands, I guess it works
as expected?

David

Reply all
Reply to author
Forward
0 new messages