Skip to content

'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows) #54290

Closed

Description

@ValeryLesin
BPO 10081
Nosy @brettcannon
Superseder
  • bpo-9425: Rewrite import machinery to work with unicode paths
  • 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 = None
    closed_at = <Date 2010-10-13.16:48:37.302>
    created_at = <Date 2010-10-13.08:32:47.154>
    labels = ['interpreter-core', 'type-bug', 'expert-unicode']
    title = "'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows)"
    updated_at = <Date 2010-10-13.16:48:37.301>
    user = 'https://bugs.python.org/ValeryLesin'

    bugs.python.org fields:

    activity = <Date 2010-10-13.16:48:37.301>
    actor = 'brett.cannon'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-10-13.16:48:37.302>
    closer = 'brett.cannon'
    components = ['Interpreter Core', 'Unicode']
    creation = <Date 2010-10-13.08:32:47.154>
    creator = 'Valery.Lesin'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 10081
    keywords = []
    message_count = 2.0
    messages = ['118505', '118544']
    nosy_count = 2.0
    nosy_names = ['brett.cannon', 'Valery.Lesin']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '9425'
    type = 'behavior'
    url = 'https://bugs.python.org/issue10081'
    versions = ['Python 3.1', 'Python 3.2']

    Activity

    1. ValeryLesin commented on Oct 13, 2010

      ValeryLesinmannequin
      MannequinAuthor

      OS: windows

      The attempt to import module with non 7-bit ASCII name results in
      'ImportError: No module named <module name>' exception.

      Some thoughts: import.c uses functions like fopen, stat and FindFirstFile which wouldn't work correctly with non 7-bit ASCII filenames in Windows.

    2. brettcannon commented on Oct 13, 2010

      @brettcannon
      Member

      This is a duplicate of 9425

    3. 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

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-unicodetype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions