On Mon, Jun 22, 2020 at 10:21 AM <[email protected]> wrote: > Thanks for the reply :) > > I can see that all this python freezing thing can get very complicated > very quickly... > Even though I find a workaround to accomplish this, it would be a > nightmare to maintain it...!! > > I've been looking for other solutions(even other programming languages), > that does not have any conflict problems with python and easier to maintain. > Have you had any luck with writing Desktop apps with golang? > Since I am familiar with the Qt framework therecipe/qt( > https://github.com/therecipe/qt) seems like a good option for me. >
I've been developing in Go for years now and its a fantastic language that should become more popular in vfx and pipeline. Normally I use it for writing services, command line tooling, and apis. And I have also done some work where I start an embedded python interpreter to run py code, or export a Go module as a python compiled extension. One thing I haven't used it much for is desktop gui apps. Having a lot of Qt experience my first instinct was to reach for therecipe/qt. The downside is that it has a heavy provisioning process for each project, where you have to generate the bindings and make sure it links to the Qt libraries. Once you get it going, it does work. There are other GUI options depending on your needs. - https://fyne.io/ - actively developed and gaining more widgets and functionality - https://github.com/tslocum/tview - if you want a terminal UI There are more listed here: https://awesome-go.com/#gui If you do manage to solve your problems with Go, the deployment process becomes so much more simple. > > 2020년 6월 21일 일요일 오전 5시 45분 36초 UTC+9, Justin Israel 님의 말: >> >> It's been a long time since I have package python apps into frozen >> executables. I use to do it with pyinstaller and py2app. So I imagine your >> issue is with the pyinstaller layer that fbs is built upon. If I remember >> correctly, I didn't try and freeze Maya into the package. I would just rely >> on it being in the system path and starting a subprocess as needed from my >> frozen app. Otherwise if you were trying to freeze mayapy you would need to >> bundle the entire Maya distribution to make it portable. Is that your goal? >> Or are you just trying to bundle your app code and resources but still run >> the system Maya? If it's the latter then the error implies a possible path >> issue in your environment (disclaimer I don't know much about this for >> windows). Mayapy is usually a wrapper script to set env vars to point at >> the Maya bundled python interpreter. So you may need to customise your >> pyinstaller configuration based on that to make sure it can bootstrap >> properly to run against the external PYTHONHOME. That implies that you need >> to freeze against the right version of python for your Maya version. Sorry >> I can't be much more helpful than this. >> >> Seems like it's a hard task to accomplish: >> >> >> https://stackoverflow.com/questions/59131615/pyinstaller-error-while-run-maya-standalone >> >> >> http://discourse.techart.online/t/mini-portable-mayapy-exe-packager-non-gui/5975 >> >> >> On Sun, Jun 21, 2020, 8:15 AM <[email protected]> wrote: >> >>> 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 >>> <https://groups.google.com/d/msgid/python_inside_maya/19b28e9a-6062-44ee-bdd0-fc53d3809b28o%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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/d11f7cbd-2838-4464-9feb-4d3f594c9473o%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/d11f7cbd-2838-4464-9feb-4d3f594c9473o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPGFgA2octXnVq9VvpN%2BX8CVsBT3JzmGq%2B9cCZPaCBK9M2khdA%40mail.gmail.com.
