Error creating a local toolshed connected to a local galaxy (


I have Galaxy (release_19.05) installed and running well on Debian 10 (Buster) with Python2.7. However, when I try to run sh to have a local Tool Shed, it does a lot of things but at some point I got the error below.

For information, I got the exactly same behaviour with Python3 (Galaxy runs well and got the same error when I try to start local Tool Shed).

Thank you for your help,

galaxy.datatypes.registry DEBUG 2019-09-10 16:34:33,772 [p:962,w:0,m:0] [MainThread] No build sites source located.
Traceback (most recent call last):
  File "lib/galaxy/webapps/tool_shed/", line 69, in app_factory
    app = UniverseApplication(global_conf=global_conf, **kwargs)
  File "lib/galaxy/webapps/tool_shed/", line 47, in __init__
    from galaxy.webapps.tool_shed.model.migrate.check import create_or_verify_database
  File "lib/galaxy/webapps/tool_shed/model/migrate/", line 13, in <module>
    migrate_repository = repository.Repository(migrate_repository_directory)
  File "/galaxy/.venv/local/lib/python2.7/site-packages/migrate/versioning/", line 77, in __init__
  File "/galaxy/.venv/local/lib/python2.7/site-packages/migrate/versioning/", line 98, in verify
    raise exceptions.InvalidRepositoryError(path)
InvalidRepositoryError: libwebapps/tool_shed/model/migrate