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

AttributeError: 'NoneType' object has no attribute 'id' #139

Open
sduensin opened this issue Sep 19, 2022 · 4 comments
Open

AttributeError: 'NoneType' object has no attribute 'id' #139

sduensin opened this issue Sep 19, 2022 · 4 comments

Comments

@sduensin
Copy link

gitmirror@stuff:~/gitlab-mirrors$ ./add_mirror.sh --git --project-name osxcross --mirror https://github.com/tpoechtrager/osxcross
Resolving gitlab remote.
Traceback (most recent call last):
File "lib/manage_gitlab_project.py", line 149, in
found_project=createproject(project_name)
File "lib/manage_gitlab_project.py", line 110, in createproject
'namespace_id': find_group(name=gitlab_namespace).id,
AttributeError: 'NoneType' object has no attribute 'id'
There was an unknown issue with manage_gitlab_project.py

@samrocketman
Copy link
Owner

This relies on a really old version of python-gitlab v1.1.0. Are you using the old version or attempting to use the latest version?

The code needs a bit of an overhaul in general as its age is showing.

@sduensin
Copy link
Author

Thanks for the quick reply. I have no idea. I'm using whatever my package manager supplied. I'll see if I can downgrade to the recommended version.

@sduensin
Copy link
Author

I purged whatever I had installed with apt and used pip to install 1.1.0. Same issue. :-(

@oldunclez
Copy link

@sduensin which version do you use ?

Today , I have setup it with python2.7 , gitlab-mirrors (main branch) , python-gitlab 1.1.0

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

3 participants