You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
types.py module has naming conflict creating a "MappingProxyType" #362
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
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.
changed the title [-]" MappingProxyType " error given when running election.py[/-][+]types.py module has naming conflict creating a "MappingProxyType"[/+]on Jul 9, 2021
Activity
keithrfung commentedon Jul 9, 2021
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
[-]" MappingProxyType " error given when running election.py[/-][+]types.py module has naming conflict creating a "MappingProxyType"[/+]soham4abc commentedon Jul 10, 2021
I am willing to work on this issue. But, I have a question "do we need to rename the
types.py?Renamed module types to type Fix: Election-Tech-Initiative#362
Renamed module types to type Fix: Election-Tech-Initiative#362