question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bitbcket cloud get

See original GitHub issue

I tested and the user and password works

# coding=utf-8

from atlassian import Jira
from atlassian import Confluence
from atlassian import Bitbucket
from atlassian import ServiceDesk
from atlassian import Xray
from atlassian.bitbucket import Cloud

bitbucket = Cloud(url="https://api.bitbucket.org/", username="xxxx", password="xxxx")



print(bitbucket.all_project_administrators())

But I ahve this error when I try to execute a function:

python.exe .\main2.py Traceback (most recent call last): File "main2.py", line 14, in <module> print(bitbucket.all_project_administrators()) AttributeError: 'Cloud' object has no attribute 'all_project_administrators'

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jensvogcommented, Jul 13, 2021

Try putting the request in a list(). That’ll make it printable with print.

data = list(bitbucket.project_list())

It is actually not an error. The function just returns a generator object, which you can iterate through. But printing it will just output that it is a generator. The list function converts it to a list, which can be printed well.

1reaction
Spacetowncommented, Jul 12, 2021

This function is implemented in the Bitbucket object and not in the neww OO interface Cloud. Replace Cloud with Bitbucket and add the kwarg cloud=True.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started with Bitbucket Cloud - Atlassian Support
Get started with Bitbucket Cloud. Get started with version control. Version control keeps your code changes organized and accessible for you and your...
Read more >
Bitbucket | Git solution for teams using Jira
Bitbucket Cloud is a Git-based code and CI/CD tool optimized for teams using Jira. ... Get the free Bitbucket Cloud migration app. Learn...
Read more >
Bitbucket Cloud - IBM
Bitbucket Cloud is a Git based code hosting and collaboration tool, built for teams. The IBM DevOps Intelligence Console supports your use of...
Read more >
How to find the default branch of Repository - Bitbucket Cloud ...
The REST API has a filter for all branches of a repository, its response has a property named isDefault
Read more >
BitBucket module — Atlassian Python API 3.32.1 documentation
Get single repository bitbucket.get_repo(project_key, repository_slug) # Update single ... Get a list of workplaces: cloud.workspaces.each() # Get a single ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found