Unable to create a python script to MSIX

%3CLINGO-SUB%20id%3D%22lingo-sub-1180343%22%20slang%3D%22en-US%22%3EUnable%20to%20create%20a%20python%20script%20to%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1180343%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20built%20a%20application%20in%20python(pyqt5)%20and%20converted%20my%20application%20to%20EXE%20using%20Pyinstaller.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20I%20am%20trying%20to%20convert%20my%20exe%20to%20MSIX.%20MSIX%20packing%20tool%20or%20third%20party%20tools%20are%20not%20supporting%20it.%20Is%20there%20a%20way%20to%20fix%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EBrinda%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1180489%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20create%20a%20python%20script%20to%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1180489%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F562325%22%20target%3D%22_blank%22%3E%40Brindanivas%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI'd%20like%20to%20understand%20your%20problem%20a%20bit%20better%20here.%20What%20do%20you%20mean%20by%20not%20supporting%20it%3F%20Are%20you%20unable%20to%20run%20your%20exe%20or%20is%20it%20not%20capturing%20anything%20when%20it%20does%20run%3F%20If%20this%20is%20an%20issue%20with%20the%20MSIX%20Packaging%20Tool%2C%20I%20recommend%20filing%20a%20Feedback%20Hub%20issue%20under%20Applications%20%26gt%3B%20MSIX%20Packaging%20Tool%20and%20ensuring%20there%20is%20a%20repro%20(or%20file%20it%20from%20the%20MSIX%20Packaging%20Tool%20directly%20if%20you%20are%20encountering%20an%20error)%20so%20that%20we%20can%20get%20to%20the%20bottom%20of%20the%20issue.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%2C%3C%2FP%3E%0A%3CP%3ESharla%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1222119%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20create%20a%20python%20script%20to%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1222119%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F562325%22%20target%3D%22_blank%22%3E%40Brindanivas%3C%2FA%3E%20While%20I%20don't%20know%20your%20particular%20python%20package%2C%20I%20generally%20find%20the%20need%20to%20include%20the%20Package%20Support%20Framework's%20FileRedirectionFixup%20whenever%20packaging%20something%20with%20python.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1222154%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20create%20a%20python%20script%20to%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1222154%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F149589%22%20target%3D%22_blank%22%3E%40Tim%20Mangan%3C%2FA%3E%2C%20can%20you%20let%20me%20know%20how%20to%20do%20it%20PyQt5.%20I%20am%20using%20pyinstaller%20to%20generate%20the%20exe%20setup.%20I%20am%20new%20to%20python%2C%20so%20can%20you%20please%20help%20on%20this.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1222175%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20create%20a%20python%20script%20to%20MSIX%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1222175%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F562325%22%20target%3D%22_blank%22%3E%40Brindanivas%3C%2FA%3E%20If%20using%20the%20Microsoft%20MSIX%20Packaging%20Tool%20(MMPT)%2C%20after%20installing%20the%20app%20(and%20the%20MMPT%20it%20still%20monitoring%20the%20install)%2C%20I%20run%20PsfTooling.%20This%20is%20a%20free%20app%20in%20the%20Microsoft%20Store.%20You%20run%20the%20shortcut%20wizard%2C%20select%20the%20FileRedirectionFixup%20(just%20use%20the%20default%20settings%20for%20the%20fixup)%2C%20click%20the%20Modify%20button%20and%20select%20any%20shortcuts%2C%20and%20apply%20to%20actions%20list.%20Running%20the%20additional%20two%20wizards%20(executables%2C%20click%20%22find%20exes%22%20button%2C%20then%20ftas%20%22find%22%20button)%20are%20recommended%2C%20even%20if%20not%20needed.%20Then%20on%20the%20actions%20page%20apply%20the%20changes.%20Close%20the%20tool%20and%20return%20to%20the%20MMPT%20to%20finish%20off%20packaging..%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi Team,

 

I built a application in python(pyqt5) and converted my application to EXE using Pyinstaller.

 

Currently I am trying to convert my exe to MSIX. MSIX packing tool or third party tools are not supporting it. Is there a way to fix it.

 

Thanks,

Brinda

4 Replies

hi @Brindanivas,

 

I'd like to understand your problem a bit better here. What do you mean by not supporting it? Are you unable to run your exe or is it not capturing anything when it does run? If this is an issue with the MSIX Packaging Tool, I recommend filing a Feedback Hub issue under Applications > MSIX Packaging Tool and ensuring there is a repro (or file it from the MSIX Packaging Tool directly if you are encountering an error) so that we can get to the bottom of the issue. 

 

Best,

Sharla 

@Brindanivas While I don't know your particular python package, I generally find the need to include the Package Support Framework's FileRedirectionFixup whenever packaging something with python.

@Tim Mangan, can you let me know how to do it PyQt5. I am using pyinstaller to generate the exe setup. I am new to python, so can you please help on this.

@Brindanivas If using the Microsoft MSIX Packaging Tool (MMPT), after installing the app (and the MMPT it still monitoring the install), I run PsfTooling. This is a free app in the Microsoft Store. You run the shortcut wizard, select the FileRedirectionFixup (just use the default settings for the fixup), click the Modify button and select any shortcuts, and apply to actions list. Running the additional two wizards (executables, click "find exes" button, then ftas "find" button) are recommended, even if not needed. Then on the actions page apply the changes. Close the tool and return to the MMPT to finish off packaging..