Votes
1
Product:
Character Creator 5
Version:
5.06
Status:
Assigned
Issue 12513
Maya Auto Setup, Hardcoded Paths
Trying to drop the "installmel.mel" (great name) into maya, I receive this error:

Error: file: {Path To Script}/CC Auto Setup for Maya 2024/installmel.mel line 45: ModuleNotFoundError: file \\nas4\ut\LUKEYU-CC Pipeline\AutoSetup\AutoSetup-for-Maya\AutoSetupForMaya\lib\MaterialFactory.py line 17: No module named 'materials.AIMaterials'

It looks like hardcoded paths inside of "AutoSetupMain.pyc" (im guessing). MaterialFactory file does exist, but it's a compiled file, not a py file.

It's insane to me that you guys don't deliver the scripts as py files. It's wildly petty and nearly unheard of. It makes modification, troubleshooting, and integration into pipelines, hell.

Thanks for your help. Please let me know when this is fixed, as it's halted production. Or just release the plugin with non-compiled python files and I'll fix it myself.
OS: Windows 10
  •  3
  •  234
Submitted bydaunishih
1
COMMENTS (3)
daunishih
Any update to this? Does anyone have a solution to my comment from March 11th?

Thanks, 
Daunish
daunishih
Thank you for getting back to me. 

I appreciate the bat file suggestion, you are right, Maya won't pick up the env variables while already open. This was my mistake in the video. But they are not what's causing this issue. Both the OSL shader path and PyMEL are already installed correctly.

Thank you for the updated pyc file. It did not have any impact on resolving this issue. The error code is the same. I still can't run the Maya Auto Setup.
Feedback Tracker Admin
Hi Daunish,

Thank you for sharing the video and for your candid feedback regarding the installation workflow. We appreciate your insights on the environment variables and the use of .bat files; I will make sure to pass your suggestions along to our development team for future improvements.

To help you get this resolved quickly, we have prepared an updated .pyc file for you. While we cannot provide the uncompiled Python source code, replacing the existing file with this updated one should fix the issue you are experiencing.

Here are the steps to apply the fix:

Download the attached .pyc file.

Navigate to your installation folder and replace the existing file of the same name in this specific directory:
...\CC Auto Setup for Maya 2024\lib

Important: After reviewing your video, we noticed that Maya was running while you executed the .bat file. Please ensure that Maya is completely closed before you run the .bat file. If Maya is open, the environment variables cannot be applied correctly.

Please give these steps a try and let us know if the setup completes successfully.

Thank you for your patience and cooperation!

Kayla
Reallusion
daunishih
Video showing error available via google drive:
https://drive.google.com/file/d/1-hStQcU4RwYt9VKeliHvjOQV9jLbWkLZ/view?usp=sharing
You do not allow uploading of videos to this platform.

If you guys would just supply me with the uncompiled Python files id be happy to fix this issue myself (happy is the wrong word, more like, don't want to waste more time).

Ive looked through what code I can; every part of this process is bad. You should NOT be appending "Arnold_Plugin_Path" to my sys vars. While it technically works, it is not the correct workflow; that path can be appended in Maya env.

You should not have anyone running bat files at all! This whole process should be a Module, quicker, cleaner, much safer, and easier to update.

Thanks for the help so far, 
Daunish
daunishih
I ran a file check on the zipped folder vs the unzipped folder I'm using to install, no differences. I checked my antivirus, and no files were moved to quarantine during unpacking. I turned off my virus protection during the install process, and there was no change to the error result.

While comparing files, I noticed that there wasn't a single file an antivirus would target, with the exception of the bat files. Those files have no relation to the error I'm currently getting.

So we still have no solution to the problem. What would you suggest for the next steps to get the plugin to work? I'll ask again, could I get uncompiled Python files to diagnose the issue myself?
Feedback Tracker Admin
It’s unfortunate that the same issue still occurs after updating the version. We’ve discussed this internally with our team and suspect that antivirus software may have quarantined some files. Could you please check whether your antivirus software is blocking any related files (or temporarily disable it) and then try installing again?

Tina
Feedback Tracker Admin
Hi daunishih,

Thank you for reaching out. We have tested the Maya Auto Setup installation process in a clean environment following our official guidelines, and we were unable to reproduce the module error you mentioned.

This issue typically occurs if the Maya Auto Setup folder is moved or deleted after the installation. During the setup, a .bat file configures environment variables that link directly to the os_shaders and other dependencies inside that specific folder. If the folder is no longer in its original installation path, Maya will fail to locate the required modules.

Please download the latest version of the plugin from our official website:
https://www.reallusion.com/auto-setup/maya/download.html

After downloading, please try reinstalling it. You can extract and place the Auto Setup folder in any preferred directory before starting, but please ensure the folder remains there permanently after you drop "installmel.mel" into Maya.

For a detailed walkthrough, please refer to our official installation guide:
https://courses.reallusion.com/home/character-creator/pipelines-and-render/maya?v=installation-guide-for-maya-auto-setup-%7C-character-creator-5-tutorial

If the issue persists after following these steps, please provide a screen recording of your entire installation process so our team can investigate your specific environment setup.

Best regards,
Kayla
Reallusion
1