This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Importing an unused package causes the function of another package to malfunction
Type: crash Stage: resolved
Components: Windows Versions: Python 3.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: JemyTan, christian.heimes, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2019-08-29 13:48 by JemyTan, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
np.py JemyTan, 2019-08-29 13:48
Messages (2)
msg350780 - (view) Author: JemyTan (JemyTan) Date: 2019-08-29 13:48
After commenting out the first line of code, the result of the program is different.
I stepped in to debug(the program runs to line 30), and found that when it hit the code"from numpy.dual import inv as func" 
It seems to use different inv().

------------------------------------
Environment:
python: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
sklearn: 0.21.3
numpy: 1.17.0
msg350781 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2019-08-29 13:54
Please report the bug with sklearn and numpy. I assume that the import of sklearn has a side-effect on numpy.
History
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 82159
2019-08-29 13:54:34christian.heimessetstatus: open -> closed

nosy: + christian.heimes
messages: + msg350781

resolution: third party
stage: resolved
2019-08-29 13:48:49JemyTancreate