Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Plug-In install fails Maya 2017 #22

Open
sbuckley010 opened this issue Oct 24, 2017 · 19 comments
Open

Plug-In install fails Maya 2017 #22

sbuckley010 opened this issue Oct 24, 2017 · 19 comments

Comments

@sbuckley010
Copy link

I've been trying to install the plug in but keep getting this error:

updateRendererUI;
Initializing Azure Batch plug-in
Checking for dependencies...
Unable to load pathlib==1.0.1: No module named pathlib
Unable to load futures==3.1.1: No module named concurrent.futures
Unable to load msrestazure==0.4.11: No module named msrestazure
Unable to load azure-common==1.1.8: No module named azure.common
Unable to load azure-mgmt-storage==1.0.0: No module named azure.mgmt.storage
Unable to load azure-batch-extensions==0.2.0: No module named azure.batch_extensions
Unable to load azure-storage==0.32.0: No module named azure.storage
Unable to load azure-batch==3.0.0: No module named azure.batch
Unable to load azure-mgmt-batch==4.0.0: No module named azure.mgmt.batch
Attempting to install dependencies via Pip.

Traceback (most recent call last):
File "Z:\Treanor_Paul\scripts\AzureBatch_Maya_Plugin-v0.14.0\azure_batch_maya\scripts\tools\install_pip.py", line 30, in
import pip
ImportError: No module named pip

Failed to install Pip. Please install dependencies manually to continue.
// Error: file: C:/Program Files/Autodesk/Maya2016/scripts/others/pluginWin.mel line 781: RuntimeError: file C:/Users/treanop/Documents/maya/scripts/AzureBatch_Maya_Plugin-v0.14.0/azure_batch_maya/plug-in/AzureBatch.py line 461: Failed to install pip //
// Warning: file: C:/Program Files/Autodesk/Maya2016/scripts/others/pluginWin.mel line 781: Failed to call script initialize function //
// Error: file: C:/Program Files/Autodesk/Maya2016/scripts/others/pluginWin.mel line 781: (AzureBatch) //

@seffyroff
Copy link

Looks like you don't have PIP - do you have Python installed? Recent versions of Python include Pip.

@annatisch
Copy link
Member

@sbuckley010, @seffyroff

Having an installation of Python/Pip is not required - the plugin should add a copy of pip into a Maya scripts directory in order for it to install additional dependencies.
This process would seem to be failing - however the error in the output doesn't show that anything went wrong....

Could you check what directories and files are present in:
C:\Users\username\Documents\maya\201x\scripts\azure-batch-libs?

@Petewday
Copy link

Petewday commented Nov 3, 2017

Hi There,

I am having a similar issue with Maya2018 Mac:

// Error: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 290: ImportError: file /Users/peter.day/Downloads/azure-batch-maya-master/azure_batch_maya/plug-in/AzureBatch.py line 477: Failed to install dependencies - please install manually //
// Warning: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 290: Failed to call script initialize function //
// Error: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 290: (AzureBatch) //

Any advice would be great?

Many Thanks

@annatisch
Copy link
Member

Hi @Petewday - we've resolved one of the causes of this issue and released v0.16.0 - give this a go and let us know if you're still having difficulties!

@Petewday
Copy link

Thanks for letting me not about the updated plugin. I have tested it on 2 machines this morning and get pretty much the same error:

/Applications/Autodesk/maya2018/Maya.app/Contents/bin/../Frameworks/Python.framework/Versions/Current/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/richard.todd/Desktop/azure_batch_maya/scripts/tools/install_pip.py': [Errno 2] No such file or directory

Failed to install Pip. Please install dependencies manually to continue.
// Error: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 905: RuntimeError: file /Users/richard.todd/Downloads/azure_batch_maya/plug-in/AzureBatch.py line 457: Failed to install pip //
// Warning: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 905: Failed to call script initialize function //
// Error: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 905: (AzureBatch) //

Is there anything I could be doing wrong? I have followed the steps from guide.

Thanks

Pete

@annatisch
Copy link
Member

Thanks @Petewday - can you confirm whether the following file exists?
'/Users/richard.todd/Desktop/azure_batch_maya/scripts/tools/install_pip.py'

If it does - could it possibly be some kind of permissions issue? Would seem unlikely if the files are on the User desktop.... Though maybe Maya does not have permission to execute scripts on the desktop.

@davidkydd
Copy link
Contributor

davidkydd commented Nov 20, 2017

This was resolved by sbuckley010 deleting the folder "Users<username>\AppData\Local\Temp\azure-batch-maya".

Have logged a separate issue into needing to version this file as that should prevent this situation.

@karlti
Copy link

karlti commented Nov 29, 2017

Hello @annatisch,

a customer reports exactly the same issue than the one Petewday experiences...
When trying to install the PlugIn with Maya2018 for Mac, after confirming the dialog that suggests to install the dependencies, he gets an error. the complete error text is:

// Error: file: /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/xgmToolRegistration.mel line 58: Cannot find procedure 'xgmToolManagerRegisterTool'. //

// Warning: file: /Applications/Autodesk/maya2018/plug-ins/xgen/scripts/igInitialize.mel line 78: Couldn't source xgmToolRegistration.mel //

// Warning: file: /Users/peter.day/Library/Preferences/Autodesk/maya/2018/prefs/filePathEditorRegistryPrefs.mel line 4: filePathEditor: Attribute 'aiImage.filename' is invalid or is not designated 'usedAsFilename'. //

// Warning: file: /Users/peter.day/Library/Preferences/Autodesk/maya/2018/prefs/filePathEditorRegistryPrefs.mel line 5: filePathEditor: Attribute 'aiStandIn.dso' is invalid or is not designated 'usedAsFilename'. //

// Warning: file: /Users/peter.day/Library/Preferences/Autodesk/maya/2018/prefs/filePathEditorRegistryPrefs.mel line 6: filePathEditor: Attribute 'aiVolume.filename' is invalid or is not designated 'usedAsFilename'. //

// AbcExport v1.0 using Alembic 1.5.8 (built Dec 24 2015 17:46:02)

# pymel.core : Updating pymel with pre-loaded plugins: invertShape, mayaHIK, GamePipeline, curveWarp, CloudImportExport, tiffFloatReader, MASH, poseInterpolator, ATFPlugin, hairPhysicalShader, ikSpringSolver, ik2Bsolver, xgenToolkit, AbcExport, retargeterNodes, gameFbxExporter, VectorRender, OpenEXRLoader, lookdevKit, Unfold3D, Type, mayaCharacterization, modelingToolkit, deformerEvaluator, renderSetup, GPUBuiltInDeformer, fbxmaya evalDeferred 'shaderBallRendererMenuUpdate';

// Warning: line 1: filePathEditor: Attribute 'aiStandIn.dso' and label 'Standin' have been saved already. // // Warning: line 1: filePathEditor: Attribute 'aiVolume.filename' and label 'VDB' have been saved already. // // Warning: line 1: filePathEditor: Attribute 'aiImage.filename' and label 'Image' have been saved already. //

import arnold // Successfully imported python module 'arnold' import mtoa // Successfully imported python module 'mtoa' import mtoa.cmds.registerArnoldRenderer;mtoa.cmds.registerArnoldRenderer.registerArnoldRenderer() Maya 2018 importing module pymel 1.0.10 (/Applications/Autodesk/maya2018/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.7/site-packages/pymel/__init__.py) // Successfully registered renderer 'arnold'

// Warning: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/startup/autoLoadPlugin.mel line 35: Loading plug-in 'mtoa' has resulted in changes to the scene that may need to be saved. //

// AbcImport v1.0 using Alembic 1.5.8 (built Dec 24 2015 17:46:02) updateRendererUI; updateRendererUI;

Initializing Azure Batch plug-in Checking for dependencies... Unable to load pathlib==1.0.1: No module named pathlib Unable to load futures==3.1.1: No module named concurrent.futures Unable to load msrestazure==0.4.11: No module named msrestazure Unable to load azure-common==1.1.8: No module named azure.common Unable to load azure-batch-extensions==1.0.1: No module named azure.batch_extensions Unable to load azure-mgmt-storage==1.0.0: No module named azure.mgmt.storage Unable to load azure-storage==0.32.0: No module named azure.storage Unable to load azure-batch==4.0.0: No module named azure.batch Unable to load azure-mgmt-batch==4.0.0: No module named azure.mgmt.batch Attempting to install dependencies via Pip.

Applications/Autodesk/maya2018/Maya.app/Contents/bin/../Frameworks/Python.framework/Versions/Current/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/peter.day/Downloads/azure-batch-maya-master/azure_batch_maya/scripts/tools/install_pip.py': [Errno 2] No such file or directory

Failed to install Pip. Please install dependencies manually to continue.

***// Error: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 905: RuntimeError: file /Users/peter.day/Downloads/azure_batch_maya 2/plug-in/AzureBatch.py line 457: Failed to install pip // ***

// Warning: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 905: Failed to call script initialize function //

// Error: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 905: (AzureBatch) //

file '/Users/peter.day/Downloads/azure-batch-maya-master/azure_batch_maya/scripts/tools/install_pip.py' is definitely present...

please could you advise on how deal with a potential permission issue?

Thank you in advance,

/*Karl

@annatisch
Copy link
Member

Hi @karlti - I haven't been able to reproduce this particular error - however I encountered a variety of other errors on my Mac due to out-of-date SSL libraries. As a result I've been forced to refactor some of the installation script which I'm hoping might solve your issue as well.
Once I've finished testing I'll PR my changes.

@karlti
Copy link

karlti commented Dec 1, 2017

Thank you very much, dear @annatisch :)

@karlti
Copy link

karlti commented Dec 13, 2017

Hello Anna,
any news on that PlugIn Issue?
Thank you.

@karlti
Copy link

karlti commented Jan 2, 2018

Happy new Year!

are there any news on this OSX Plug-In issue?

Thank you.

@annatisch annatisch mentioned this issue Jan 6, 2018
@annatisch
Copy link
Member

Happy new year @karlti!
Sorry for the delay - I had been trying to roll this fix up with a bunch of others, but they have ended up taking much longer than I intended. So I have PR'ed this fix alone for the time being so we can get it published asap!

@karlti
Copy link

karlti commented Jan 8, 2018

Yep, Happy New Year you too, @annatisch!
So we await the merge....

Thanks & Enjoy!
Karl

@annatisch
Copy link
Member

@karlti - The fixes are now released :)
Let me know if this resolves your installation troubles and I'll close the issue.
I would recommend deleting the previous plugin, and anything left behind in your Maya scripts directory (if anything got partially installed it will be in a directory in the scripts folder called 'azure-batch-libs'

@karlti
Copy link

karlti commented Jan 19, 2018

Hi @annatisch .
Yes, I had already informed the customer and he downloaded the fixed master. But ran into exactly the same problem, with the same err output than before.

I think, we forgot to clean the plugin stuff from 'azure-batch-libs', so i advised him to do so today.
lets see if this helps...

In the meantime, i checked a little bit around & sent him instructions how he can manually run "getpip.py" from his maya python env (hopefully i got it right...). I am awaiting his feedback...

btw he has "Maya2018", does this matter?

regards,
/*Karl

@annatisch
Copy link
Member

Thanks @karlti - I do find it odd that the error would be exactly the same.
As you mention, it would be good to confirm the cleaning up of any earlier files, and to be sure that the older plugin was trashed.

Regarding Maya 2018 - this should have no impact on the install process (it's what I'm using on my mac), however the VM images are currently running Maya 2017. I believe the team that builds the rendering service is publishing a new image - @davidkydd should be able to give you a time frame.

@davidkydd
Copy link
Contributor

Hi @karlti we are aiming to have the new images out which include maya2018 in the next couple of weeks.

@karlti
Copy link

karlti commented Jan 24, 2018

Thanks @davidkydd

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants