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/204e0c5d-e4a5-4fbf-9593-ec0c15e94b67n%40googlegroups.com.

Reply via email to