Unable to initialize knowledge repo
See original GitHub issueHello,
I am attempting to spin up knowledge repo locally. So far, I have:
- Created and activated virtual environment
pip install --upgrade "knowledge-repo[all]"
Yet, when I follow the next command:
knowledge_repo --repo C:\Users\sperkins\Projects\repo init
I get the error:
Traceback (most recent call last): File “C:\Users\sperkins\Projects\repo\repo-env\Scripts\knowledge_repo”, line 96, in <module> repo = knowledge_repo.KnowledgeRepository.for_uri(args.repo) File “c:\users\sperkins\projects\repo\repo-env\lib\site-packages\knowledge_repo\repository.py”, line 46, in for_uri return cls._get_subclass_for(scheme)(uri, *args, **kwargs) File “c:\users\sperkins\projects\repo\repo-env\lib\site-packages\knowledge_repo\utils\registry.py”, line 24, in _get_subclass_for return cls._registry[key] KeyError: ‘c’
Am I missing something?
Auto-reviewers: @NiharikaRay @matthewwardrop @earthmancash @danfrankj
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top GitHub Comments
@stephperk try using a relative path instead of an absolute path, such as:
knowledge_repo --repo .\test init
I was having the same issue as you but this worked for me. Hope this helps!
I got this error when I try to launch the server.
Solution:
The issue was I was not initializing the repo correctly.
this is how I initialize the repo (and this is the wrong way to do it)
Even this is wrong, it did not give me any errors and created the dir with
.knowledge_repo_config.yml
file, so I thought it was created properlyThe CORRECT way to initialize it
Please not the
git://
and then the path to the location on your machine.After creating the repo this way, I was able to run the server.