Skip to content

types.py module has naming conflict creating a "MappingProxyType" #362

Closed

Description

@syedalihasany

ImportError: cannot import name 'MappingProxyType' from 'types'

This error is returned when running the command python election.py or python manifest.py

The error is probably due to python not recognizing the types.py file in the directory electionguard-python-main/src/electionguard where the rest of the files are also present e.g. election.py and manifest.py

Activity

  1. keithrfung commented on Jul 9, 2021

    @keithrfung
    Contributor

    The long term fix to this is refactoring types.py. This should solve the issue very quickly. Renaming this issue to assist in users being able to resolve this issue.

    Source

  2. changed the title [-]" MappingProxyType " error given when running election.py[/-] [+]types.py module has naming conflict creating a "MappingProxyType"[/+] on Jul 9, 2021
  3. soham4abc commented on Jul 10, 2021

    @soham4abc
    Contributor

    I am willing to work on this issue. But, I have a question "do we need to rename the types.py?

  4. added 2 commits that reference this issue on Jul 10, 2021
    afa7002
    e43cd02
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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions