Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Ticket #362 (new defect)

Opened 2 years ago

Last modified 3 weeks ago

Execute pyInstall build exe file under windows, it show "No Disk, There is no disk in the drive. Please insert a disk into drive \Device\Harddisk3\DR3" [cancel][Try Again][Continue]

Reported by: alarmz@… Owned by: giovannibajo
Priority: normal Milestone: PyInstaller 3.0
Component: Loader Version: 1.5
Severity: normal Keywords: No Disk
Cc:

Description

[step to reproduce]

  1. I have 3 hard disks driver.
  2. I copy pyInstaller1.5 to Disk2 rather than Disk0
  3. execute python Makespec.py -D F:\Myprogram\demo.py
  4. execute python Build.py ..\demo\demo.spec
  5. pyInstaller will make a exe file for me
  6. I copy that file to client machine, and client machine have USB card reader,

it have Disk2 already mount but no memory card inside.

  1. When I execute the demo.exe in the client machine, it will show

fallow message "No Disk, There is no disk in the drive.
Please insert a disk into drive \Device\Harddisk3\DR3" [cancel][Try Again][Continue] under windows 2008,
and show "No Disk, Exception Processing Message" [cancel][TryAgain?][Continue] under windows XP sp3

https://lh3.googleusercontent.com/EDKSsmqfjm_C4R0w6kc8G1EugzHaLUKENlo8kBfsPYJnMoVX-8AP00Un9lj8EJLL9rRf8k913EWDjDTRkYGpMLqzXQ=s512

[What happened instead]

Execute binary program created by pyInstaller1.5 or trunk version under windows,
will popup error message
"No Disk, There is no disk in the drive. Please insert a disk into drive \Device\Harddisk3\DR3" [cancel][Try Again][Continue]
https://lh4.googleusercontent.com/jZb9hjw8M_YfBUrkezUJl0LrZqInBEXgmivqpndc8a2nFzhpjgrBoXDZtPkSnPBYK7mYPEQr7b0wUDIaxkVobfBInA=s512

[What you expect to happen]
When copy pyInstaller program into Disk0 and rebuild the binary file,
the error message just gone. this problem cost me a lot of time,
hop pyInstaller develop team can take a look.

Attachments

winmain.patch (882 bytes) - added by rishisharma 7 months ago.
Patch for winmain.c to disable Windows error messages.

Change History

Changed 7 months ago by rishisharma

Patch for winmain.c to disable Windows error messages.

comment:1 Changed 7 months ago by rishisharma

Hi PyInstaller? team.

I believe I solved this issue for 1.5 by disabling Windows errors. I've attached the patch to be compliant with the GPL here.

Here is the URL that explains the context of shutting these off:

http://msdn.microsoft.com/en-us/library/ms680621(VS100).aspx

comment:2 Changed 7 months ago by matysek

  • Owner changed from matysek to giovannibajo
  • Component changed from PyInstaller to Loader
  • Milestone set to PyInstaller 2.1

comment:3 Changed 4 weeks ago by matysek

  • Milestone changed from PyInstaller 2.1 to PyInstaller 3.0

This bug report seems somehow chaotic to me:

  • There are steps how to reproduce but no code example.
  • I don't know why the message "No Disk, There is no disk in the drive." is showed with the created executable

Could you provide more details?

Could you try development version?

comment:4 Changed 3 weeks ago by rishisharma

FWIW, we could not reproduce this with the 2.0 build. The issue seems to only affect our usage of 1.5.

The way we went about reproducing this is notoriously difficult.

  1. User would need to have a USB stick plugged in.
  2. User at some point would remove the USB stick
  3. User would then start the application

This only occurred with some specific hardware for us. I'm unsure as to why Windows is looking at a now defunct location. However it does. So the patch I submitted really only fixes the bootloader to ignore Windows messages in general.

I'm unsure if it affects HEAD, but I would expect not. If anything I would highly suggest you patch this into 1.5 and release new bootloaders for that version.

The patch itself is fairly benign, so unsure if you wish to include it in HEAD anyhow.

comment:5 Changed 3 weeks ago by matysek

Could you try the HEAS if possible?

I'm not sure if it's the right think to ignore windows messages.

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.