Skip to content

Python 3.7.8: "TypeError: Expected maxsize to be an integer or None" for lru_cache in line 780 #135

Closed
@MartinThoma

Description

@MartinThoma
$ pip install pytm
$ python pytm-example.py
Traceback (most recent call last):
  File "pytm-example.py", line 3, in <module>
    from pytm.pytm import TM, Server, Datastore, Dataflow, Boundary, Actor, Lambda
  File "/home/math/.pyenv/versions/3.7.8/lib/python3.7/site-packages/pytm/__init__.py", line 3, in <module>
    from .pytm import Element, Server, ExternalEntity, Dataflow, Datastore, Actor, Process, SetOfProcesses, Boundary, TM, Action, Lambda, Threat, Classification, Data
  File "/home/math/.pyenv/versions/3.7.8/lib/python3.7/site-packages/pytm/pytm.py", line 486, in <module>
    class TM():
  File "/home/math/.pyenv/versions/3.7.8/lib/python3.7/site-packages/pytm/pytm.py", line 780, in TM
    @lru_cache
  File "/home/math/.pyenv/versions/3.7.8/lib/python3.7/functools.py", line 490, in lru_cache
    raise TypeError('Expected maxsize to be an integer or None')
TypeError: Expected maxsize to be an integer or None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions