Skip to content

shutil: NameError (WindowsError) when moving from ext3 to fat32 under linuxΒ #46801

Closed

Description

@jeromechabod
BPO 2549
Nosy @tpn

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/tpn'
closed_at = <Date 2008-06-23.15:23:14.907>
created_at = <Date 2008-04-04.14:43:17.752>
labels = ['easy', 'library', 'type-crash']
title = 'shutil: NameError (WindowsError) when moving from ext3 to fat32 under linux'
updated_at = <Date 2008-06-23.15:23:14.906>
user = 'https://bugs.python.org/jeromechabod'

bugs.python.org fields:

activity = <Date 2008-06-23.15:23:14.906>
actor = 'draghuram'
assignee = 'trent'
closed = True
closed_date = <Date 2008-06-23.15:23:14.907>
closer = 'draghuram'
components = ['Library (Lib)']
creation = <Date 2008-04-04.14:43:17.752>
creator = 'jerome.chabod'
dependencies = []
files = []
hgrepos = []
issue_num = 2549
keywords = ['easy']
message_count = 3.0
messages = ['64930', '64931', '68636']
nosy_count = 3.0
nosy_names = ['draghuram', 'trent', 'jerome.chabod']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue2549'
versions = ['Python 2.5']

Activity

  1. jeromechabod commented on Apr 4, 2008

    jeromechabodmannequin
    MannequinAuthor

    shutil generate a NameError (WindowsError) exception when moving a
    directory from an ext3 to a fat32 under linux

    To reproduce it:
    under linux, current path on an ext3 filesytem, try to enter following
    commands:
    mkdir toto #on an ext3 partition
    python
    import shutil
    shutil.move("toto", "/media/fat32/toto") # /media/fat32 is mounted on a
    fat32 filesystem

    You will produce following error:
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib/python2.5/shutil.py", line 196, in move
        copytree(src, dst, symlinks=True)
      File "/usr/lib/python2.5/shutil.py", line 132, in copytree
        except WindowsError:
    NameError: global name 'WindowsError' is not defined

    Tested on ubuntu Feisty and a newly installed Hardy-beta.

  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    type-crashA hard crash of the interpreter, possibly with a core dump
    on Apr 4, 2008
  3. changed the title [-]shutil: NameError (WindowsWrror) when moving from ext3 to fat32 under linux[/-] [+]shutil: NameError (WindowsError) when moving from ext3 to fat32 under linux[/+] on Apr 4, 2008
  4. self-assigned this
    on Apr 4, 2008
  5. draghuram commented on Apr 4, 2008

    draghurammannequin
    Mannequin

    This problem has been noticed as part of bpo-1545 and a patch with the
    fix has been proposed but has a small problem with it. Do you want to
    take a look?

  6. draghuram commented on Jun 23, 2008

    draghurammannequin
    Mannequin

    This is duplicate of 3134. I posted a patch there.

  7. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

easystdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions