Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.8 AttributeError: module 'typing' has no attribute 'TupleMeta' #78

Open
LinuxIsCool opened this issue Dec 17, 2020 · 1 comment

Comments

@LinuxIsCool
Copy link

LinuxIsCool commented Dec 17, 2020

    import enforce                                                                                                             │   59     ss = SimStrategy()                                    
  File "/home/shawn/.virtualenvs/TEC/lib/python3.8/site-packages/enforce/__init__.py", line 1, in <module>                     │   60     ss.setMaxTicks(max_days * constants.S_PER_DAY / ss.time_step + 1)  
    from .decorators import runtime_validation                                                                                 │‼  61                                                                                                             
  File "/home/shawn/.virtualenvs/TEC/lib/python3.8/site-packages/enforce/decorators.py", line 10, in <module>                  │   62     assert hasattr(ss, 'save_interval')     
    from .enforcers import apply_enforcer, Parameters, GenericProxy, process_errors                                            │   63     ss.save_interval = constants.S_PER_DAY  
  File "/home/shawn/.virtualenvs/TEC/lib/python3.8/site-packages/enforce/enforcers.py", line 10, in <module>                   │‼  64     ┊   ┊   ┊          
    from .validator import init_validator, Validator                                                                           │   65     #go                                                   
  File "/home/shawn/.virtualenvs/TEC/lib/python3.8/site-packages/enforce/validator.py", line 4, in <module>                    │   66     master = SimEngine(ss, output_dir)              
    from .parsers import get_parser                                                                                            │   67     if not do_profile:                                                                                      
  File "/home/shawn/.virtualenvs/TEC/lib/python3.8/site-packages/enforce/parsers.py", line 262, in <module>                    │   68     ┊   master.run()                        
    typing.TupleMeta: _parse_tuple,                                                                                            │ NORMAL  E1  Python 3.8.6 64-bit | run_1.py                                               unix | utf-8 | python    3%    3:1  
AttributeError: module 'typing' has no attribute 'TupleMeta'
@stardust85
Copy link

This project looks dead :( It has an active fork, but it is not released to PyPI. Till then, I'm using https://github.com/connor-makowski/type_enforced instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants