Hello group!

I am currently building a scene creator/opener app for Maya.
I am using Python(3.6.8) and PyQt5(5.15.0) for GUI stuff,
and "fbs(0.8.6)" to freeze my app to an exe file.

Everything works fine when I run my app in visual studio code by executing 
"(venv) fbs run", "maya_create.bat" calls "mayapy.exe" and "maya_create.py" 
without any problems...

But once I freeze the app "(venv) fbs freeze", and run the same bat file it 
gives me an error :(
```
Traceback (most recent call last):
  File "C:\Users\hko\chaos\target\Chaos\command\maya_create.py", line 3, in 
<module>
    from maya import standalone
ImportError: DLL load failed:
```

I've been struggling days with this problem...
Hope someone can help me out!!!

Thanks in advance :)


-------- 

``` maya_create.bat
chcp 65001
start "" "C:\Program Files\Autodesk\Maya2018\bin\mayapy"  
"%~dp0maya_create.py" "%1"
```

``` maya_create.py
import os
import sys
from maya import standalone
from maya import cmds
from maya import mel

args = sys.argv[1:]
if len(args) != 1:
print("accept only one argument")
scene = args[0]

standalone.initialize(name='python')

cmds.file(rename=scene)
cmds.file(save=True)
```

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/19b28e9a-6062-44ee-bdd0-fc53d3809b28o%40googlegroups.com.

Reply via email to