Database connection using MySQLdb in Python within Maya

Database connection using MySQLdb in Python within Maya

Anonymous
Not applicable
423 Views
0 Replies
Message 1 of 1

Database connection using MySQLdb in Python within Maya

Anonymous
Not applicable

I am trying to connect the database in Python within Maya using MySQLdb. I am getting a "No module named MySQLdb" error. Outside of Maya in Python, I am able to talk to the database. 

 

Error: ModuleNotFoundError: file C:\Program Files\Autodesk\Maya2022\Python37\lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py line 142: No module named 'MySQLdb'

 

I am using the trial version of Autodesk Maya 2020. Python version is Python37.

Outside of Maya, I have Python39. 

 

As I have seen reading data from the database is possible in Maya Software. It is a requirement to read data from the database in My project. If I cannot read data then I have to switch to some other software.

 

I have tried to update Python within Maya Software, did not succeed. 

I tried "pip install some-package"  My system saying already installed.

0 Likes
424 Views
0 Replies
Replies (0)