Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Maya2009 64-bit doesn't work with MySql
  RSS 2.0 ATOM  

Maya2009 64-bit doesn't work with MySql
Rate this thread
 
18864
 
Permlink of this thread   Subscribe to this thread
avatar
  • Total Posts: 9
  • Joined: 07 November 2008 01:53 PM

Hi,

I have installed SQLAlchemy and it works pretty good with Maya2009 32-bit,
but in Maya2009 64-bit I can’t load mysql module.
I got:

import _mysql
# Error: DLL load failed with error code 193
# Traceback (most recent call last):
# File “<maya console>”, line 1, in <module>
# ImportError: DLL load failed with error code 193 #

Any ideas?
Oleg



Replies: 1
/img/forum/dark/default_avatar.png

I get the same thing in Max.. what do you do?

Author: Shari Bell

Replied: 11 November 2009 07:50 AM  
avatar

Maya2009 64-bit

From Maya Scrip editor:
sys.version
# Result: 2.5.1 (r251:54863, Jun 7 2007, 16:23:10) [MSC v.1400 64 bit (AMD64)] #
import _mysql
# Error: DLL load failed with error code 193
# Traceback (most recent call last):
# File “<maya console>”, line 1, in <module>
# ImportError: DLL load failed with error code 193 #

Maya2009 32-bit

From Maya Scrip editor:
sys.version
# Result: 2.5.1 (r251:54863, Jun 5 2007, 22:56:07) [MSC v.1400 32 bit (Intel)] #
import _mysql
_mysql.__version__
# Result: 1.2.2 #

Looks like maya 64bit used [MSC v.1400 64 bit (AMD64)] Python.



Replies: 0
avatar

Yes I was going to answer you about the error code #193. It bugged me all day once until I figured it out…



Marin Petrov
________________
Character TD
http://scroll-lock.eu

Replies: 0
avatar

Thank You,
it’s already fixed. I’m compiled mysql libs from source code and it’s worked smoothly.



Replies: 1
/img/forum/dark/default_avatar.png

hi, i also got the same error. how you fix it?

Author: arunpillai

Replied: 15 March 2011 05:25 PM  
avatar

There is one dll file - libmysql.dll along with mysqldb.exe , copy that to maya bin folder 64 bit version



Replies: 0




   
  Settings Choose Theme color: