This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: "There is no disk in the drive" error
Type: Stage: resolved
Components: IO, Windows Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Lachlan.Kingsford, expangea, steve.dower, terry.reedy, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2014-10-27 06:53 by Lachlan.Kingsford, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (5)
msg230060 - (view) Author: Lachlan Kingsford (Lachlan.Kingsford) Date: 2014-10-27 06:53
An error is being raised that 'There is no disk in the drive. Please insert a disk into drive \Device\Harddisk1\DR1. Cancel, Try Again, Continue)'.

The line of code referred to has no reference to any file or disk access. None of its calling procedures have any file or disk access. As such, I am fairly confident that the error is not caused by an error in my code.

The Python interpreter was embedded via cx_freeze. The embedded interpreter was Win64 running on 64 bit Windows 7. The computer that reported the bug did not have Python installed on it.

I have been unable to replicate the bug. Similar bugs have been reported due to USB sticks and phones, but none were plugged in or removed while the program was being run.

At this stage, I am unsure if this is a bug with Windows, cx_freeze, or pygame. The bug is also listed on https://github.com/lkingsford/AtlasWarriors/issues/5, with access to the source available. You can view the stack trace and an image of the error, and the stack trace there.

I am not sure if this is a known issue but I am unable to find any reference to it.
msg230063 - (view) Author: Tim Golden (tim.golden) * (Python committer) Date: 2014-10-27 09:04
I very much doubt that this is a Python issue as such.

Other things being equal, I would expect Harddisk\DR1 to be a CD-ROM or
some other removable disk. Using something like winobj.exe from
sysinternals should show what it expects to be on a given machine. It's
certainly possible that the machine on which cx_freeze is being used has
a permanent D: drive while the corresponding drive on the target machine
is removable.

(Strictly Harddisk\DR1 needn't be the D: drive and it needn't be
removable, but that's far and away the most common configuration).

I obviously can't say why any code should be be trying to access that
drive. You could try running procexp.exe (sysinternals again) to see
what handle is being attempted on that drive by that program which might
lend a clue as to where the problem is arising. But, again, I don't
believe this is a Python issue.
msg230415 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-11-01 00:13
Lachian, I am closing this because I agree with Tim.  This tracker is for bug fixes (and enhancements) to the code at hg.python.org/cpython (and a couple of the sibling repositories). Bugs need to be demonstrated with a .py or .c program. This is almost certain a bug somewhere else. In the meanwhile, this report will remain here and be searchable.
msg409822 - (view) Author: Pop Expangea (expangea) Date: 2022-01-06 09:33
Probably not a Python bug, but I have detected this problem a couple of times, and it always happened the same way, while using pdoc package in a Python script. 

#### Steps to reproduce the behavior:
1. Connect mobile telephone (Avenzo Xirius 5.5 AV112) to my USB port to charge it.
2. Run a Python script which uses pdoc package: https://github.com/mitmproxy/pdoc
3. Only sometimes ... Python hangs and raises this alert: https://bugs.python.org/issue22739
4. If I launch other Python scripts no problem at all. If I comment out pdoc call in my script, no problem at all.
5. My pdoc script will only come back to work normally when in unplug my mobile telephone from USB port.

I understand pdoc tries to read .py scripts in my hard disk to produce html documentation.
msg409823 - (view) Author: Pop Expangea (expangea) Date: 2022-01-06 09:37
Forgot to comment versions:

pdoc: 8.1.0
Python: 3.8.7
Platform: Windows-7-6.1.7601-SP1
History
Date User Action Args
2022-04-11 14:58:09adminsetgithub: 66928
2022-01-06 09:37:19expangeasetmessages: + msg409823
2022-01-06 09:33:06expangeasetnosy: + expangea
messages: + msg409822
2014-11-01 00:13:49terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg230415

resolution: not a bug
stage: resolved
2014-10-27 09:04:51tim.goldensetmessages: + msg230063
2014-10-27 06:53:47Lachlan.Kingsfordcreate