Reputation: 1
connection = mysql.connector.connect(
host=ip,
user=user,
password=password)
Hello. I use mysql-connector-python https://pypi.org/project/mysql-connector-python When i run this code on my PC everything fine (Python 3.12) But when i try to execute this on other PC, it gives me this error RuntimeError: Failed raising error
BUT. when i change the ip to 127.0.0.1 or just not neccessary ip it gives just an error that i type wrong host.
I tried to execute this on different python version since 3.10 to 3.13 and on 3.10 it said Process finished with exit code -1073741819 (0xC0000005)
I use Pycharm
I tried to change python versions, start pycharm with admin rights, reinstall libary
(Update) When i use venv from other project, everything works fine
Upvotes: -3
Views: 312
Reputation: 1
Reason was that i installed Python at path with cirilic symbols, when i installed it at other path, everything started work fine
Update: It didn't fix error so i started dig further. I found through Event Viewer in windows that there's a problem with file MSVCP140.dll.
This file associated with VCRedist C++. I downloaded last verison https://learn.microsoft.com/ru-ru/cpp/windows/latest-supported-vc-redist?view=msvc-170 and finaly handled this error
Upvotes: 0