Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipeline failing due to pip package, but package is available.


Somehow pipeline failing because of the pip package installation problem. But this is not happening all the time. One is pipeline passing, other one is failing. Failing probability is nearly 50%

I double checked package. I have install package in my local environment without any error.

I couldn't find a logical explanation for this situation. Is there anybody has an opinion?

Collecting cairocffi==0.8.0 (from -r requirements.txt (line 36))
Using cached
Complete output from command python egg_info:
Couldn't find index page for 'cffi' (maybe misspelled?)
No local packages or download links found for cffi>=1.1.0
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-7fzmhirf/cairocffi/", line 44, in <module>
extras_require={'xcb': ['xcffib>=0.3.2']},
File "/usr/local/lib/python3.5/distutils/", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python3.5/site-packages/setuptools/", line 268, in __init__
File "/usr/local/lib/python3.5/site-packages/setuptools/", line 313, in fetch_build_eggs
File "/usr/local/lib/python3.5/site-packages/pkg_resources/", line 836, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/local/lib/python3.5/site-packages/pkg_resources/", line 1081, in best_match
return self.obtain(req, installer)
File "/usr/local/lib/python3.5/site-packages/pkg_resources/", line 1093, in obtain
return installer(requirement)
File "/usr/local/lib/python3.5/site-packages/setuptools/", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/local/lib/python3.5/site-packages/setuptools/command/", line 623, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cffi>=1.1.0')

Command "python egg_info" failed with error code 1 in /tmp/pip-build-7fzmhirf/cairocffi/


1 answer

1 accepted

0 votes
Answer accepted

Hi @SencerH ,

There is a possibility that the version of python that is used is incompatible with some dependancies you are trying to install.

We would need some additional info, in order to be able to better help you:

1. You mentioned that half the builds are passing and the other half are failing.

Are both of these builds (passing and failing) using the same Docker image?

2. Are you using a public Docker image for these builds, and if so, could you let us know which one(s) you are using?

3. What is the version of python used in this(these) image(s)?

4. What command from your pipelines script is giving this output?

5. Would you feel comfortable sharing your requirements.txt file here so we can try and see if we can reproduce this issue?

If you're using a public Docker image and if you can share the info above, I can try to reproduce and investigate this.

In case you don't feel comfortable sharing any of this info here for privacy reasons, you can also open a ticket with the support team for this issue. The support ticket will be visible only to you and Atlassian staff, and the support team will also be able to access the repo and check both builds that are failing and passing, if there is an open ticket.

You can open a support ticket via, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. You can include a link to this community post in the "Give us more details field", and please make sure to also include the URL of a build that fails with this error and the URL of a build that succeeds.

If you have any questions, please feel free to let me know.

Kind regards,

I will stick with support ticket. Thank you.

Like Theodora Boudale likes this

hey @Theodora Boudale did a ticket for this ever get created and resolved? I am seeing a similar issue but in a different context and would *love* to know if anything come from this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

236 views 2 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you