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

saidify-schema doesn't work with current version of keripy #84

Open
jorgenavben opened this issue Mar 19, 2024 · 0 comments
Open

saidify-schema doesn't work with current version of keripy #84

jorgenavben opened this issue Mar 19, 2024 · 0 comments

Comments

@jorgenavben
Copy link

jorgenavben commented Mar 19, 2024

Since the library keripy got updated from version 1.0.0 saidify-schema schema doesn't seem to work. When you try to run it you get the following error:

vLEI git:(dev) ✗ saidify-schema -f schema.json 
Traceback (most recent call last):
  File "/opt/homebrew/bin/saidify-schema", line 33, in <module>
    sys.exit(load_entry_point('vlei', 'console_scripts', 'saidify-schema')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/bin/saidify-schema", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/jorgenavben/Downloads/vLEI/src/vlei/saidify.py", line 14, in <module>
    from vlei.app import generating
  File "/Users/jorgenavben/Downloads/vLEI/src/vlei/app/generating.py", line 4, in <module>
    def populateSAIDS(d: dict, idage: str = coring.Ids.dollar, code: str = coring.MtrDex.Blake3_256):
                                            ^^^^^^^^^^
AttributeError: module 'keri.core.coring' has no attribute 'Ids'

I have fixed the error by forcing the use of the version 1.0.0 of keripy in setup.py

It would be necessary to update the version on the setup.py file to use the version 1.0.0 of keripy or alternatively update the code of the project to adapt to the changes the newer versions of the keirpy.

@jorgenavben jorgenavben changed the title saidify-schema doesn't work with actual version of keripy saidify-schema doesn't work with current version of keripy Mar 19, 2024
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

1 participant