while import always error

I found this error message when I import pylab.

from pylab import *

Error message:
Microsoft Visual C++ Runtime Library
Assertion failed!
Program:c\python24\python.exe
File:CXX/cxx_extentions.cxx
Line:1031

Expression: ob_refcnt == 0
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

First I install in new computer python 2.4.1
then the error comes out.

So I tried to reinstall with python 2.4
The problem still comes.

Please help

Pujo

Error message:
Microsoft Visual C++ Runtime Library
Assertion failed!
Program:c\python24\python.exe
File:CXX/cxx_extentions.cxx
Line:1031

Expression: ob_refcnt == 0
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

First I install in new computer python 2.4.1
then the error comes out.

So I tried to reinstall with python 2.4
The problem still comes.

Hmm, that's a strange one. We've seen this once before

http://sourceforge.net/mailarchive/message.php?msg_id=8789882

and I can't remember what the solution was (the thread doesn't mention
it) but it was resolved. I've CCd Gregory on this email to see if he
can remember, since he once saw the same problem .

Are you using the python from python.org? Does it help if you remove
site-packages/matplotlib and then reinstall? Please create this
simple test script

  import pylab
  pylab.plot([1,2,3])
  pylab.show()

and run it with

c:\python24\python myscript.py --verbose-helpful

and paste in all the output and errors in your response after doing a
clean reinstall, as well as your OS information ....

JDH

···

On 4/22/05, Pujo Aji <ajikoe@...287...> wrote:

> Error message:
> Microsoft Visual C++ Runtime Library
> Assertion failed!
> Program:c\python24\python.exe
> File:CXX/cxx_extentions.cxx
> Line:1031
>
> Expression: ob_refcnt == 0
> For information on how your program can cause an assertion
> failure, see the Visual C++ documentation on asserts
>
> First I install in new computer python 2.4.1
> then the error comes out.
>
> So I tried to reinstall with python 2.4
> The problem still comes.

Hmm, that's a strange one. We've seen this once before

http://sourceforge.net/mailarchive/message.php?msg_id=8789882

and I can't remember what the solution was (the thread doesn't mention
it) but it was resolved. I've CCd Gregory on this email to see if he
can remember, since he once saw the same problem .

Are you using the python from python.org? Does it help if you remove
site-packages/matplotlib and then reinstall? Please create this
simple test script

  import pylab
  pylab.plot([1,2,3])
  pylab.show()

and run it with

> c:\python24\python myscript.py --verbose-helpful

and paste in all the output and errors in your response after doing a
clean reinstall, as well as your OS information ....

JDH

···

On 4/23/05, John Hunter <jdh2358@...287...> wrote:

On 4/22/05, Pujo Aji <ajikoe@...287...> wrote:

I use python org. I already uninstalled the matplotlib from windows
add/remove program and verify that no matplotlib directory in
site-packages.
After that I reinstall the matplotlib again I use version 0.80

I can't import the matplotlib even in the minimum condition.
For example I go to python shell and type import pylab, this raise the
same error.

I create your myscript.py and run it, but before it finished it shows
the same message in windows forms like I send before, and I have to
stop it.

This processed is stop because I have to cancel the program (due to
error message I sent).

D:\>python myscript.py --verbose-helpful
matplotlib data path c:\python24\share\matplotlib
loaded rc file c:\python24\share\matplotlib\.matplotlibrc
matplotlib version 0.80
verbose.level helpful
interactive is False
platform is win32
numerix Numeric 23.8
font search path ['c:\\python24\\share\\matplotlib']

my os is Windows XP Home Edition.

Betriebssystemname Microsoft Windows XP Home Edition
Version 5.1.2600 Service Pack 2 Build 2600
Betriebssystemhersteller Microsoft Corporation
Systemname MARLIN
Systemhersteller MEDIONPC
Systemmodell MS-7091
Systemtyp X86-based PC
Prozessor x86 Family 15 Model 3 Stepping 4 GenuineIntel ~3391 Mhz
Prozessor x86 Family 15 Model 3 Stepping 4 GenuineIntel ~3391 Mhz
BIOS-Version/-Datum Phoenix Technologies, LTD 6.00 PG, 12.10.2004
SMBIOS-Version 2.3
Windows-Verzeichnis C:\WINDOWS
Systemverzeichnis C:\WINDOWS\system32
Startgerät \Device\HarddiskVolume1
Gebietsschema Österreich
Hardwareabstraktionsebene Version = "5.1.2600.2180
(xpsp_sp2_rtm.040803-2158)"
Benutzername MARLIN\Pujo
Zeitzone Westeuropäische Normalzeit
Gesamter realer Speicher 511,48 MB
Verfügbarer realer Speicher 201,06 MB
Gesamter virtueller Speicher 2,00 GB
Verfügbarer virtueller Speicher 1,96 GB
Größe der Auslagerungsdatei 1,22 GB

Sorry it is in German, I live in Austria

Sincerely Yours,
Pujo Aji

···

On 4/23/05, John Hunter <jdh2358@...287...> wrote:

On 4/22/05, Pujo Aji <ajikoe@...287...> wrote:

> Error message:
> Microsoft Visual C++ Runtime Library
> Assertion failed!
> Program:c\python24\python.exe
> File:CXX/cxx_extentions.cxx
> Line:1031
>
> Expression: ob_refcnt == 0
> For information on how your program can cause an assertion
> failure, see the Visual C++ documentation on asserts
>
> First I install in new computer python 2.4.1
> then the error comes out.
>
> So I tried to reinstall with python 2.4
> The problem still comes.

Hmm, that's a strange one. We've seen this once before

http://sourceforge.net/mailarchive/message.php?msg_id=8789882

and I can't remember what the solution was (the thread doesn't mention
it) but it was resolved. I've CCd Gregory on this email to see if he
can remember, since he once saw the same problem .

Are you using the python from python.org? Does it help if you remove
site-packages/matplotlib and then reinstall? Please create this
simple test script

  import pylab
  pylab.plot([1,2,3])
  pylab.show()

and run it with

> c:\python24\python myscript.py --verbose-helpful

and paste in all the output and errors in your response after doing a
clean reinstall, as well as your OS information ....

JDH