--
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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FE5R54xNLg_hpoCgRDW-bGW7K%2BjPnp3XwNTX0xWg7FdiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Don't you mock Maya modules during docs generation?
Sphinx most likely doesn't need anything from Maya other than being able to import your modules, I totally recommend to take a look at mock for these kind of things.
Cheers
DLL load failed errors are typically due to your Python version trying to load a module that wasn't compiled for it.Have a look in your environment for things like PySide/PyQt and that your Python actually running is `mayapy`.
On 7 September 2016 at 09:31, Mark Jackson <mar...@gmail.com> wrote:
Morning all,I'm trying to get our API docs updated and to do so I've always run Sphinx to generate the docs but from an old laptop that was 32bit and running Maya2012.I'm trying to get the whole thing running again from 2016 but running into issues whenever the Sphinx build process hits OpenMaya.# # import maya.OpenMaya as OpenMaya# # File "S:\Maya_2016_DI\build\Release\runTime\Python\Lib\site-packages\maya\OpenMaya.py", line 25, in <module># # File "S:\Maya_2016_DI\build\Release\runTime\Python\Lib\site-packages\maya\OpenMaya.py", line 21, in swig_import_helper# # ImportError: DLL load failed: The specified procedure could not be found.As far as I can tell all the Eclipse environment is fine, all our unitTests run fine and those all call the same Maya boot sequence which in turn needs OpenMaya for all the MetaData testing. For some reason when Sphinx tries to build the Maya environment it bails with OpenMay.Can anybody shed any idea as to why Sphinx wouldn't play nicely with OpenMaya as it's driving me mad!thanksMark
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FE5R54xNLg_hpoCgRDW-bGW7K%2BjPnp3XwNTX0xWg7FdiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
--
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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODa7REV5oE5tgc3ABx%2B2KMYaq%3Djb4HSysh6QTirvwUjFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPamJi8d6%2B1Ni5LO5EY2Atd-qrkjfzJ6b9TWCpNiuwMFUJyp2g%40mail.gmail.com.
Have a look at trying to narrow it down to something reproducible. For example, delete half the pages of your Sphinx documentation, and see if it still breaks. Keep deleting half of half until you've got the smallest amount of lines that still throw the error.
Then post the whole sequence of commands that led to the problem. That might make it easier to see what's going on.
On 7 September 2016 at 10:37, Cesar Saez <ces...@gmail.com> wrote:
Don't you mock Maya modules during docs generation?
Sphinx most likely doesn't need anything from Maya other than being able to import your modules, I totally recommend to take a look at mock for these kind of things.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 python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPamJi8d6%2B1Ni5LO5EY2Atd-qrkjfzJ6b9TWCpNiuwMFUJyp2g%40mail.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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD6ZVDM6dcxH6gh3NMqFh8FyvPt9pksp6eXVAbMOnrRBQ%40mail.gmail.com.
If it isn't the case already, I'd do as Cesar said—maybe there are better implementations but here's an example of “mocking” the Maya module for Sphinx: https://github.com/christophercrouzet/banana.maya/blob/master/doc/conf.py#L11
On 7 September 2016 at 16:46, Marcus Ottosson <konstr...@gmail.com> wrote:
Have a look at trying to narrow it down to something reproducible. For example, delete half the pages of your Sphinx documentation, and see if it still breaks. Keep deleting half of half until you've got the smallest amount of lines that still throw the error.
Then post the whole sequence of commands that led to the problem. That might make it easier to see what's going on.----On 7 September 2016 at 10:37, Cesar Saez <ces...@gmail.com> wrote:Don't you mock Maya modules during docs generation?
Sphinx most likely doesn't need anything from Maya other than being able to import your modules, I totally recommend to take a look at mock for these kind of things.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 python_inside_maya+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPamJi8d6%2B1Ni5LO5EY2Atd-qrkjfzJ6b9TWCpNiuwMFUJyp2g%40mail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOD6ZVDM6dcxH6gh3NMqFh8FyvPt9pksp6eXVAbMOnrRBQ%40mail.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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANuKW50Tk-uaeJi6%3DdEopnLM0sp3bhXtgEAAOkyVh95UdeJ3aw%40mail.gmail.com.
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 python_inside_maya+unsub...@googlegroups.com.
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.
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-positive :) To each its own.
On 7 September 2016 at 17:01, Cesar Saez <ces...@gmail.com> 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 python_inside_maya+unsubscribe@googlegroups.com.
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.
--
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANuKW51ean%3DeKNFf-XvQ2zZU1Cf4uUW-g8RPbsCbky50TeGtCg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANuKW51ean%3DeKNFf-XvQ2zZU1Cf4uUW-g8RPbsCbky50TeGtCg%40mail.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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODCz8g72RgDuhCex%3DuBukRLGXqhSyeF0dxReJ9tj6GqYw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODCz8g72RgDuhCex%3DuBukRLGXqhSyeF0dxReJ9tj6GqYw%40mail.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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANuKW53eYxf0hrQ%2BvTOw%2B2KFS73TovL8cSN30ZJgJn5Y05gYrA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODCz8g72RgDuhCex%3DuBukRLGXqhSyeF0dxReJ9tj6GqYw%40mail.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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANuKW53eYxf0hrQ%2BvTOw%2B2KFS73TovL8cSN30ZJgJn5Y05gYrA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANuKW53eYxf0hrQ%2BvTOw%2B2KFS73TovL8cSN30ZJgJn5Y05gYrA%40mail.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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FHO7wBFsXcFNTZdAcYhbxMxoR3z8EeHh%3DyUBzKWqSftTw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAGQH2FHO7wBFsXcFNTZdAcYhbxMxoR3z8EeHh%3DyUBzKWqSftTw%40mail.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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAsbcc61YU-zJ%3D0inEvQ0VQ3_AnS8dux3NVOKi5peJgtg%40mail.gmail.com.