Skip to content

sregistry images throws error #264

@iferres

Description

@iferres

Describe the bug

I installed sregistry client with pip install sregistry[all], apparently successful installation. But I got this error when calling images:

sregistry images
Traceback (most recent call last):
  File "/home/iferres/.local/bin/sregistry", line 8, in <module>
    sys.exit(main())
  File "/home/iferres/.local/lib/python3.8/site-packages/sregistry/client/__init__.py", line 391, in main
    main(args=args, parser=parser, extra=extra)
  File "/home/iferres/.local/lib/python3.8/site-packages/sregistry/client/images.py", line 21, in main
    cli = get_client(quiet=args.quiet)
  File "/home/iferres/.local/lib/python3.8/site-packages/sregistry/main/__init__.py", line 131, in get_client
    cli = Client()
  File "/home/iferres/.local/lib/python3.8/site-packages/sregistry/main/hub/__init__.py", line 21, in __init__
    super(Client, self).__init__(**kwargs)
  File "/home/iferres/.local/lib/python3.8/site-packages/sregistry/main/base/__init__.py", line 60, in __init__
    self._init_db(SREGISTRY_DATABASE)
  File "/home/iferres/.local/lib/python3.8/site-packages/sregistry/database/models.py", line 159, in init_db
    self.engine = create_engine(self.database, convert_unicode=True)
  File "<string>", line 2, in create_engine
  File "/home/iferres/.local/lib/python3.8/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned
    return fn(*args, **kwargs)  # type: ignore[no-any-return]
  File "/home/iferres/.local/lib/python3.8/site-packages/sqlalchemy/engine/create.py", line 680, in create_engine
    raise TypeError(
TypeError: Invalid argument(s) 'convert_unicode' sent to create_engine(), using configuration SQLiteDialect_pysqlite/QueuePool/Engine.  Please check that the keyword arguments are appropriate for this combination of components.

To Reproduce

pip install sregistry[all]
sregistry images

Expected behavior
Expecting to return empty database since I haven't pulled any image yet.

Version of Singularity and Singularity Registry Client

sregistry --version
0.2.38

Ubuntu 20.04.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions