Numpy, matplotlib crash Python 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:43:54) [MSC v.1928 32 bit (In tel)] on win32 (Windows 7)

Numpy, matplotlib crash Python 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:43:54) [MSC v.1928 32 bit (In tel)] on win32 (Windows 7)

can u help ?
-=-

Python 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:43:54) [MSC v.1928 32 bit (In
tel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
‘’’

        import numpy as np

‘’’
waits a moment , then crashes Python, closing Python’s window

generating bug/ error message as follows

Problem Caption:
Problem Event Name: APPCRASH
Application name: python.exe
Application version: 3.8.7150.1013
Application time signature: 5fe0df5a
Error module name: _multiarray_umath.cp38-win32.pyd
Version of the module with the error: 0.0.0.0
Time signature of the module with the error: 63dfe4cf
Exception code: c000001d
Exception offset: 000269c9
Operating system version: 6.1.7601.2.1.0.256.48
Regional Settings ID: 1045
Additional information 1: 0a9e
Additional information 2: 0a9e372d3b4ad19135b953a78882e789
Additional information 3: 0a9e
Additional information 4: 0a9e372d3b4ad19135b953a78882e789

Python 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:43:54) [MSC v.1928 32 bit (In
tel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

‘’’

        import matplotlib.pyplot as plt
        ‘’’

crashes Python, generating the following error/bug message

Problem Caption:
Problem Event Name: APPCRASH
Application name: python.exe
Application version: 3.8.7150.1013
Application time signature: 5fe0df5a
Error module name: _multiarray_umath.cp38-win32.pyd
Version of the module with the error: 0.0.0.0
Time signature of the module with the error: 63dfe4cf
Exception code: c000001d
Exception offset: 000269c9
Operating system version: 6.1.7601.2.1.0.256.48
Regional Settings ID: 1045
Additional information 1: 0a9e
Additional information 2: 0a9e372d3b4ad19135b953a78882e789
Additional information 3: 0a9e
Additional information 4: 0a9e372d3b4ad19135b953a78882e789

====
Can you help modules to work ?

I tried to test Python code from

You have shown a crash in NumPy, not Matplotlib. We cannot help with that.

you are not correct
in the listing above
I have run either

import numpy as np

or

  import matplotlib.pyplot as plt

to generate 2 crash reports as above ( a single report for Matplotlib follows below)


Problem Caption:
Problem Event Name: APPCRASH
Application name: python.exe
Application version: 3.8.7150.1013
Application time signature: 5fe0df5a
Error module name: _multiarray_umath.cp38-win32.pyd
Version of the module with the error: 0.0.0.0
Time signature of the module with the error: 63dfe4cf
Exception code: c000001d
Exception offset: 000269c9
Operating system version: 6.1.7601.2.1.0.256.48
Regional Settings ID: 1045
Additional information 1: 0a9e
Additional information 2: 0a9e372d3b4ad19135b953a78882e789
Additional information 3: 0a9e
Additional information 4: 0a9e372d3b4ad19135b953a78882e789


thank you for your reply

darius

Matplotlib imports NumPy, so if NumPy is broken, then so will Matplotlib.

And this, from your second report, is still part of NumPy.

thank you my dear friend.

Could you explain me, so why should I import numpy
if already “to be imported” by Matplotlib

I am newbie with Python.
All I need is to run and test the code from

if Joseph runs the following code

Python program to read .csv file

import numpy as np
import matplotlib.pyplot as plt
import csv

– does it mean 2 instances of numpy get imported , one as numpy and the second as np ?

Should I test WinPython to avoid problems with numpy ?

thank you

darius

I cannot help you learn Python. This Discourse is for Matplotlib-specific questions, not general Python help. There are many tutorials on the Internet teaching Python.