xnuinside / py-models-parser

Parser for Different Python Models (pure Python classes, Pydantic, Enums, ORMs: DjangoORM, Tortoise, SqlAlchemy, GinoORM, PonyORM, Pydal) to extract information about columns(attrs), model, table args,etc in one format.
MIT License
19 stars 1 forks source link

required parsimonious doesn't run on python 3.11 #10

Closed hrehfeld closed 1 year ago

hrehfeld commented 1 year ago

Describe the bug

  File "/home/hrehfeld/projects/ext/omymodels/.venv/lib/python3.11/site-packages/py_models_parser/__init__.py", line 1, in <module>
    from py_models_parser.core import dump_result, parse, parse_from_file
  File "/home/hrehfeld/projects/ext/omymodels/.venv/lib/python3.11/site-packages/py_models_parser/core.py", line 5, in <module>
    from py_models_parser.grammar import grammar
  File "/home/hrehfeld/projects/ext/omymodels/.venv/lib/python3.11/site-packages/py_models_parser/grammar.py", line 1, in <module>
    from parsimonious.grammar import Grammar
  File "/home/hrehfeld/projects/ext/omymodels/.venv/lib/python3.11/site-packages/parsimonious/__init__.py", line 9, in <module>
    from parsimonious.grammar import Grammar, TokenGrammar
  File "/home/hrehfeld/projects/ext/omymodels/.venv/lib/python3.11/site-packages/parsimonious/grammar.py", line 14, in <module>
    from parsimonious.expressions import (Literal, Regex, Sequence, OneOf,
  File "/home/hrehfeld/projects/ext/omymodels/.venv/lib/python3.11/site-packages/parsimonious/expressions.py", line 9, in <module>
    from inspect import getargspec
ImportError: cannot import name 'getargspec' from 'inspect' (/usr/lib/python3.11/inspect.py)

To Reproduce just install on py 3.11

Desktop (please complete the following information):

archongum commented 1 year ago

+1

xnuinside commented 1 year ago

Thanks for opening the issue. I were out of my projects last (mm half of year?)) . Will work on it now and fix it as soon as possible

xnuinside commented 1 year ago

https://pypi.org/project/py-models-parser/ version 0.7.0 with python 3.11 support & latest version of parsimonious is released, I will update omymodels soon