-
Notifications
You must be signed in to change notification settings - Fork 65
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
wierd issue i cant fix. when i type subuser list available #348
Comments
That is strange. I wonder how it happened. What this command is doing, is actually just listing the folders in the directories |
Nope. It was my first dl. it's strange bc I make an Ubuntu virtual machine and installed the dependencies and tried it again and I got the same issue. I must be doing something wrong. Any ideas? |
What is dl and bc? Sorry I don't understand “ab”s. |
@richard-delorenzi DL stands for download |
Same here, on a fresh system (#340 causes the first exception, which can be ignored):
Then, if I run
At this point, subuser 0.6.2 |
The issue appears to be that the repo has no commits, and therefore To fix, simply make a commit. For example:
After that, |
This really should be fixed - subuser failing to run on a fresh system will put many new users off. |
I just hit this problem too and worked out what it is (and a workaround, and what the actual fix should be for whoever has the time to apply it). My system (and probably the others on this thread) has the git config value
Subuser however makes a lot of hardcoded assumptions that the configured default is the previously expected
Because that leaves the
Below I show a transcript of installing the development version with that default (and hitting those errors), and then doing the same with
|
Just happened on it as well, fixed by |
when i try to add a package
i get this:
subuser list available
Traceback (most recent call last):
File "/usr/local/bin/subuser", line 52, in
command(sys.argv[2:])
File "/usr/local/lib/python3.6/dist-packages/subuserlib/builtInCommands/list.py", line 64, in runCommand
reposToList = user.registry.repositories.keys()
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/registry.py", line 53, in repositories
self.__repositories = repositories.Repositories(self.user)
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/repositories.py", line 28, in init
self.reloadRepositoryLists()
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/repositories.py", line 50, in reloadRepositoryLists
repositoryStates = self._loadRepositoryStates()
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/repositories.py", line 91, in _loadRepositoryStates
if "repository-states.json" in gitFileStructure.lsFiles("./"):
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/fileStructure.py", line 41, in lsFiles
return self._lsFiles(subfolder)
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/gitRepository.py", line 213, in _lsFiles
return self.ls(subfolder,"blob")
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/fileStructure.py", line 29, in ls
return self._ls(subfolder,objectType=objectType)
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/gitRepository.py", line 193, in _ls
items = self.lsTree()
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/gitRepository.py", line 169, in lsTree
(returncode,output) = self.gitRepository.runCollectOutput(["ls-tree"]+args)
File "/usr/local/lib/python3.6/dist-packages/subuserlib/classes/gitRepository.py", line 91, in runCollectOutput
raise GitException(stderr)
subuserlib.classes.gitRepository.GitException: fatal: Not a valid object name master
in stead of pkgs
The text was updated successfully, but these errors were encountered: