On Windows, Python in Maya is running MSC1600 (since version 2012 or
so?) as opposed to MSC1500 which is the default for standalone Python, so
you might have to compile it via mayapy.exe for it to play nice with Maya.


On 25 June 2014 15:31, Tony Barbieri <great...@gmail.com> wrote:

> The mysqldb package does need to be compiled for your os and python
> version.
>
> There is a pure python alternative here:
> https://github.com/PyMySQL/PyMySQL
>
> In order to compile mysqldb you should only have to run the setup.py that
> is distributed with it.
>
>
> On Wed, Jun 25, 2014 at 10:25 AM, <n.sing...@barajoun.com> wrote:
>
>> "import MySQLdb" works from python 2.6 ( outside maya ). But since maya
>> is using python 2.7 above command gives an error.
>>
>> # ImportError: No module named _mysql #
>>
>> Question :
>>
>> How do i get independant of download a module from net to run mysql ( or
>> an alternative ) through maya.
>>
>> What is step by step installation to get MySQL running on maya ( linux (
>> centos ) and windows )
>>
>> If their is a need to compile ( or any thing like this, how would a first
>> timer do it ).
>>
>>
>>
>> Thank you.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/a7bacd4d-95aa-4954-a991-cade53856496%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Tony
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAJhmvsSuE47hAsSzqe%2BbjwAL%2BXzWe7aNcfgFBxfAfKL%3DKwhO%2BA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAJhmvsSuE47hAsSzqe%2BbjwAL%2BXzWe7aNcfgFBxfAfKL%3DKwhO%2BA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Marcus Ottosson*
konstrukt...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOBTdsLRGMVKnz-roJ3GcNs_6NaNuhG%2Bz1xnGfFvgtUMXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to