azure-batch-maya icon indicating copy to clipboard operation
azure-batch-maya copied to clipboard

Can't do a fresh install without dependency errors (v17)

Open psyrus opened this issue 7 years ago • 9 comments

Attempted to install v17 on 3 different computers, however each computer becomes stuck in a "Need to install azure-batch-extensions==1.0.1" loop. Deleting the whole My Documents\maya folder does not remedy the issue.

Are there any hidden (Appdata~) folders that need to be cleared in these cases?

Is the mayapy install progress logged anywhere for reference?

psyrus avatar Mar 27 '18 02:03 psyrus

The only way I could solve this was by manually running mayapy with the commands but altered to be:

mayapy C:\Users\trevor\Documents\maya\2017\scripts\azure-batch-libs\pip install azure-batch-extensions==1.0.1 --target C:\Users\trevor\Documents\maya\2017\scripts\azure-batch-libs\temp-target --ignore-installed

I then copied the files over to the main directory (although I could probably just have installed them directly into the parent azure-batch-libs from the start). Something seems to be a little strange with the way the following is working, at least on my 3 systems that I tested it: https://github.com/Azure/azure-batch-maya/blame/master/azure_batch_maya/plug-in/AzureBatch.py#L372

psyrus avatar Mar 30 '18 03:03 psyrus

It did not work in the end, it installed "successfully" (no more dependency loop) but now it just throws an error upon loading the shelf

ImportError: file C:\Users\trevor\Documents\maya\2017\scripts\azure-batch-libs\entrypoints.py line 19: No module named backports

backports is present in the parent lib directory though

psyrus avatar Mar 30 '18 03:03 psyrus

I am also having the same problem, please someone help me fix this problem.

swamiforlife avatar Apr 02 '18 15:04 swamiforlife

Hi Trevor, I have forwarded your query off to a colleague who will take a look in the morning.

Thanks, Andrew

ascobie avatar Apr 03 '18 10:04 ascobie

Thanks Andrew!

psyrus avatar Apr 03 '18 10:04 psyrus

@davidkydd I saw an email that you had commented but couldn't reproduce the issue.

Here's what happens on all 3 PCs that I try it on.

https://youtu.be/PiaB08iK79k

psyrus avatar Apr 04 '18 01:04 psyrus

Thanks Trevor yes after posting that comment I was able to repro this issue so deleted the comment :-)

No update yet but are continuing to investigate - your comment on yammer that even previous builds of the plugin are now exhibiting the same behaviour is a good tip off that something has changed "under our feet", and the fault is with one of the plugin dependencies or our usage of them.

davidkydd avatar Apr 05 '18 00:04 davidkydd

Also just a minor update on investigation progress thus far - it appears that the azure-batch-extensions dependency now requires msrestazure==0.4.14 or later, and the plugin is configured to fetch only msrestazure==0.4.11.

Changing the msrestazure version in AzureBatch.py to 0.4.14 breaks the "Need to install azure-batch-extensions==1.0.1" loop, and reveals the backports import error on shelf loading as described by psyrus above.

davidkydd avatar Apr 05 '18 01:04 davidkydd

This is fixed in c19a09b and in release v0.18.0 - cause was that azure-batch-extensions==1.0.1 changed at some point to require msrestazure==0.4.14 instead of 0.4.11. This required the install of the new dependency backports.configparser

davidkydd avatar Apr 06 '18 00:04 davidkydd