| Bug #104311 | Msql bug | ||
|---|---|---|---|
| Submitted: | 14 Jul 2021 9:47 | Modified: | 14 Jul 2021 13:47 |
| Reporter: | Sandor Torok | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | Connector / Python | Severity: | S3 (Non-critical) |
| Version: | OS: | Windows | |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | MySQL, python | ||
[14 Jul 2021 13:47]
MySQL Verification Team
Hello Sandor Torok,
Thank you for the report and feedback.
I quickly tried with the provided test case but not seeing any issues.
--
import plotly.express as px
import pandas as pd
import mysql.connector
import sys
import platform
mydb = mysql.connector.connect(
host="localhost",
user="root",
password="",
database="bug"
)
print("OS: {} {}".format(platform.system(), platform.release()))
print("Python:", format(sys.version))
driver = mysql.connector
print("Driver: {} {}".format(driver.__name__, driver.__version__))
print()
fig = px.line(x=['a', 'b'], y=[1, 2])
print("All okay")
-
OS: Windows 10
Python: 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)]
Driver: mysql.connector 8.0.25
All okay
Press any key to continue . . .
If you can provide more information, feel free to add it to this bug and change the status back to 'Open'.
Thank you for your interest in MySQL.
regards,
Umesh

Description: I get an error running this simple code in my program. The error pops up after the program finishes: Exception ignored in: <function BaseMySQLSocket.__del__ at 0x039BF6E8> Traceback (most recent call last): File "C:\Users\Acer Nitro 5\AppData\Roaming\Python\Python39\site-packages\mysql\connector\network.py", line 149, in __del__ File "C:\Users\Acer Nitro 5\AppData\Roaming\Python\Python39\site-packages\mysql\connector\network.py", line 137, in shutdown TypeError: catching classes that do not inherit from BaseException is not allowed How to repeat: Run this python script import plotly.express as px import pandas as pd import mysql.connector mydb = mysql.connector.connect( host="localhost", user="test1", password="test2", database="testdatabase" ) fig = px.line(x=['a', 'b'], y=[1, 2])