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 [email protected] 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/c07f8c0d-8a8b-4dd0-b9d1-07f4dbec1c5en%40googlegroups.com.

Reply via email to