Mark, what does the actual command that you are running look like that produces the error?
On 7 September 2016 at 11:46, Mark Jackson <[email protected]> wrote: > Thanks for all the replies guys, currently all our testing / unitTesting > all goes through nose and coverage, I keep thinking about moving some of > that to doctest side of things but thats all got side-lined for a while. > > Mock sounds like something I should be looking into, but I still can't get > my head round why Sphinx can't deal with OpenMaya, unless the Sphinx script > itself is 32bit and therefore consuming the 64bit OpenMaya is bailing it? > > > > On 7 September 2016 at 11:31, Christopher Crouzet < > [email protected]> wrote: > >> Yes, I did see this but I've got no idea what it refers to. I'd be >> curious to know what kind of “testing” code would have its place within a >> doc generation process? >> >> >> On 7 September 2016 at 17:25, Marcus Ottosson <[email protected]> >> wrote: >> >>> > Marcus: I have no idea what this MetaData implementation refers to? >>> >>> Hi Christopher, Mark was referring to this by name in the original >>> question as one of the requirements for his document generation. >>> >>> For completeness, here it is again. >>> >>> > all our unitTests run fine and those all call the same Maya boot >>> sequence which in turn needs OpenMaya for all the MetaData testing. >>> >>> Best, >>> Marcus >>> >>> >>> On 7 September 2016 at 11:22, Christopher Crouzet < >>> [email protected]> wrote: >>> >>>> PS: the mock code isn't mine and I failed to credit the original author >>>> in my repository, so here it is for now: http://stackoverflow.com/a/235 >>>> 73376/1640404. I'll add the link in a future commit. >>>> >>>> >>>> On 7 September 2016 at 17:13, Christopher Crouzet < >>>> [email protected]> wrote: >>>> >>>>> Marcus: I have no idea what this MetaData implementation refers to? >>>>> >>>>> Cesar: True but I personally like avoiding unnecessary external >>>>> dependencies for such simple needs (the module `mock` is not part of >>>>> `mayapy` which is Python 2). Otherwise it feels like coding in JavaScript >>>>> using one line NPM modules such as https://github.com/kevva/is-po >>>>> sitive :) To each its own. >>>>> >>>>> >>>>> On 7 September 2016 at 17:01, Cesar Saez <[email protected]> wrote: >>>>> >>>>>> No need to reinvent the wheel, there's a std/production proved mock >>>>>> module! (it's part of python3 std Library iirc). >>>>>> >>>>>> pip install mock >>>>>> >>>>>> You basically replace Maya entries on sys.modules by a MagicMock >>>>>> instance (check the docs for more info, there are convenience functions >>>>>> to >>>>>> do it and everything... mocking dependencies is a very common practice >>>>>> and >>>>>> is well documented). >>>>>> >>>>>> Hope this helps, >>>>>> Cheers >>>>>> >>>>>> -- >>>>>> 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 [email protected]. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAPamJi >>>>>> -ARG9Amp3twfCcPY8m-%3DBw-HQpfZuZ1TTtnLitJsV-6A%40mail.gmail.com >>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPamJi-ARG9Amp3twfCcPY8m-%3DBw-HQpfZuZ1TTtnLitJsV-6A%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Christopher Crouzet >>>>> *http://christophercrouzet.com* <http://christophercrouzet.com> >>>>> >>>>> >>>> >>>> >>>> -- >>>> Christopher Crouzet >>>> *http://christophercrouzet.com* <http://christophercrouzet.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 [email protected]. >>>> To view this discussion on the web visit https://groups.google.com/d/ms >>>> gid/python_inside_maya/CANuKW51ean%3DeKNFf-XvQ2zZU1Cf4uUW-g8 >>>> RPbsCbky50TeGtCg%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/python_inside_maya/CANuKW51ean%3DeKNFf-XvQ2zZU1Cf4uUW-g8RPbsCbky50TeGtCg%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> *Marcus Ottosson* >>> [email protected] >>> >>> -- >>> 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 [email protected]. >>> To view this discussion on the web visit https://groups.google.com/d/ms >>> gid/python_inside_maya/CAFRtmODCz8g72RgDuhCex%3DuBukRLGXqhSy >>> eF0dxReJ9tj6GqYw%40mail.gmail.com >>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODCz8g72RgDuhCex%3DuBukRLGXqhSyeF0dxReJ9tj6GqYw%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Christopher Crouzet >> *http://christophercrouzet.com* <http://christophercrouzet.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 [email protected]. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/python_inside_maya/CANuKW53eYxf0hrQ%2BvTOw%2B2KFS73TovL8 >> cSN30ZJgJn5Y05gYrA%40mail.gmail.com >> <https://groups.google.com/d/msgid/python_inside_maya/CANuKW53eYxf0hrQ%2BvTOw%2B2KFS73TovL8cSN30ZJgJn5Y05gYrA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > ------------------------------------- > Mark Jackson > CEO / Technical Director > red9consultancy.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 [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/python_inside_maya/CAGQH2FHO7wBFsXcFNTZdAcYhbxMxo > R3z8EeHh%3DyUBzKWqSftTw%40mail.gmail.com > <https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FHO7wBFsXcFNTZdAcYhbxMxoR3z8EeHh%3DyUBzKWqSftTw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAsbcc61YU-zJ%3D0inEvQ0VQ3_AnS8dux3NVOKi5peJgtg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
