had the same happen when trying our setup with 2022
2022 by default uses python 3. 
any chance there is something in your pipeline or env variables that is 
python 2 and causing it to crash?
to check if this is the issue try launching 2022 in python 2 mode. if it 
doesn't crash you know how to solve the issue.
see 
https://matiascodesal.com/blog/how-to-launch-maya-2022-with-python-2-if-you-are-not-ready-for-python-3/

On Tuesday, 11 January 2022 at 09:59:33 UTC Benjam901 wrote:

> Hello all,
>
> I have just recently gotten to the part in the pipe where I have to launch 
> Maya 2022 from a batch file.
>
> So the process looks like this:
>
> - Start the toolhub
> - Click the Maya button
> - Launch the maya bat file via subprocess 
> - Within the bat file set the env params and then launch Maya
>
> The problem is that Maya 2022 is crashing without warning or crash log 
> anywhere.
>
> Maya 2019 boots fine and Maya 2020 I needed to change a few bits a pieces 
> for it to boot but it boots fine now but 2022 is being very fussy.
>
> If I launch the bat file from a regular commandline window it boots a-ok. 
> I even have the subprocess call running a new console window and still no 
> dice. 
>
> Here is my call & bat env settings:
>
> version==2022
> splash=path to splash img
>
> subprocess.Popen([boot_file, exe, version, splash], 
> creationflags=subprocess.DETACHED_PROCESS | 
> subprocess.CREATE_NEW_PROCESS_GROUP)
>
> batchfile:
> set QT_PREFERRED_BINDING=PySide2
> set QT_QPA_PLATFORM_PLUGIN_PATH=C:\Program 
> Files\Autodesk\Maya2022\plugins\platforms
> set PYTHONPATH=C:\Program 
> Files\Autodesk\Maya%VERSION%\Python37\Lib\site-packages;C:\Program 
> Files\Autodesk\Maya%VERSION%\Python37\DLLs;C:\Program 
> Files\Autodesk\Maya%VERSION%;%PYTHONPATH%
> set PYTHONHOME=C:\Program Files\Autodesk\Maya%VERSION%\bin
>
> start "" "C:\Program Files\Autodesk\Maya%VERSION%\bin\maya.exe"
>
>
> Any help would be much appreciated :)
>
> // Ben
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/af9a4a63-b4b1-4abc-b908-00e4f628873dn%40googlegroups.com.

Reply via email to