I believe I figured things out. Adding 'F' as an option via setting 
options=[('F' ,None,'OPTION')] in my previous attempt won't work since the 
only options that can be included in the bundled app in such a manner are 
v, u, W. 

Is that correct?

Instead I simply ran my_app.spec --onefile at the command line, which 
worked. 

Thanks

Paul 

On Monday, February 7, 2022 at 10:48:55 AM UTC-5 Paul Fishback wrote:

> So, following the steps at 
> https://pyinstaller.readthedocs.io/en/stable/spec-files.html, I could add 
> the run time option -F,--onefile in my spec file by defining
>
> options=[('F' ,None,'OPTION')]
>
> and including this as a parameter of my EXE instance, e.g. 
>
> exe = EXE(pyz,
>           a.scripts, 
>           [],
>           options,...)
>
>
> This didn't change the outcome, so I'm still missing something.
>
> Thanks
>
> On Monday, February 7, 2022 at 3:12:23 AM UTC-5 bwoodsend wrote:
>
>> You’ve built in onedir mode (the default) which as the name suggests 
>> produces a directory. The EXE file inside that directory will not function 
>> without the rest of the contents of that folder. You need to distribute the 
>> folder with the program name. Or build in --onefile mode.
>> ​
>> On Sunday, February 6, 2022 at 5:01:49 PM UTC fishba...@gmail.com wrote:
>>
>>> My computer is a Mac running OS 11.6.1 and I've created a Windows 10 
>>> virtual machine with VMware Fusion. 
>>>
>>> I've had no problems creating an .app with pyinstaller on the Mac side. 
>>> I can move it to a new directory and double-click to open it.
>>>
>>> One the Windows side, I can run pyinstaller.exe fine using a 
>>> "bare-bones" .spec file, where I've only attempted to change the icon. The 
>>> .exe was located in a folder (having the program name) which in turn was 
>>> located in dist. The original .py and .spec were located 
>>> in  C:\Users\MyName\Desktop
>>>
>>> Unfortunately the .exe cannot be opened when I move it to a new 
>>> directory on my virtual machine. Double clicking it results in a fatal 
>>> error message, 
>>>
>>> "Error loading Python DLL '\\vmware -host\Shared 
>>> Folders\Desktop\python39.dll '. LoadLibrary: The specified module could not 
>>> be found. 
>>>
>>> I'm pretty sure I'm missing something in terms of how a virtual machine 
>>> works and would appreciate insights into what I'm doing wrong. 
>>>
>>> Thanks
>>>
>>> PaulF
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/46f7760d-c193-4d9d-89e5-b88798806225n%40googlegroups.com.

Reply via email to